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

feat/sandbox #2306

Merged
merged 9 commits into from
Aug 29, 2022
Merged

Conversation

m0ksem
Copy link
Collaborator

@m0ksem m0ksem commented Aug 26, 2022

closes #2273 - nuxt tree-shaking
closes #2280 - rename to sandbox
closes #2307
closes #2255

this pr and #2279 closes #2274 (need to double check)

In addition to sandbox here, I removed CSS import from .mjs file, so pure node runners (without CSS loader) like vitest can handle it.
I also removed extra import 'puk.js' which I assume vite thought has side-effects because of vendor.js imported.

@m0ksem m0ksem changed the title Fix/nuxt components tree shaking Rename bundlers test to sandbox Aug 26, 2022
@m0ksem m0ksem changed the title Rename bundlers test to sandbox feat/sandbox Aug 26, 2022
@m0ksem
Copy link
Collaborator Author

m0ksem commented Aug 26, 2022

Must be merged after #2294 with fixed conflicts.

And fix-import-hell plugin must be rewritten to ts.

@m0ksem m0ksem added tests Refers to testing build Build process labels Aug 26, 2022
@m0ksem m0ksem self-assigned this Aug 26, 2022
@m0ksem m0ksem force-pushed the fix/nuxt-components-tree-shaking branch from 64babff to 21108b7 Compare August 27, 2022 11:19
@m0ksem m0ksem marked this pull request as ready for review August 27, 2022 11:49
@m0ksem m0ksem requested review from aluarius and asvae August 27, 2022 11:49
@m0ksem
Copy link
Collaborator Author

m0ksem commented Aug 27, 2022

@aluarius, I'll need your help to QA my changes here. If you have test nuxt app, check out how build works cuz I don't believe myself. I changed mjs build logic, so this likely must work with vitest without additional effort. (see #2254 (comment)).

@asvae I guess you would be interested in ci npm script. We might add it to release script. But we must prevent double vuestic build.

Copy link
Contributor

@aluarius aluarius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything treeshakes fine for me - components, styles.

@m0ksem m0ksem merged commit 1ef7aa7 into epicmaxco:develop Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build process tests Refers to testing
Projects
None yet
2 participants