Skip to content

Commit

Permalink
fix: storybook wont start and causes in ModuleBuildError ('loose' mod…
Browse files Browse the repository at this point in the history
…e configuration in babel) (#907)

Co-authored-by: Mehmet Ali Pamukci <[email protected]>
  • Loading branch information
alimpam and mepaJanitza authored Apr 16, 2023
1 parent 5a221a5 commit 42948d0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
module.exports = {
presets: ["@babel/preset-typescript", "@babel/preset-react"],
plugins: ["@babel/plugin-transform-modules-commonjs", "@babel/plugin-proposal-class-properties"],
presets: [
"@babel/preset-typescript",
'@babel/preset-env',
"@babel/preset-react"
],
plugins: [
"@babel/plugin-transform-modules-commonjs",
["@babel/plugin-proposal-class-properties", { "loose": true }]
],
};

0 comments on commit 42948d0

Please sign in to comment.