Comments (4)
// jest.config.js
{
transform: { '^.+\\.(t|j)sx?$': ['@swc-node/jest', { dynamicImport: true }] }
}
All options: https://github.com/Brooooooklyn/swc-node/blob/master/packages/core/index.ts#L6
from swc-node.
Thanks! :)
from swc-node.
Hm, interestingly I am getting the following error:
A dynamic import callback was not specified
While it works fine with ts-jest
.
from swc-node.
Could you please provide a minimal example which caused the compile error?
from swc-node.
Related Issues (20)
- SyntaxError: Unexpected token '?' HOT 1
- `package.json` "imports" field support
- `@swc-node/register` broken imports HOT 10
- Question: how to make swc-node to use less memory HOT 3
- Setting up `swc-node/jest` with pnpm
- Using `@swc/core` version `1.3.85` crashes HOT 2
- Syntax error after updating to 1.6.8 HOT 8
- swc-node doesn't work with latest node version HOT 3
- Value of useDefineForClassFields in tsconfig is ignored when creating SWC config
- .swcrc config file sourceMaps option is ignored and always set to "inline", causing incorrect stack traces when using a .swcrc file
- Node.js v20.6+ no longer supports the loader API in favour of the register API HOT 4
- Sourcemaps not working with @swc-node/register when SWCRC=true HOT 3
- @swc-node/[email protected] don't have exports from master branch HOT 3
- Release @swc-node/register with tsconfig bugfix changes.
- Regression: `@swc-node/[email protected]` doesn't handle default exports properly
- `@swc-node/[email protected]` `/esm-register` does not recognise `tsconfig.json` paths HOT 7
- controlling swc's lazy module flag
- TypeError [ERR_IMPORT_ASSERTION_TYPE_MISSING] <file> needs an import attribute of type "json" HOT 1
- SWC does not transpile on Windows if tsconfig.json is present in cwd where the cmd is ran HOT 3
- [register] Cannot find package 'typescript
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swc-node.