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

[BUG] I discovered tree shaking #959

Open
2 of 3 tasks
jiayisheji opened this issue Apr 25, 2024 · 0 comments
Open
2 of 3 tasks

[BUG] I discovered tree shaking #959

jiayisheji opened this issue Apr 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jiayisheji
Copy link

What happened?

Changing tree shaking with different references:

  • Current program:
  1. If I have files to import using index.ts.
  2. If the file has third-party dependencies
  3. All packaged pages will include this third-party package
  • Total Solution:
  1. If I don't use index.ts import
  2. Import the file with the third-party package on only one page
  3. The result of bundling will be this single file containing the third-party package

Version

Latest

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

(OPTIONAL) Contribution

  • I would like to fix this BUG via a PR

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@jiayisheji jiayisheji added the bug Something isn't working label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant