【发布时间】:2017-12-02 18:44:12
【问题描述】:
vuejs 代码:
import monaco from "monaco-editor/min/vs/loader.js";
webpack.base.conf.js:
entry: {
app: './src/main.js'
},
output:{
path:resolve(__dirname, '../dist'),
filename:'[name].js',
publicPath: '/'
}
我在 webpack 中使用 monaco-editor,但我什至无法导入 loader.js。 好像monaco-editor/vs下的js文件是不允许加载的。
终端输出:
These dependencies were not found:
* vs/editor/edcore.main in ./~/monaco-editor/min/vs/editor/editor.main.js
* vs/language/typescript/src/mode in ./~/monaco-editor/min/vs/editor/editor.main.js
* fs in ./~/monaco-editor/min/vs/language/typescript/lib/typescriptServices.js
我能做什么?
【问题讨论】: