Skip to content

Commit 47d1185

Browse files
committed
chore: prepare script
1 parent 76fc829 commit 47d1185

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
],
3333
"types": "dist/index.d.ts",
3434
"scripts": {
35-
"prepublishOnly": "rimraf dist && npm run compile:types && npm run compile:browser --env mode=production && npm run compile:node --env mode=production",
35+
"prepare": "rimraf dist && npm run compile:types && npm run compile:browser --env mode=production",
3636
"compile:node": "webpack --progress --env target=node",
3737
"compile:types": "tsc --emitDeclarationOnly --declaration",
3838
"compile:browser": "webpack --progress --env target=web",

webpack.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ const base = async (env?: Partial<WebpackEnvParams>): Promise<Configuration> =>
127127
performance: {
128128
hints: false,
129129
},
130-
experiments: {
131-
// Module parse failed: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it)
132-
topLevelAwait: true,
133-
},
130+
// experiments: {
131+
// // Module parse failed: The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it)
132+
// topLevelAwait: true,
133+
// },
134134
}
135135
}
136136

0 commit comments

Comments
 (0)