Skip to content

Commit

Permalink
dev: Fix gulp_webpack signature and default for getDefaultWebpackConf…
Browse files Browse the repository at this point in the history
…ig (#1814)

* Fix gulp_webpack signature and default for getDefaultWebpackConfig

* update version
  • Loading branch information
StephenWeatherford authored Nov 8, 2024
1 parent 85ad848 commit f92ce31
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dev/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export interface DefaultWebpackOptions {
verbosity?: Verbosity;

/**
* Webpack target
* Webpack target (defaults to 'node')
*/
target?: 'node' | 'webworker'

Expand Down Expand Up @@ -135,7 +135,7 @@ export declare function gulp_installVSCodeExtension(publisherId: string, extensi
/**
* Spawns a webpack process
*/
export declare function gulp_webpack(mode: string, target?: 'node' | 'webworker'): cp.ChildProcess;
export declare function gulp_webpack(mode: 'development' | 'production'): cp.ChildProcess;

/**
* Loose type to use for T2 versions of Azure SDKs. The Azure Account extension returns
Expand Down
2 changes: 1 addition & 1 deletion dev/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microsoft/vscode-azext-dev",
"author": "Microsoft Corporation",
"version": "2.0.6",
"version": "2.1.0",
"description": "Common dev dependency tools for developing Azure extensions for VS Code",
"tags": [
"azure",
Expand Down
2 changes: 1 addition & 1 deletion dev/src/webpack/getDefaultWebpackConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function getDefaultWebpackConfig(options: DefaultWebpackOptions): webpack

// vscode extensions run in a Node.js context on desktop, see https://webpack.js.org/configuration/node/
// vscode web extensions run with a "webworker" target, see https://webpack.js.org/configuration/target/#target
target: options.target,
target: options.target ?? 'node',
node: {
// For __dirname and __filename, let Node.js use its default behavior (i.e., gives the path to the packed extension.bundle.js file, not the original source file)
__filename: false,
Expand Down

0 comments on commit f92ce31

Please sign in to comment.