Skip to content

Commit 16d8a77

Browse files
committed
fix storybook with type:module
1 parent 21049bf commit 16d8a77

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.storybook/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

rollup.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import pkg from './package.json';
1313
// see package.json "type": "module"
1414
// https://stackoverflow.com/a/63216984/1189762
1515
// see babel.config.cjs instead of .js
16+
// https://github.com/storybookjs/storybook/issues/11587#issuecomment-898604266
17+
// see .storybook/package.json
1618
const babelConfig = require('./babel.config.cjs');
1719

1820
const extensions = ['.js', '.jsx', '.ts', '.tsx'];

0 commit comments

Comments
 (0)