Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 6918f40

Browse files
committed
0.4.0
1 parent 3925f64 commit 6918f40

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ import {x} from './y.js';
4040
4141
// this case throws as plain / bare names are not supported as in the WhatWG spec
4242
import thisWillThrow from 'x';
43+
44+
// dynamic import also supported
45+
import('./x').then(function (m) {
46+
// ...
47+
});
4348
</script>
4449

4550
<!-- dynamic loader instantiation also supported -->
@@ -56,4 +61,4 @@ import thisWillThrow from 'x';
5661
LICENSE
5762
---
5863

59-
MIT
64+
MIT

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browser-es-module-loader",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Demonstrates ES module loading in the browser",
55
"main": "dist/browser-es-module-loader.js",
66
"author": "Guy Bedford",

0 commit comments

Comments
 (0)