Skip to content

Commit

Permalink
1.5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jul 28, 2022
1 parent 8e0bd20 commit 30d93c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Because we are still using the native module loader the edge cases work out comp
Include ES Module Shims with a `async` attribute on the script, then include an import map and module scripts normally:

```html
<script async src="https://ga.jspm.io/npm:[email protected].9/dist/es-module-shims.js"></script>
<script async src="https://ga.jspm.io/npm:[email protected].10/dist/es-module-shims.js"></script>

<!-- https://generator.jspm.io/#U2NhYGBkDM0rySzJSU1hKEpNTC5xMLTQM9Az0C1K1jMAAKFS5w0gAA -->
<script type="importmap">
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "es-module-shims",
"version": "1.5.9",
"version": "1.5.10",
"description": "Shims for the latest ES module features",
"main": "dist/es-module-shims.js",
"exports": {
Expand All @@ -18,7 +18,7 @@
"license": "MIT",
"devDependencies": {
"@rollup/plugin-replace": "^2.4.2",
"es-module-lexer": "^1.0.0",
"es-module-lexer": "^1.0.1",
"esm": "^3.2.25",
"kleur": "^4.1.4",
"mime-types": "^2.1.33",
Expand Down
6 changes: 2 additions & 4 deletions src/es-module-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,8 @@ function resolveDeps (load, seen) {
}

// support progressive cycle binding updates
if (load.s) {
const fields = exports.filter(expt => expt.ln).map(expt => `${source.slice(expt.s, expt.e)}: ${expt.ln}`);
resolvedSource += `\n;import{u$_}from'${load.s}';u$_({ ${fields.join(',')} });\n`;
}
if (load.s)
resolvedSource += `\n;import{u$_}from'${load.s}';u$_({ ${exports.filter(e => e.ln).map(({ s, e, ln }) => `${source.slice(s, e)}: ${ln}`).join(',')} });\n`;

pushStringTo(source.length);
}
Expand Down

0 comments on commit 30d93c0

Please sign in to comment.