Closed jeeftor closed 5 years ago
Something like this:
<template>
<monaco-editor :require="amdRequire" />
</template>
<script>
export default {
methods: {
amdRequire: window.amdRequire
// Or put this in `data`, doesn't really matter I guess
}
}
</script>
I'm trying to use this in electron. I've downloaded the Monaco sample project (https://github.com/Microsoft/monaco-editor-samples/tree/master/electron-amd) and that runs fine in electron - but I'm at a loss how to make your component work in electron.
I understand I can pass in a
require
property - but I'm not exactly clear how to do that.I assume I use it like this:
Do I construct my own
amdRequire
and pass it in?Do i do something like
:require=COMPUTED_PROPERTY
Any chance you know how to make this work in electron? I've tried a few routes and got confused.
Sample Code from Microsoft