es-module-shims 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -28,7 +28,7 @@ Because we are still using the native module loader the edge cases work out comp
28
28
  Include ES Module Shims with a `async` attribute on the script, then include an import map and module scripts normally:
29
29
 
30
30
  ```html
31
- <script async src="https://ga.jspm.io/npm:es-module-shims@2.0.8/dist/es-module-shims.js"></script>
31
+ <script async src="https://ga.jspm.io/npm:es-module-shims@2.0.9/dist/es-module-shims.js"></script>
32
32
 
33
33
  <!-- https://generator.jspm.io/#U2NhYGBkDM0rySzJSU1hKEpNTC5xMLTQM9Az0C1K1jMAAKFS5w0gAA -->
34
34
  <script type="importmap">
@@ -553,7 +553,7 @@ Once enabled, the separate `es-module-shims-typescript.js` extension must be ava
553
553
  Example:
554
554
 
555
555
  ```html
556
- <script async src="https://ga.jspm.io/npm:es-module-shims@2.0.8/dist/es-module-shims.js"></script>
556
+ <script async src="https://ga.jspm.io/npm:es-module-shims@2.0.9/dist/es-module-shims.js"></script>
557
557
  <script type="esms-options">
558
558
  {
559
559
  "polyfillEnable": "all"
@@ -1,4 +1,4 @@
1
- /* ES Module Shims 2.0.8 */
1
+ /* ES Module Shims 2.0.9 */
2
2
  (function () {
3
3
 
4
4
  const hasDocument = typeof document !== 'undefined';
@@ -1167,6 +1167,10 @@
1167
1167
  return initTs()
1168
1168
  .then(() => {
1169
1169
  const transformed = esmsTsTransform(source, baseUrl);
1170
+ if (transformed !== undefined) {
1171
+ onpolyfill();
1172
+ firstPolyfillLoad = false;
1173
+ }
1170
1174
  return topLevelLoad(
1171
1175
  baseUrl,
1172
1176
  getFetchOpts(script),
@@ -1,4 +1,4 @@
1
- /* ES Module Shims 2.0.8 */
1
+ /* ES Module Shims 2.0.9 */
2
2
  (function () {
3
3
 
4
4
  const hasDocument = typeof document !== 'undefined';
@@ -1147,6 +1147,10 @@
1147
1147
  return initTs()
1148
1148
  .then(() => {
1149
1149
  const transformed = esmsTsTransform(source, baseUrl);
1150
+ if (transformed !== undefined) {
1151
+ onpolyfill();
1152
+ firstPolyfillLoad = false;
1153
+ }
1150
1154
  return topLevelLoad(
1151
1155
  baseUrl,
1152
1156
  getFetchOpts(script),
@@ -1,4 +1,4 @@
1
- /* ES Module Shims Wasm 2.0.8 */
1
+ /* ES Module Shims Wasm 2.0.9 */
2
2
  (function () {
3
3
 
4
4
  const hasDocument = typeof document !== 'undefined';
@@ -1147,6 +1147,10 @@
1147
1147
  return initTs()
1148
1148
  .then(() => {
1149
1149
  const transformed = esmsTsTransform(source, baseUrl);
1150
+ if (transformed !== undefined) {
1151
+ onpolyfill();
1152
+ firstPolyfillLoad = false;
1153
+ }
1150
1154
  return topLevelLoad(
1151
1155
  baseUrl,
1152
1156
  getFetchOpts(script),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-module-shims",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "Shims for the latest ES module features",
5
5
  "main": "dist/es-module-shims.js",
6
6
  "exports": {