Update integrate-esm.md

pull/1339/head
Alexandru Dima 6 years ago committed by GitHub
parent 5d97a5f16e
commit 945211a03e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -58,6 +58,8 @@ module.exports = {
### Option 2: Using plain webpack
Full working samples are available at https://github.com/Microsoft/monaco-editor-samples/tree/master/browser-esm-webpack or https://github.com/Microsoft/monaco-editor-samples/tree/master/browser-esm-webpack-small
* `index.js`
```js
import * as monaco from 'monaco-editor';
@ -125,6 +127,8 @@ module.exports = {
### Using parcel
A full working sample is available at https://github.com/Microsoft/monaco-editor-samples/tree/master/browser-esm-parcel
When using parcel, we need to use the `getWorkerUrl` function and build the workers seperately from our main source. To simplify things, we can write a tiny bash script to build the workers for us.
* `index.js`

Loading…
Cancel
Save