Skip to content

Commit

Permalink
small readme fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dido (Christoph Poelt) committed Oct 2, 2020
1 parent 6f2b2ae commit f79b8f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ It's even possible to use your favorite ES6 features like `dynamic-import` or `m

```javascript
// this is great for lazy loading an Elm app
import('./myElmModule.js').then((Elm) => {
import('./myElmModule.js').then(({ Elm }) => {
Elm.Main.init({ node: document.body })
});
```
Expand Down Expand Up @@ -65,7 +65,7 @@ Probably, yes. All modern Browsers support ES6 modules now. Check out the [compa

### How can I use this with Webpack/Parcel/Rome

I haven't 100% figured that out, but it should be pretty easy. `elm-esm` is designed to be a wrapper around `Elm`.
I haven't 100% figured that out, but it should be pretty easy. `elm-esm` is designed to be a wrapper around `elm`.
Most bundler plugins for Elm allow passing an option with a path to the Elm executable.
Just pass the path to `elm-esm` instead.
On the other hand why bundle when you can load the module in the browser directly?
Expand Down

0 comments on commit f79b8f7

Please sign in to comment.