Unable to properly ignore/exclude files for transformation #242
Labels
package: system
Specific to @mui/system
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
I'm trying to use Pigment CSS in a project that uses decorators and
TextDecoder
/TextEncoder
.However this doesn't work because WYW-in-JS uses Babel.
If I add the
@babel/plugin-proposal-decorators
I now get an error saying thatTextDecoder is not defined
.These files are part of separate libraries and not part of the main application.
Here's what I've tried without any luck:
node_modules
.exclude
option only tells the Vite plugin to ignore certain files, but that doesn't affect WYW-in-JS because it still resolves the imports for those files and tries to transform them.Babel transform failed
error.Babel transform failed
error.ignore
rule using therules
option completely breaks the plugin causing it to not transform anything at all.Here's my
vite.config.ts
.Search keywords: rules, decorators, exclude, ignore
The text was updated successfully, but these errors were encountered: