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
The strategy is pretty simple: For .js files, use ecmascript syntax and compile to commonjs module. For .ts files, use typescript syntax and also compile to commonjs module format. In both cases, just ignore __tests__.
When I run:
npx swc src -d lib -s --sync
It tries to compile .test.js files, but complain that there's no matching configuration for them:
failed to process js file
Caused by:
0: failed to load config for file 'Real("src/__tests__/AfwClient.test.js")'
1: failed to read swcrc file (src/__tests__/AfwClient.test.js)
2: failed to process config file
3: .swcrc exists but not matched
Do I need to match .test.js files in another entry and figure out how to noop them? Using --exclude doesn't seem to help, either. The docs are not very thorough about how configuration all works together. Especially with multiple entries.
Here's my configuration .swcrc:
The strategy is pretty simple: For .js files, use
ecmascript
syntax and compile tocommonjs
module. For .ts files, usetypescript
syntax and also compile tocommonjs
module format. In both cases, just ignore__tests__
.When I run:
npx swc src -d lib -s --sync
It tries to compile
.test.js
files, but complain that there's no matching configuration for them:Do I need to match
.test.js
files in another entry and figure out how to noop them? Using--exclude
doesn't seem to help, either. The docs are not very thorough about how configuration all works together. Especially with multiple entries.The text was updated successfully, but these errors were encountered: