Comments (3)
The script you found is used to build the monaco-editor
package. This package uses the monaco-editor
package. Also I removed UMD support, because it didn’t work.
Please have a look at the examples to see how to use this package.
from monaco-yaml.
@remcohaszing I see. My understanding was this was a plugin for monaco-editor that had to be bundled with the editor itself, following the steps in their CONTRIBUTING guide. Is there a way I'd be able to use this package in that manner? (perhaps with some minor modifications/tweaks). I'd appreciate some guidance, thanks!
from monaco-yaml.
As of monaco-editor
22 they dropped support for the global monaco
. This means for this package I had to choose to either support monaco-editor
or monaco-editor-core
(microsoft/monaco-editor#2451). I chose monaco-editor
. This means monaco-yaml
depends on the build output of monaco-editor
.
Also I dropped support for UMD, because as far as I’m aware, the UMD build has been broken for a long time. Also I believe ESM is the future of JavaScript modules.
This package can be used like any other package from npm. Simply install it using npm install monaco-editor monaco-yaml
. See the webpack example as a reference.
I’m also open to examples using other bundlers if you’re interested.
Is there a way I'd be able to use this package in that manner? (perhaps with some minor modifications/tweaks). I'd appreciate some guidance, thanks!
If you really want to use it in that manner, you could try to use version 2.x of monaco-yaml
. Although I recommend to just use npm install
instead of a custom monaco build.
from monaco-yaml.
Related Issues (20)
- Can I use setDiagnosticsOptions for multiple schemas that are fetched lazily? HOT 1
- Autocomplete initializes the value with null instead of it's optional values HOT 3
- Requesting example for react-monaco-editor HOT 1
- Global CSS cannot be imported from within node_modules HOT 5
- How to test the demos with a locally-modified version of `yaml-language-server`? HOT 2
- Error: path3.basename is not a function HOT 2
- how to use `yaml` as an embedded language HOT 4
- Autompletion not working in Example HOT 2
- support prettier v3 HOT 2
- configureyaml is not working with @monaco-editor/react HOT 12
- References fail to resolve when using locally defined schema with `enableSchemaRequest` set to false HOT 1
- Ability to tweak autocompletion HOT 1
- monaco-yaml在销毁的时候调用dispose()后控制台报错 HOT 1
- [ BUG ] Next.JS 14.1 Can't load worker file HOT 1
- [ NEED HELP ] window is not defined on NextJS 14.1.0 HOT 3
- How to load with @monaco-editor/loader? HOT 1
- Does this library is support with monaco editor AMD version HOT 4
- Enum autocomplete didn't put string inside quote HOT 1
- Uncaught (in promise) Error: Worker manager has been disposed HOT 3
- The error message for the enumeration type is incorrect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monaco-yaml.