Skip to content

Build VS Code Extensions unminified

Paul Maréchal edited this page Dec 10, 2021 · 1 revision

When packaging the extensions, Webpack is run in production mode to bundle and minify the extension's code. To avoid this:

  • Edit vscode/build/lib/extensions.js.

  • Find the place that invokes Webpack.

  • Comment out the mode: 'production' option passed to it.

    At the time of writing, the modification looks like this:

    const webpackConfig = Object.assign(Object.assign({}, require(webpackConfigPath))/* , { mode: 'production' } */);
  • Run the packaging scripts.