@swc-node/core
Advanced tools
Comparing version 1.5.1 to 1.6.0
@@ -1,4 +0,4 @@ | ||
import { ReactConfig, Config } from '@swc/core'; | ||
import { ReactConfig, Config, JscTarget } from '@swc/core'; | ||
export interface Options { | ||
target?: 'es3' | 'es5' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019'; | ||
target?: JscTarget; | ||
module?: 'commonjs' | 'umd' | 'amd' | 'es6'; | ||
@@ -13,2 +13,5 @@ sourcemap?: Config['sourceMaps']; | ||
react?: Partial<ReactConfig>; | ||
paths?: { | ||
[from: string]: [string]; | ||
}; | ||
} | ||
@@ -15,0 +18,0 @@ export declare function transformSync(source: string, path: string, options?: Options): import("@swc/core").Output; |
@@ -22,3 +22,2 @@ "use strict"; | ||
decoratorMetadata: Boolean(opts.emitDecoratorMetadata), | ||
// @ts-expect-error | ||
react: options === null || options === void 0 ? void 0 : options.react, | ||
@@ -30,2 +29,3 @@ hidden: { | ||
keepClassNames: opts.keepClassNames, | ||
paths: opts.paths, | ||
}, | ||
@@ -32,0 +32,0 @@ minify: false, |
{ | ||
"name": "@swc-node/core", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "Faster swc nodejs binding", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@swc/core": "^1.2.59" | ||
"@swc/core": "^1.2.80" | ||
}, | ||
@@ -51,3 +51,3 @@ "funding": { | ||
}, | ||
"gitHead": "de50beb78b6be1154537e41794d99280808d6b1b" | ||
"gitHead": "fbfe8d6cf4cd62528eea920a724ccba00b46ddec" | ||
} |
@@ -32,2 +32,5 @@ # `@swc-node/core` | ||
react?: Partial<ReactConfig> | ||
paths?: { | ||
[from: string]: [string] | ||
} | ||
} | ||
@@ -34,0 +37,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70
91
8933
6
Updated@swc/core@^1.2.80