mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
fix: monaco build problems
This commit is contained in:
parent
62f0899e10
commit
f811992527
|
@ -57,12 +57,11 @@ export default mixins(genericHelpers).extend({
|
|||
readOnly: this.isReadOnly,
|
||||
});
|
||||
|
||||
this.monacoInstance.onDidChangeModelContent((ev) => {
|
||||
if (this.monacoInstance) {
|
||||
const model = this.monacoInstance.getModel();
|
||||
if (model) {
|
||||
this.$emit('valueChanged', model.getValue());
|
||||
}
|
||||
this.monacoInstance.onDidChangeModelContent(() => {
|
||||
const model = this.monacoInstance!.getModel();
|
||||
|
||||
if (model) {
|
||||
this.$emit('valueChanged', model.getValue());
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ module.exports = {
|
|||
disableHostCheck: true,
|
||||
},
|
||||
plugins: [
|
||||
new MonacoWebpackPlugin(),
|
||||
new MonacoWebpackPlugin({ languages: ['javascript', 'html', 'typescript'] }),
|
||||
],
|
||||
},
|
||||
css: {
|
||||
|
@ -28,5 +28,5 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
},
|
||||
publicPath: process.env.VUE_APP_PUBLIC_PATH ? process.env.VUE_APP_PUBLIC_PATH : '/',
|
||||
publicPath: process.env.VUE_APP_PUBLIC_PATH && process.env.VUE_APP_PUBLIC_PATH !== '/%BASE_PATH%/' ? process.env.VUE_APP_PUBLIC_PATH : '/',
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue