Skip to content

[Bug] webpack-plugin 7.0.0 does not work with webpack 4 #2817

@ValeraS

Description

@ValeraS

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Code

No response

Actual Behavior

error:

ERROR in ./node_modules/monaco-editor/esm/vs/editor/editor.main.js
Module build failed (from ./node_modules/monaco-editor-webpack-plugin/out/loaders/include.js):
TypeError: this.getOptions is not a function
    at Object.pitch (./node_modules/monaco-editor-webpack-plugin/out/loaders/include.js:5:63)

In webpack 4, loaderContext does not have getOptions and utils.

Expected Behavior

works with webpack 4

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions