Skip to content

Commit

Permalink
Use webpack5 (#1)
Browse files Browse the repository at this point in the history
* use webpack5 and type: module

* uninstall tsconfig-paths-webpack-plugin

* fix webpackFinal:

* fix ModuleParseError

error message
```
ModuleParseError: Module parse failed: 'import' and 'export' may appear only with 'sourceType: module'
```

issues
- storybookjs/storybook#15335
- storybookjs/storybook#14877

* revert preview.ts
  • Loading branch information
ganezasan committed Feb 15, 2023
1 parent 211d2aa commit a5eab22
Show file tree
Hide file tree
Showing 5 changed files with 5,573 additions and 4,024 deletions.
15 changes: 11 additions & 4 deletions .storybook/main.cjs
@@ -1,12 +1,19 @@
module.exports = {
"stories": [
stories: [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions"
"@storybook/addon-interactions",
'@storybook/preset-create-react-app',
],
"framework": "@storybook/react",
framework: "@storybook/react",
core: {
builder: '@storybook/builder-webpack5',
},
features: {
interactionsDebugger: true
},
}
1 change: 1 addition & 0 deletions .storybook/package.json
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion .storybook/preview.cjs → .storybook/preview.ts
Expand Up @@ -6,4 +6,4 @@ export const parameters = {
date: /Date$/,
},
},
}
}

0 comments on commit a5eab22

Please sign in to comment.