vite
vite copied to clipboard
fix(optimize-deps): don't externalize JS files imported with asset extensions
Description
fix #16116 importing a CommonJS module installed from NPM. The modue contains files with filenames like PeoplePicker.scss.js. These are JavaScript files, obviously, but the filename contains scss.
What is the purpose of this pull request?
- [X] Bug fix
- [ ] New Feature
- [ ] Documentation update
- [ ] Other
Run & review this pull request in StackBlitz Codeflow.
Thanks. Would you add a test case in
playground/optimize-deps?
sure, I'll add a test case
@sapphi-red hi, I have submitted the test code, but how does the Actions check failing
I guess you forgot to run pnpm i after adding a local package.