From 47d118504291ed8ccef51e3d48fca5fd172365a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Levente=20T=C3=B3th?= Date: Wed, 21 Sep 2022 16:21:40 +0200 Subject: [PATCH] chore: prepare script --- package.json | 2 +- webpack.config.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 63017260..ff9d9c2c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/webpack.config.ts b/webpack.config.ts index 99ddb106..07a9cc44 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -127,10 +127,10 @@ const base = async (env?: Partial): Promise => 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, + // }, } }