Skip to content

Commit 86a499e

Browse files
committed
fix: drop web target for now
1 parent d1bb89a commit 86a499e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"Other"
3636
],
3737
"main": "./dist/extension.js",
38-
"browser": "./dist/web/extension.js",
3938
"contributes": {
4039
"configuration": {
4140
"title": "HackMD",
@@ -227,7 +226,6 @@
227226
"devDependencies": {
228227
"@babel/preset-react": "^7.18.6",
229228
"@babel/preset-typescript": "^7.18.6",
230-
"@vscode/test-web": "*",
231229
"@types/glob": "^7.1.1",
232230
"@types/jquery": "^3.3.30",
233231
"@types/mocha": "^5.2.6",
@@ -236,6 +234,7 @@
236234
"@types/vscode": "^1.74.0",
237235
"@typescript-eslint/eslint-plugin": "^5.47.1",
238236
"@typescript-eslint/parser": "^5.47.1",
237+
"@vscode/test-web": "*",
239238
"abcjs": "^5.8.0",
240239
"babel-loader": "^9.1.0",
241240
"css-loader": "^6.7.3",

webpack.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ const extensionConfig = {
4747
performance: {
4848
hints: false,
4949
},
50+
experiments: {
51+
topLevelAwait: true,
52+
},
5053
};
5154

55+
/*
5256
const browserTargetConfig = cloneDeep(extensionConfig);
5357
5458
browserTargetConfig.mode = 'none';
@@ -75,6 +79,7 @@ browserTargetConfig.plugins = [
7579
RUNTIME: 'browser',
7680
}),
7781
];
82+
*/
7883

7984
/**@type {import('webpack').Configuration}*/
8085
const pageConfig = {
@@ -145,4 +150,4 @@ const pageConfig = {
145150
],
146151
};
147152

148-
module.exports = [extensionConfig, pageConfig, browserTargetConfig];
153+
module.exports = [extensionConfig, pageConfig /* browserTargetConfig */];

0 commit comments

Comments
 (0)