Skip to content

Commit cef1c35

Browse files
committed
fix: storybook build
1 parent acacc71 commit cef1c35

50 files changed

Lines changed: 819 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

core/ui/.storybook/main.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,16 @@ module.exports = {
77
"@storybook/addon-links",
88
"@storybook/addon-essentials",
99
'@storybook/preset-scss'
10-
]
11-
}
10+
],
11+
webpackFinal: async (config) => {
12+
// Handle .mjs files from node_modules (e.g. @carbon/icons-vue) as
13+
// javascript/auto so webpack 4 uses flexible CJS/ESM interop instead of
14+
// strict ESM, which otherwise breaks named imports from CommonJS deps.
15+
config.module.rules.push({
16+
test: /\.mjs$/,
17+
include: /node_modules/,
18+
type: 'javascript/auto'
19+
});
20+
return config;
21+
}
22+
}

core/ui/storybook-static/0.0a0da810.iframe.bundle.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/** @license React v0.19.1
2+
* scheduler.production.min.js
3+
*
4+
* Copyright (c) Facebook, Inc. and its affiliates.
5+
*
6+
* This source code is licensed under the MIT license found in the
7+
* LICENSE file in the root directory of this source tree.
8+
*/
9+
10+
/** @license React v16.14.0
11+
* react-dom.production.min.js
12+
*
13+
* Copyright (c) Facebook, Inc. and its affiliates.
14+
*
15+
* This source code is licensed under the MIT license found in the
16+
* LICENSE file in the root directory of this source tree.
17+
*/

core/ui/storybook-static/0.0a0da810.iframe.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/ui/storybook-static/0.e5489f12ab94aa497491.manager.bundle.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Prism: Lightweight, robust, elegant syntax highlighting
3+
*
4+
* @license MIT <https://opensource.org/licenses/MIT>
5+
* @author Lea Verou <https://lea.verou.me>
6+
* @namespace
7+
* @public
8+
*/

core/ui/storybook-static/1.7d0dd704b26935d06a04.manager.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/ui/storybook-static/1.ee823f57.iframe.bundle.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Prism: Lightweight, robust, elegant syntax highlighting
3+
*
4+
* @license MIT <https://opensource.org/licenses/MIT>
5+
* @author Lea Verou <https://lea.verou.me>
6+
* @namespace
7+
* @public
8+
*/

core/ui/storybook-static/1.ee823f57.iframe.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)