mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
make it work with create-react-app v2
This commit is contained in:
parent
97b26e76f9
commit
43c8a14805
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,9 @@ module.exports.pitch = function pitch(remainingRequest) {
|
|||
// HACK: NamedModulesPlugin overwrites existing modules when requesting the same module via
|
||||
// different loaders, so we need to circumvent this by appending a suffix to make the name unique
|
||||
// See https://github.com/webpack/webpack/issues/4613#issuecomment-325178346 for details
|
||||
this._module.userRequest = `include-loader!${this._module.userRequest}`;
|
||||
if (this._module && this._module.userRequest) {
|
||||
this._module.userRequest = `include-loader!${this._module.userRequest}`;
|
||||
}
|
||||
|
||||
return [
|
||||
...(globals
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue