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

Option to disable vendor chunks #1683

Closed
Grafikart opened this issue Jan 24, 2021 · 3 comments
Closed

Option to disable vendor chunks #1683

Grafikart opened this issue Jan 24, 2021 · 3 comments

Comments

@Grafikart
Copy link

Grafikart commented Jan 24, 2021

In a recent update vite behaviour changed and vite is now creating a vendor chunk but in some case (for an app with only one entrypoint) we may want to get only one file.
Is it possible to add an option to disable it, or did I miss something ?

I looked at the code and this option is linked to other options :(

https://github.com/vitejs/vite/blob/main/packages/vite/src/node/build.ts#L364

@yyx990803
Copy link
Member

yyx990803 commented Jan 24, 2021

You can disable it by setting build.rollupOptions.output.manualChunks to undefined. User options will overwrite the default.

@nshen
Copy link

nshen commented Apr 15, 2021

You can disable it by setting build.rollupOptions.output.manualChunks to undefined. User options will overwrite the default.
not work, @Grafikart did you find out ?

@chrisvariety
Copy link

chrisvariety commented May 6, 2021

  build: {
    output: {
      manualChunks: undefined
    }
  }

works a-okay for me!

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants