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

Unnecessary file splitting occurs after the build #9559

Closed
7 tasks done
Brain777777 opened this issue Aug 6, 2022 · 1 comment
Closed
7 tasks done

Unnecessary file splitting occurs after the build #9559

Brain777777 opened this issue Aug 6, 2022 · 1 comment

Comments

@Brain777777
Copy link

Brain777777 commented Aug 6, 2022

Describe the bug

This PR affects unwanted imports and unnecessary file splits after the build , The problem will be displayed in the dist directory of the repository
#7909

Reproduction

https://github.com/Brain777777/vite-build-lib

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 AMD Ryzen 7 4800H with Radeon Graphics
    Memory: 4.30 GB / 15.87 GB
  Binaries:
    Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (103.0.1264.77)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    @vitejs/plugin-vue: ^3.0.0 => 3.0.1
    vite: ^3.0.0 => 3.0.4

Used Package Manager

pnpm

Logs

No response

Validations

@sapphi-red
Copy link
Member

This is expected because you are using preserveModules: true.
https://github.com/Brain777777/vite-build-lib/blob/6d6c91191b80fbf086c7c582eddf2fe7008bba17/vite.config.ts#L18

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

No branches or pull requests

3 participants