Pre-bundling dependencies
See original GitHub issueHello everyone,
Is it normal that each time that I run storybook the cli keeps showing: “Pre-bundling dependencies (this will be run only when your dependencies or config have changed)”.
It’s like the cache from vite is not working or should I put something in the config.
Thank you in advance.
Here is my actual config:
async viteFinal(config, { configType }) {
return {
...config,
resolve: {
alias: [
{find: '@', replacement: path.resolve(__dirname, '../src')},
{find: 'ag-grid', replacement: path.resolve(__dirname, '../node_modules/ag-grid-community/dist/styles/ag-grid.css')},
{find: 'ag-theme-alpine', replacement: path.resolve(__dirname, '../node_modules/ag-grid-community/dist/styles/ag-theme-alpine.css')},
{find: 'vue', replacement: 'vue/dist/vue.esm-bundler.js'}
]
},
cacheDir: path.resolve(__dirname, '../node_modules/.cache/vite'),
optimizeDeps: {
...config.optimizeDeps,
entries: [`${path.relative(config.root, path.resolve(__dirname, '../src'))}/**/*.stories.js`],
include: [...config.optimizeDeps.include],
},
}
}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Dependency Pre-Bundling - Vite
Dependency pre -bundling only applies in development mode, and uses esbuild to convert dependencies to ESM. In production builds, @rollup/plugin-commonjs is used ...
Read more >Pre-bundling dependency error #3736 - vitejs/vite - GitHub
I'm trying to use the library both client-side and server-side via SvelteKit. I think the pre-optimization step is not bundling the dependency ......
Read more >依赖预构建{#dependency-pre-bundling} - Vite中文网
Optimizable dependencies detected: (侦测到可优化的依赖:) react, react-dom Pre-bundling them to speed up dev server page load...(将预构建它们以提升开发 ...
Read more >Could not auto-determine entry point from rollupOptions
Skipping dependency pre-bundling. ... /app/node_modules/.bin:$PATH # install and cache app dependencies COPY package.json /app/package.json ...
Read more >사전 번들링 된 디펜던시 - Vite
Pre -bundling dependencies: react react-dom (this will be run only when your ... 이러한 메시지가 나타나는 이유는 Vite의 "사전 번들링(Pre-bundling)" 기능으로 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same here… did anyone happen to resolve it? In my case, it’s not a huge issue either because the dev server is up and running less than a couple of seconds, but still it shouldn’t re-run the pre-bundling process unless if needed.
Sorry for my French) Time was totally reduced!