Skip to content

Commit

Permalink
Add note re: type="module" to getting-started.md (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
twome authored and DeMoorJasper committed Oct 6, 2019
1 parent 854c72c commit b75463d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/i18n/en/docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Next, create an index.html and index.js file.
</body>
</html>
```
NB: Parcel converts JS assets to ES5, which won't run in in the context of a `<script type="module">` tag, so just use plain `<script>` tags with no `type` attribute in your source HTML.

```javascript
console.log('hello world')
Expand Down

1 comment on commit b75463d

@vercel
Copy link

@vercel vercel bot commented on b75463d Oct 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.