Skip to content

Commit

Permalink
feat: 更新tenon-loader版本;修改tenon webpack babel loader 配置
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamCaoQAQ committed Dec 18, 2023
1 parent c88466d commit d5a1d6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@hummer/devtool-inject-loader": "~0.0.2",
"@hummer/devtools-frontend": "^0.2.0",
"@hummer/hummer-front": "^1.0.6",
"@hummer/tenon-loader": "^1.0.5",
"@hummer/tenon-loader": "^1.3.0",
"@hummer/tenon-style-loader": "^0.2.0",
"@types/ws": "^7.2.9",
"address": "^1.1.2",
Expand Down
7 changes: 5 additions & 2 deletions packages/plugin-build/src/config/tenon.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export default function getDefaultTenonConfiguration(isProduction: boolean, hmCo
{
targets: {
"ios": "9"
}
},
modules: false,
shippedProposals: true
}
],
[require.resolve('@babel/preset-typescript'), {
Expand All @@ -132,7 +134,8 @@ export default function getDefaultTenonConfiguration(isProduction: boolean, hmCo
// https://github.com/babel/babel/blob/090c364a90fe73d36a30707fc612ce037bdbbb24/packages/babel-plugin-transform-runtime/src/index.js#L35-L42
version: require('@babel/runtime/package.json').version,
}]
]
],
sourceType: "unambiguous",
}
}
}, {
Expand Down

0 comments on commit d5a1d6e

Please # to comment.