Skip to content

Commit

Permalink
chore: use es2017
Browse files Browse the repository at this point in the history
  • Loading branch information
ipcjs committed Jan 3, 2024
1 parent 822cd02 commit 8866d8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/unblock-area-limit/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default {
output: false
}),
typescript({
// 这个版本会"编译"async函数
target: 'ES2016',
// 这个版本不会"编译"async函数
target: 'ES2017',
}),
template({
filePath: path.resolve(__dirname, 'src/main.user.js'),
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"compilerOptions": {
"strict": true,
"target": "ES6",
"target": "ES2017",
"allowJs": true,
"lib": [
"ES6",
"ES2017",
"DOM",
],
},
Expand Down

0 comments on commit 8866d8d

Please sign in to comment.