Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Storybook builds by not running full loader on storybook virtua files #2260

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

ntucker
Copy link
Owner

@ntucker ntucker commented Dec 13, 2023

Motivation

This is a workaround for Anber/wyw-in-js#30 wyw-in-js not being able to process some of the info.

https://github.com/storybookjs/storybook/blob/f013ffeb03377c6e1b76a9aabd94c180e3e3ef38/code/builders/builder-webpack5/src/preview/virtual-module-mapping.ts#L52 includes some storybook specific virtual files that are not compatible. However, these are not user files so there is no reason to run our loader processing on them - we can simply exclude those and let them fallback to how storybook rules work.

Solution

Copy link
Contributor

github-actions bot commented Dec 13, 2023

Size Change: 0 B

Total Size: 391 kB

ℹ️ View Unchanged
Filename Size
examples/typescript/dist/App.css 1.51 kB
examples/typescript/dist/App.js 106 kB
examples/typescript/dist/Error-index-tsx.chunk.js 234 B
examples/typescript/dist/GQL-index-tsx.chunk.js 1.44 kB
examples/typescript/dist/Home-__tests__-home-test-tsx.chunk.js 4.88 kB
examples/typescript/dist/Home-__tests__-home-test-tsx.css 271 B
examples/typescript/dist/Home-index-tsx.chunk.js 4.76 kB
examples/typescript/dist/Home-index-tsx.css 263 B
examples/typescript/dist/index.html 272 B
examples/typescript/dist/Issues-index-tsx.chunk.js 2.33 kB
examples/typescript/dist/polyfill.js 4.99 kB
examples/typescript/dist/Posts-__tests__-postList-test-tsx.chunk.js 1.5 kB
examples/typescript/dist/Posts-index-tsx.chunk.js 1.94 kB
examples/typescript/dist/Posts-post-stories-tsx.chunk.js 1.99 kB
examples/typescript/dist/Posts-PostCreate-tsx.chunk.js 1.64 kB
examples/typescript/dist/Posts-PostEdit-tsx.chunk.js 2.02 kB
examples/typescript/dist/Posts-PostForm-tsx.chunk.js 1.35 kB
examples/typescript/dist/Posts-PostListItem-tsx.chunk.js 1.57 kB
examples/typescript/dist/Posts-useForm-tsx.chunk.js 315 B
examples/typescript/dist/react.js 46.3 kB
examples/typescript/dist/router.js 10.2 kB
examples/typescript/dist/Slow-index-tsx.chunk.js 410 B
examples/typescript/dist/src_pages_Home_echo_ts.chunk.js 158 B
examples/typescript/dist/User-index-tsx.chunk.js 1.56 kB
examples/typescript/dist/vendors-node_modules_ant-design_icons_es_icons_CloseCircleFilled_js-node_modules_antd_es__uti-ebf819.chunk.js 21.6 kB
examples/typescript/dist/vendors-node_modules_ant-design_icons_es_icons_DownOutlined_js-node_modules_antd_es__util_Pur-eed0a7.chunk.js 8.99 kB
examples/typescript/dist/vendors-node_modules_ant-design_icons_es_icons_InfoCircleOutlined_js-node_modules_ant-design_-253f1f.chunk.js 17.1 kB
examples/typescript/dist/vendors-node_modules_ant-design_icons_es_icons_InfoCircleOutlined_js-node_modules_ant-design_-512c85.chunk.js 6.37 kB
examples/typescript/dist/vendors-node_modules_ant-design_icons_es_icons_LoadingOutlined_js-node_modules_ant-design_ico-e682a5.chunk.js 3.64 kB
examples/typescript/dist/vendors-node_modules_ant-design_pro-layout_es_components_PageHeader_index_js.chunk.js 32.4 kB
examples/typescript/dist/vendors-node_modules_antd_es_button_index_js.chunk.js 6.99 kB
examples/typescript/dist/vendors-node_modules_antd_es_form_index_js-node_modules_antd_es_input_index_js.chunk.js 12.5 kB
examples/typescript/dist/vendors-node_modules_antd_es_input_TextArea_js.chunk.js 6.95 kB
examples/typescript/dist/vendors-node_modules_antd_es_list_index_js-node_modules_data-client_react_lib_hooks_useSuspense_js.chunk.js 34.2 kB
examples/typescript/dist/vendors-node_modules_antd_es_typography_index_js.chunk.js 8.13 kB
examples/typescript/dist/vendors-node_modules_data-client_endpoint_lib_endpoint_js-node_modules_data-client_endpoint_l-8f1c57.chunk.js 1.9 kB
examples/typescript/dist/vendors-node_modules_data-client_rest_lib_createResource_js.chunk.js 4.37 kB
examples/typescript/dist/vendors-node_modules_react-test-renderer_index_js.chunk.js 26.4 kB
examples/typescript/dist/webpack-runtime.js 2.14 kB

compressed-size-action

Copy link

sonarcloud bot commented Dec 13, 2023

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@ntucker ntucker merged commit 5a345a6 into master Dec 13, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant