Update integrate-esm.md

This commit is contained in:
Alexandru Dima 2019-03-02 01:21:41 +01:00 committed by GitHub
parent 5d97a5f16e
commit 945211a03e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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`