You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Jest without the experimental ESM support, this means SWC must run on ES Module dependencies. Ideally I'd just let it transform the entire node_modules folder but that slows down the tests considerably, so I have to use transformIgnorePatterns with node_modules plus an increasingly-long list of manually-excluded ES Modules. I'm now at 24+.
I'm using Jest without the experimental ESM support, this means SWC must run on ES Module dependencies. Ideally I'd just let it transform the entire node_modules folder but that slows down the tests considerably, so I have to use
transformIgnorePatterns
withnode_modules
plus an increasingly-long list of manually-excluded ES Modules. I'm now at 24+.https://github.com/pixiebrix/pixiebrix-extension/blob/fee28636efcad73745a7cc8d4c52649dd31db422/jest.config.json#L7-L22
Is there a way to configure SWC via .swcrc to automatically skip CJS modules? That would allow me to avoid
transformIgnorePatterns
altogether.I'll paste the actual error for googlability:
The text was updated successfully, but these errors were encountered: