Skip to content

Commit

Permalink
fix(swc): bump dependencies (#1500)
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed May 17, 2023
1 parent 62a5d56 commit 9c6aace
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 56 deletions.
6 changes: 3 additions & 3 deletions packages/swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"modules"
],
"peerDependencies": {
"@swc/core": "^1.x",
"@swc/core": "^1.3.x",
"rollup": "^3.x"
},
"peerDependenciesMeta": {
Expand All @@ -62,10 +62,10 @@
}
},
"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",
"typescript": "^4.8.3"
},
Expand Down
31 changes: 14 additions & 17 deletions packages/swc/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@ import { merge } from 'smob';
import type { Options } from './type';

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
}
});

return {
name: 'swc',
Expand Down
77 changes: 41 additions & 36 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9c6aace

Please sign in to comment.