mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Update integrate-esm.md
This commit is contained in:
parent
5d97a5f16e
commit
945211a03e
1 changed files with 4 additions and 0 deletions
|
|
@ -58,6 +58,8 @@ module.exports = {
|
||||||
|
|
||||||
### Option 2: Using plain webpack
|
### 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`
|
* `index.js`
|
||||||
```js
|
```js
|
||||||
import * as monaco from 'monaco-editor';
|
import * as monaco from 'monaco-editor';
|
||||||
|
|
@ -125,6 +127,8 @@ module.exports = {
|
||||||
|
|
||||||
### Using parcel
|
### 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.
|
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`
|
* `index.js`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue