Skip to content

Commit ca6fc19

Browse files
ts 3.9.6
1 parent 0c36fc7 commit ca6fc19

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "monaco-editor-webpack-plugin",
3-
"version": "1.9.0",
2+
"name": "@uplol/monaco-editor-webpack-plugin",
3+
"version": "103.9.5",
44
"description": "A webpack plugin for the Monaco Editor",
55
"main": "out/index.js",
66
"typings": "./out/index.d.ts",
@@ -28,15 +28,15 @@
2828
"homepage": "https://github.com/Microsoft/monaco-editor-webpack-plugin#readme",
2929
"peerDependencies": {
3030
"webpack": "^4.5.0",
31-
"monaco-editor": "0.19.x || 0.20.x"
31+
"@uplol/monaco-editor": "103.9.5"
3232
},
3333
"devDependencies": {
3434
"@types/loader-utils": "^1.1.3",
3535
"@types/webpack": "^4.41.6",
3636
"css-loader": "^3.4.2",
3737
"file-loader": "^5.0.2",
3838
"glob": "^7.1.6",
39-
"monaco-editor": "^0.20.0",
39+
"@uplol/monaco-editor": "^103.9.5",
4040
"style-loader": "^1.1.3",
4141
"typescript": "^3.7.5",
4242
"webpack": "^4.41.5",
@@ -45,4 +45,4 @@
4545
"dependencies": {
4646
"loader-utils": "^1.2.3"
4747
}
48-
}
48+
}

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ featuresArr.forEach(feature => featuresById[feature.label] = feature);
2929
*/
3030
function resolveMonacoPath(filePath: string): string {
3131
try {
32-
return require.resolve(path.join('monaco-editor/esm', filePath));
32+
return require.resolve(path.join('@uplol/monaco-editor/esm', filePath));
3333
} catch(err) {
34-
return require.resolve(path.join(process.cwd(), 'node_modules/monaco-editor/esm', filePath));
34+
return require.resolve(path.join(process.cwd(), 'node_modules/@uplol/monaco-editor/esm', filePath));
3535
}
3636
}
3737

0 commit comments

Comments
 (0)