Skip to content

Commit

Permalink
Allow inlining es modules (#128)
Browse files Browse the repository at this point in the history
Add support for inlining es modules:

```
<script type="module" src="scripts/init.js" inline></script>
```
  • Loading branch information
cristinecula authored and popeindustries committed Aug 12, 2019
1 parent 7e38b68 commit 695d295
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ function getTypeFromType(type) {
case 'javascript':
case 'js':
case 'ecmascript':
case 'module':
return 'js';
case 'text/css':
case 'css':
Expand Down

0 comments on commit 695d295

Please sign in to comment.