@rollup/plugin-swc
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -9,3 +9,3 @@ 'use strict'; | ||
function swc(input = {}) { | ||
const swcOptions = smob.merge({ | ||
const swcOptions = smob.merge({}, input.swc || {}, { | ||
jsc: { | ||
@@ -23,3 +23,3 @@ target: 'es2020', | ||
} | ||
}, input.swc || {}); | ||
}); | ||
return { | ||
@@ -26,0 +26,0 @@ name: 'swc', |
@@ -5,3 +5,3 @@ import { transform } from '@swc/core'; | ||
function swc(input = {}) { | ||
const swcOptions = merge({ | ||
const swcOptions = merge({}, input.swc || {}, { | ||
jsc: { | ||
@@ -19,3 +19,3 @@ target: 'es2020', | ||
} | ||
}, input.swc || {}); | ||
}); | ||
return { | ||
@@ -22,0 +22,0 @@ name: 'swc', |
{ | ||
"name": "@rollup/plugin-swc", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"publishConfig": { | ||
@@ -56,3 +56,3 @@ "access": "public" | ||
"peerDependencies": { | ||
"@swc/core": "^1.x", | ||
"@swc/core": "^1.3.x", | ||
"rollup": "^3.x" | ||
@@ -66,6 +66,6 @@ }, | ||
"dependencies": { | ||
"smob": "^0.0.6" | ||
"smob": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@swc/core": "^1.3.27", | ||
"@swc/core": "^1.3.58", | ||
"rollup": "^3.0.0-7", | ||
@@ -72,0 +72,0 @@ "typescript": "^4.8.3" |
@@ -9,19 +9,16 @@ import type { Plugin } from 'rollup'; | ||
export function swc(input: Options = {}): Plugin { | ||
const swcOptions: SWCOptions = merge( | ||
{ | ||
jsc: { | ||
target: 'es2020', | ||
parser: { | ||
syntax: 'typescript', | ||
decorators: true | ||
}, | ||
transform: { | ||
decoratorMetadata: true, | ||
legacyDecorator: true | ||
}, | ||
loose: true | ||
} | ||
}, | ||
input.swc || {} | ||
); | ||
const swcOptions: SWCOptions = merge({}, input.swc || {}, { | ||
jsc: { | ||
target: 'es2020', | ||
parser: { | ||
syntax: 'typescript', | ||
decorators: true | ||
}, | ||
transform: { | ||
decoratorMetadata: true, | ||
legacyDecorator: true | ||
}, | ||
loose: true | ||
} | ||
}); | ||
@@ -28,0 +25,0 @@ return { |
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
6966
109
+ Addedsmob@1.5.0(transitive)
- Removedsmob@0.0.6(transitive)
Updatedsmob@^1.0.0