Skip to content

thread-loader V4.0.4 new loader context utils incompatible with monaco-editor-webpack-plugin V7.1.0 #226

@Jlg1128

Description

@Jlg1128

Bug report

  • Operating System: MacOS
  • Node Version: 20
  • NPM Version: 10.7.0
  • webpack Version: 5.93.0
  • thread-loader Version: 4.0.4
  • monaco-editor-webpack-plugin: 7.1.0

Actual Behavior

build Error: this.utils.contextify is not a function
Screenshot 2024-09-24 at 09 56 51

reason:
It's beacuse monaco-editor-webpack-plugin has judgment about this.utils
https://github.com/microsoft/monaco-editor/blob/f6dc0eb8fce67e57f6036f4769d92c1666cdf546/webpack-plugin/src/loaders/include.ts#L23

Expected Behavior

thread-loader is compatible with monaco-editor-webpack-plugin V7.1.0

How Do We Reproduce?

Please paste the results of npx webpack-cli info here, and mention other relevant information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions