mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix: monaco build problems
This commit is contained in:
@@ -57,13 +57,12 @@ export default mixins(genericHelpers).extend({
|
|||||||
readOnly: this.isReadOnly,
|
readOnly: this.isReadOnly,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.monacoInstance.onDidChangeModelContent((ev) => {
|
this.monacoInstance.onDidChangeModelContent(() => {
|
||||||
if (this.monacoInstance) {
|
const model = this.monacoInstance!.getModel();
|
||||||
const model = this.monacoInstance.getModel();
|
|
||||||
if (model) {
|
if (model) {
|
||||||
this.$emit('valueChanged', model.getValue());
|
this.$emit('valueChanged', model.getValue());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.loadAutocompleteData();
|
this.loadAutocompleteData();
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ module.exports = {
|
|||||||
disableHostCheck: true,
|
disableHostCheck: true,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new MonacoWebpackPlugin(),
|
new MonacoWebpackPlugin({ languages: ['javascript', 'html', 'typescript'] }),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
css: {
|
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 : '/',
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user