Fix path lookup

pull/2748/head
Alex Dima 7 years ago
parent 118c0d5783
commit 2639244ae8

@ -32,7 +32,7 @@ const LANGUAGES = require('./languages');
const FEATURES = require('./features');
function resolveMonacoPath(filePath) {
return require.resolve(path.join('../esm', filePath));
return require.resolve(path.join('monaco-editor/esm', filePath));
}
const languagesById = fromPairs(

3219
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
{
"name": "monaco-editor-webpack-plugin",
"version": "1.0.0",
"version": "0.0.1",
"description": "A webpack plugin for the Monaco Editor",
"main": "index.js",
"scripts": {
@ -22,7 +22,8 @@
"url": "https://github.com/Microsoft/monaco-editor-webpack-plugin/issues"
},
"homepage": "https://github.com/Microsoft/monaco-editor-webpack-plugin#readme",
"dependencies": {
"webpack": "^4.5.0"
"peerDependencies": {
"webpack": "^4.5.0",
"monaco-editor": "^0.11.1"
}
}

Loading…
Cancel
Save