question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pre-bundling dependencies

See original GitHub issue

Hello 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:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
gomorizsoltcommented, Nov 8, 2021

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.

1reaction
extrem7commented, Apr 5, 2022

Sorry for my French) Time was totally reduced!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found