Skip to content

Commit d565fc1

Browse files
committed
Fix build in rush-vscode-extension.
1 parent 1e34409 commit d565fc1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vscode-extensions/rush-vscode-extension/config/heft.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"cleanFiles": [{ "includeGlobs": ["webview"] }],
1616
"tasksByName": {
1717
"webpack": {
18-
"taskDependencies": ["typescript"],
18+
"taskDependencies": ["transpile"],
1919
"taskPlugin": {
2020
"pluginPackage": "@rushstack/heft-webpack5-plugin"
2121
}
@@ -36,12 +36,12 @@
3636
}
3737
},
3838
"generate-vscodeignore": {
39-
"taskDependencies": ["copy-webview", "typescript", "webpack"],
39+
"taskDependencies": ["copy-webview", "transpile", "webpack"],
4040
"taskPlugin": {
4141
"pluginPackage": "@rushstack/heft",
4242
"pluginName": "run-script-plugin",
4343
"options": {
44-
"scriptPath": "lib/scripts/generate-vscodeignore.js"
44+
"scriptPath": "lib-commonjs/scripts/generate-vscodeignore.js"
4545
}
4646
}
4747
}

vscode-extensions/rush-vscode-extension/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function createExtensionConfig({ production, webpack }) {
1616
target: 'node', // VS Code extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
1717
mode: production ? 'production' : 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
1818

19-
entry: './lib/extension.js', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
19+
entry: './lib-esm/extension.js', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
2020
output: {
2121
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
2222
path: path.resolve(__dirname, 'dist'),

0 commit comments

Comments
 (0)