Skip to content

Commit

Permalink
chore: prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Nov 24, 2022
1 parent d03a659 commit 06ce6b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"types": "dist/index.d.ts",
"scripts": {
"prepublishOnly": "rimraf dist && npm run compile:types && npm run compile:browser --env mode=production && npm run compile:node --env mode=production",
"prepare": "rimraf dist && npm run compile:types && npm run compile:browser --env mode=production",
"compile:node": "webpack --progress --env target=node",
"compile:types": "tsc --emitDeclarationOnly --declaration",
"compile:browser": "webpack --progress --env target=web",
Expand Down
8 changes: 4 additions & 4 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ const base = async (env?: Partial<WebpackEnvParams>): Promise<Configuration> =>
performance: {
hints: false,
},
experiments: {
// Module parse failed: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it)
topLevelAwait: true,
},
// experiments: {
// // Module parse failed: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it)
// topLevelAwait: true,
// },
}
}

Expand Down

0 comments on commit 06ce6b4

Please sign in to comment.