1.5.13 • Published 5 months ago
@swc-node/loader v1.5.13
@swc-node/loader
🚀 Help me to become a full-time open-source developer by sponsoring me on Github
Usage
{
test: /\.tsx?$/,
use: [
{
loader: '@swc-node/loader',
// If options not passed
// `@swc-node/loader` will read the project `tsconfig.json` as compile options
// If the default `tsconfig.json` parse failed or not existed
// The default options will be used
// `compilerOptions` is the same with `compilerOptions in tsconfig`
options: {
// if `compilerOptions` provided, `configFile` will be ignored
compilerOptions: {
target: 'ES5',
module: 'esnext',
sourceMap: true,
jsx: true,
},
// absolute path for tsconfig.json
configFile: path.join(process.cwd(), 'tsconfig.build.json'),
// enable react fast refresh
fastRefresh: true
}
}
],
exclude: /node_modules/,
}
Differences between swc-loader
This loader
is compatible with tsconfig.json
and compilerOptions
in tsconfig.json
.
1.5.13
5 months ago
1.5.5
1 year ago
1.5.4
1 year ago
1.5.3
1 year ago
1.5.2
1 year ago
1.5.10
1 year ago
1.5.12
1 year ago
1.5.11
1 year ago
1.5.9
1 year ago
1.5.8
1 year ago
1.5.7
1 year ago
1.5.6
1 year ago
1.5.1
1 year ago
1.5.0
1 year ago
1.4.0
1 year ago
1.3.7
2 years ago
1.3.8
2 years ago
1.3.6
2 years ago
1.3.5
2 years ago
1.3.4
2 years ago
1.3.3
2 years ago
1.3.2
2 years ago
1.2.8
2 years ago
1.2.6
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.0
3 years ago
1.2.1
3 years ago
1.1.9
4 years ago
1.1.12
4 years ago
1.1.11
4 years ago
1.1.10
4 years ago
1.1.8
4 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago