diff --git a/packages/cli/test/fixtures/build-modules/expected/bundled-amd/index.html b/packages/cli/test/fixtures/build-modules/expected/bundled-amd/index.html index 82ce35c0b..336d26ea5 100644 --- a/packages/cli/test/fixtures/build-modules/expected/bundled-amd/index.html +++ b/packages/cli/test/fixtures/build-modules/expected/bundled-amd/index.html @@ -1,6 +1,6 @@ - + diff --git a/packages/cli/test/fixtures/build-modules/expected/unbundled-amd/index.html b/packages/cli/test/fixtures/build-modules/expected/unbundled-amd/index.html index c5370fccb..1e12821e4 100644 --- a/packages/cli/test/fixtures/build-modules/expected/unbundled-amd/index.html +++ b/packages/cli/test/fixtures/build-modules/expected/unbundled-amd/index.html @@ -1,6 +1,6 @@ - + diff --git a/packages/esm-amd-loader/package-lock.json b/packages/esm-amd-loader/package-lock.json index 86866a053..d91dc90cb 100644 --- a/packages/esm-amd-loader/package-lock.json +++ b/packages/esm-amd-loader/package-lock.json @@ -95,9 +95,9 @@ "integrity": "sha1-lr3GtD4TSCASumaRsQGEktOWIsw=", "dev": true, "requires": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", - "js-tokens": "^3.0.0" + "chalk": "2.4.1", + "esutils": "2.0.2", + "js-tokens": "3.0.2" } }, "@babel/parser": { @@ -142,9 +142,9 @@ "integrity": "sha1-t+Oxw/TUz+Eb34yJ8e/V4WF7h6Y=", "dev": true, "requires": { - "esutils": "^2.0.2", - "lodash": "^4.17.5", - "to-fast-properties": "^2.0.0" + "esutils": "2.0.2", + "lodash": "4.17.10", + "to-fast-properties": "2.0.0" } }, "ansi-styles": { @@ -153,7 +153,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "^1.9.0" + "color-convert": "1.9.1" } }, "arr-diff": { @@ -162,7 +162,7 @@ "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", "dev": true, "requires": { - "arr-flatten": "^1.0.1" + "arr-flatten": "1.1.0" } }, "arr-flatten": { @@ -231,12 +231,12 @@ "integrity": "sha1-2Ufk7WtibcjCVofyQsJcvPbygaY=", "dev": true, "requires": { - "@babel/core": "^7.0.0-beta.46", - "babel-preset-minify": "^0.4.3", - "fs-readdir-recursive": "^1.1.0", - "mkdirp": "^0.5.1", - "util.promisify": "^1.0.0", - "yargs-parser": "^10.0.0" + "@babel/core": "7.0.0-beta.47", + "babel-preset-minify": "0.4.3", + "fs-readdir-recursive": "1.1.0", + "mkdirp": "0.5.1", + "util.promisify": "1.0.0", + "yargs-parser": "10.0.0" } }, "babel-plugin-minify-builtins": { @@ -245,7 +245,7 @@ "integrity": "sha1-nqPVn0rEp7uVjXEtKVVqH4b3+B4=", "dev": true, "requires": { - "babel-helper-evaluate-path": "^0.4.3" + "babel-helper-evaluate-path": "0.4.3" } }, "babel-plugin-minify-constant-folding": { @@ -254,7 +254,7 @@ "integrity": "sha1-MA+d6N2ghEoXaxk2U5YOJK0z4ZE=", "dev": true, "requires": { - "babel-helper-evaluate-path": "^0.4.3" + "babel-helper-evaluate-path": "0.4.3" } }, "babel-plugin-minify-dead-code-elimination": { @@ -263,10 +263,10 @@ "integrity": "sha1-c2KCZYZPkAjQAnUG9Yq+s8HQLZg=", "dev": true, "requires": { - "babel-helper-evaluate-path": "^0.4.3", - "babel-helper-mark-eval-scopes": "^0.4.3", - "babel-helper-remove-or-void": "^0.4.3", - "lodash.some": "^4.6.0" + "babel-helper-evaluate-path": "0.4.3", + "babel-helper-mark-eval-scopes": "0.4.3", + "babel-helper-remove-or-void": "0.4.3", + "lodash.some": "4.6.0" } }, "babel-plugin-minify-flip-comparisons": { @@ -275,7 +275,7 @@ "integrity": "sha1-AMqHDLjxO0XAOLPB68DyJyk8llo=", "dev": true, "requires": { - "babel-helper-is-void-0": "^0.4.3" + "babel-helper-is-void-0": "0.4.3" } }, "babel-plugin-minify-guarded-expressions": { @@ -284,7 +284,7 @@ "integrity": "sha1-zHCbRFP9IbHzAod0RMifiEJ845c=", "dev": true, "requires": { - "babel-helper-flip-expressions": "^0.4.3" + "babel-helper-flip-expressions": "0.4.3" } }, "babel-plugin-minify-infinity": { @@ -299,7 +299,7 @@ "integrity": "sha1-FvG/90t6fJPfwkHngx3V+0sCPvc=", "dev": true, "requires": { - "babel-helper-mark-eval-scopes": "^0.4.3" + "babel-helper-mark-eval-scopes": "0.4.3" } }, "babel-plugin-minify-numeric-literals": { @@ -320,9 +320,9 @@ "integrity": "sha1-N3VthcYURktLCSfytOQXGR1Vc4o=", "dev": true, "requires": { - "babel-helper-flip-expressions": "^0.4.3", - "babel-helper-is-nodes-equiv": "^0.0.1", - "babel-helper-to-multiple-sequence-expressions": "^0.4.3" + "babel-helper-flip-expressions": "0.4.3", + "babel-helper-is-nodes-equiv": "0.0.1", + "babel-helper-to-multiple-sequence-expressions": "0.4.3" } }, "babel-plugin-minify-type-constructors": { @@ -331,7 +331,7 @@ "integrity": "sha1-G8bxW4f3qxCF1CszC3F2V6IVZQA=", "dev": true, "requires": { - "babel-helper-is-void-0": "^0.4.3" + "babel-helper-is-void-0": "0.4.3" } }, "babel-plugin-transform-inline-consecutive-adds": { @@ -364,7 +364,7 @@ "integrity": "sha1-mMHSHiVXNlc/k+zlRFn2ziSYXTk=", "dev": true, "requires": { - "esutils": "^2.0.2" + "esutils": "2.0.2" } }, "babel-plugin-transform-regexp-constructors": { @@ -391,7 +391,7 @@ "integrity": "sha1-1AsNp/kcCMBsxyt2dHTAHEiU3gI=", "dev": true, "requires": { - "babel-helper-evaluate-path": "^0.4.3" + "babel-helper-evaluate-path": "0.4.3" } }, "babel-plugin-transform-simplify-comparison-operators": { @@ -412,29 +412,29 @@ "integrity": "sha1-spw91pGJBThFmPCSuVUVLiah/g8=", "dev": true, "requires": { - "babel-plugin-minify-builtins": "^0.4.3", - "babel-plugin-minify-constant-folding": "^0.4.3", - "babel-plugin-minify-dead-code-elimination": "^0.4.3", - "babel-plugin-minify-flip-comparisons": "^0.4.3", - "babel-plugin-minify-guarded-expressions": "^0.4.3", - "babel-plugin-minify-infinity": "^0.4.3", - "babel-plugin-minify-mangle-names": "^0.4.3", - "babel-plugin-minify-numeric-literals": "^0.4.3", - "babel-plugin-minify-replace": "^0.4.3", - "babel-plugin-minify-simplify": "^0.4.3", - "babel-plugin-minify-type-constructors": "^0.4.3", - "babel-plugin-transform-inline-consecutive-adds": "^0.4.3", - "babel-plugin-transform-member-expression-literals": "^6.9.4", - "babel-plugin-transform-merge-sibling-variables": "^6.9.4", - "babel-plugin-transform-minify-booleans": "^6.9.4", - "babel-plugin-transform-property-literals": "^6.9.4", - "babel-plugin-transform-regexp-constructors": "^0.4.3", - "babel-plugin-transform-remove-console": "^6.9.4", - "babel-plugin-transform-remove-debugger": "^6.9.4", - "babel-plugin-transform-remove-undefined": "^0.4.3", - "babel-plugin-transform-simplify-comparison-operators": "^6.9.4", - "babel-plugin-transform-undefined-to-void": "^6.9.4", - "lodash.isplainobject": "^4.0.6" + "babel-plugin-minify-builtins": "0.4.3", + "babel-plugin-minify-constant-folding": "0.4.3", + "babel-plugin-minify-dead-code-elimination": "0.4.3", + "babel-plugin-minify-flip-comparisons": "0.4.3", + "babel-plugin-minify-guarded-expressions": "0.4.3", + "babel-plugin-minify-infinity": "0.4.3", + "babel-plugin-minify-mangle-names": "0.4.3", + "babel-plugin-minify-numeric-literals": "0.4.3", + "babel-plugin-minify-replace": "0.4.3", + "babel-plugin-minify-simplify": "0.4.3", + "babel-plugin-minify-type-constructors": "0.4.3", + "babel-plugin-transform-inline-consecutive-adds": "0.4.3", + "babel-plugin-transform-member-expression-literals": "6.9.4", + "babel-plugin-transform-merge-sibling-variables": "6.9.4", + "babel-plugin-transform-minify-booleans": "6.9.4", + "babel-plugin-transform-property-literals": "6.9.4", + "babel-plugin-transform-regexp-constructors": "0.4.3", + "babel-plugin-transform-remove-console": "6.9.4", + "babel-plugin-transform-remove-debugger": "6.9.4", + "babel-plugin-transform-remove-undefined": "0.4.3", + "babel-plugin-transform-simplify-comparison-operators": "6.9.4", + "babel-plugin-transform-undefined-to-void": "6.9.4", + "lodash.isplainobject": "4.0.6" } }, "balanced-match": { @@ -449,7 +449,7 @@ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { - "balanced-match": "^1.0.0", + "balanced-match": "1.0.0", "concat-map": "0.0.1" } }, @@ -459,9 +459,9 @@ "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", "dev": true, "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" + "expand-range": "1.8.2", + "preserve": "0.2.0", + "repeat-element": "1.1.2" } }, "camelcase": { @@ -476,9 +476,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.4.0" } }, "clang-format": { @@ -487,9 +487,9 @@ "integrity": "sha512-x90Hac4ERacGDcZSvHKK58Ga0STuMD+Doi5g0iG2zf7wlJef5Huvhs/3BvMRFxwRYyYSdl6mpQNrtfMxE8MQzw==", "dev": true, "requires": { - "async": "^1.5.2", - "glob": "^7.0.0", - "resolve": "^1.1.6" + "async": "1.5.2", + "glob": "7.1.2", + "resolve": "1.7.1" } }, "color-convert": { @@ -498,7 +498,7 @@ "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", "dev": true, "requires": { - "color-name": "^1.1.1" + "color-name": "1.1.3" } }, "color-name": { @@ -534,8 +534,8 @@ "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", "dev": true, "requires": { - "foreach": "^2.0.5", - "object-keys": "^1.0.8" + "foreach": "2.0.5", + "object-keys": "1.0.11" } }, "es-abstract": { @@ -544,11 +544,11 @@ "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", "dev": true, "requires": { - "es-to-primitive": "^1.1.1", - "function-bind": "^1.1.1", - "has": "^1.0.1", - "is-callable": "^1.1.3", - "is-regex": "^1.0.4" + "es-to-primitive": "1.1.1", + "function-bind": "1.1.1", + "has": "1.0.1", + "is-callable": "1.1.3", + "is-regex": "1.0.4" } }, "es-to-primitive": { @@ -557,9 +557,9 @@ "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", "dev": true, "requires": { - "is-callable": "^1.1.1", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.1" + "is-callable": "1.1.3", + "is-date-object": "1.0.1", + "is-symbol": "1.0.1" } }, "escape-string-regexp": { @@ -580,7 +580,7 @@ "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", "dev": true, "requires": { - "is-posix-bracket": "^0.1.0" + "is-posix-bracket": "0.1.1" } }, "expand-range": { @@ -589,7 +589,7 @@ "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", "dev": true, "requires": { - "fill-range": "^2.1.0" + "fill-range": "2.2.4" } }, "extglob": { @@ -598,7 +598,7 @@ "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", "dev": true, "requires": { - "is-extglob": "^1.0.0" + "is-extglob": "1.0.0" } }, "filename-regex": { @@ -613,11 +613,11 @@ "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", "dev": true, "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" + "is-number": "2.1.0", + "isobject": "2.1.0", + "randomatic": "3.0.0", + "repeat-element": "1.1.2", + "repeat-string": "1.6.1" } }, "for-in": { @@ -632,7 +632,7 @@ "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", "dev": true, "requires": { - "for-in": "^1.0.1" + "for-in": "1.0.2" } }, "foreach": { @@ -665,12 +665,12 @@ "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } }, "glob-base": { @@ -679,8 +679,8 @@ "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", "dev": true, "requires": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" + "glob-parent": "2.0.0", + "is-glob": "2.0.1" } }, "glob-parent": { @@ -689,7 +689,7 @@ "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", "dev": true, "requires": { - "is-glob": "^2.0.0" + "is-glob": "2.0.1" } }, "globals": { @@ -719,8 +719,8 @@ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { - "once": "^1.3.0", - "wrappy": "1" + "once": "1.4.0", + "wrappy": "1.0.2" } }, "inherits": { @@ -735,7 +735,7 @@ "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", "dev": true, "requires": { - "loose-envify": "^1.0.0" + "loose-envify": "1.3.1" } }, "is-buffer": { @@ -768,7 +768,7 @@ "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", "dev": true, "requires": { - "is-primitive": "^2.0.0" + "is-primitive": "2.0.0" } }, "is-extendable": { @@ -789,7 +789,7 @@ "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, "requires": { - "is-extglob": "^1.0.0" + "is-extglob": "1.0.0" } }, "is-number": { @@ -798,7 +798,7 @@ "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, "requires": { - "kind-of": "^3.0.2" + "kind-of": "3.2.2" } }, "is-posix-bracket": { @@ -819,7 +819,7 @@ "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", "dev": true, "requires": { - "has": "^1.0.1" + "has": "1.0.1" } }, "is-symbol": { @@ -867,7 +867,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "is-buffer": "1.1.6" } }, "lodash": { @@ -894,7 +894,7 @@ "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", "dev": true, "requires": { - "js-tokens": "^3.0.0" + "js-tokens": "3.0.2" } }, "math-random": { @@ -909,19 +909,19 @@ "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", "dev": true, "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" + "arr-diff": "2.0.0", + "array-unique": "0.2.1", + "braces": "1.8.5", + "expand-brackets": "0.1.5", + "extglob": "0.3.2", + "filename-regex": "2.0.1", + "is-extglob": "1.0.0", + "is-glob": "2.0.1", + "kind-of": "3.2.2", + "normalize-path": "2.1.1", + "object.omit": "2.0.1", + "parse-glob": "3.0.4", + "regex-cache": "0.4.4" } }, "minimatch": { @@ -930,7 +930,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "brace-expansion": "1.1.11" } }, "minimist": { @@ -960,7 +960,7 @@ "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", "dev": true, "requires": { - "remove-trailing-separator": "^1.0.1" + "remove-trailing-separator": "1.1.0" } }, "object-keys": { @@ -975,8 +975,8 @@ "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", "dev": true, "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.5.1" + "define-properties": "1.1.2", + "es-abstract": "1.11.0" } }, "object.omit": { @@ -985,8 +985,8 @@ "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", "dev": true, "requires": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" + "for-own": "0.1.5", + "is-extendable": "0.1.1" } }, "once": { @@ -995,7 +995,7 @@ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { - "wrappy": "1" + "wrappy": "1.0.2" } }, "parse-glob": { @@ -1004,10 +1004,10 @@ "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", "dev": true, "requires": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" + "glob-base": "0.3.0", + "is-dotfile": "1.0.3", + "is-extglob": "1.0.0", + "is-glob": "2.0.1" } }, "path-is-absolute": { @@ -1034,9 +1034,9 @@ "integrity": "sha512-VdxFOIEY3mNO5PtSRkkle/hPJDHvQhK21oa73K4yAc9qmp6N429gAyF1gZMOTMeS0/AYzaV/2Trcef+NaIonSA==", "dev": true, "requires": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" + "is-number": "4.0.0", + "kind-of": "6.0.2", + "math-random": "1.0.1" }, "dependencies": { "is-number": { @@ -1059,7 +1059,7 @@ "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", "dev": true, "requires": { - "is-equal-shallow": "^0.1.3" + "is-equal-shallow": "0.1.3" } }, "remove-trailing-separator": { @@ -1086,7 +1086,7 @@ "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", "dev": true, "requires": { - "path-parse": "^1.0.5" + "path-parse": "1.0.5" } }, "semver": { @@ -1107,7 +1107,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "has-flag": "3.0.0" } }, "to-fast-properties": { @@ -1128,8 +1128,8 @@ "integrity": "sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==", "dev": true, "requires": { - "define-properties": "^1.1.2", - "object.getownpropertydescriptors": "^2.0.3" + "define-properties": "1.1.2", + "object.getownpropertydescriptors": "2.0.3" } }, "wrappy": { @@ -1144,7 +1144,7 @@ "integrity": "sha512-+DHejWujTVYeMHLff8U96rLc4uE4Emncoftvn5AjhB1Jw1pWxLzgBUT/WYbPrHmy6YPEBTZQx5myHhVcuuu64g==", "dev": true, "requires": { - "camelcase": "^4.1.0" + "camelcase": "4.1.0" } } } diff --git a/packages/esm-amd-loader/src/esm-amd-loader.ts b/packages/esm-amd-loader/src/esm-amd-loader.ts index 6c03b0203..8441ea085 100644 --- a/packages/esm-amd-loader/src/esm-amd-loader.ts +++ b/packages/esm-amd-loader/src/esm-amd-loader.ts @@ -16,6 +16,7 @@ interface Window { define: ((deps: string[], moduleBody: OnExecutedCallback) => void)&{ _reset?: () => void; }; + HTMLImports?: { importForElement: (element: Element) => HTMLLinkElement | undefined }; } type OnExecutedCallback = (...args: Array<{}>) => void; @@ -263,7 +264,9 @@ function loadDeps( args.push({ // We append "# \ No newline at end of file diff --git a/packages/esm-amd-loader/test/static/html-import/parent-import.html b/packages/esm-amd-loader/test/static/html-import/parent-import.html new file mode 100644 index 000000000..86a0c2c30 --- /dev/null +++ b/packages/esm-amd-loader/test/static/html-import/parent-import.html @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/packages/esm-amd-loader/test/static/html-import/x.js b/packages/esm-amd-loader/test/static/html-import/x.js new file mode 100644 index 000000000..e21626208 --- /dev/null +++ b/packages/esm-amd-loader/test/static/html-import/x.js @@ -0,0 +1,3 @@ +define([], function () { + window.addExecutedForImport('x'); +}); \ No newline at end of file diff --git a/packages/esm-amd-loader/test/static/html-import/y/child-import.html b/packages/esm-amd-loader/test/static/html-import/y/child-import.html new file mode 100644 index 000000000..bc713adcb --- /dev/null +++ b/packages/esm-amd-loader/test/static/html-import/y/child-import.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/packages/esm-amd-loader/test/static/html-import/y/deep-import.html b/packages/esm-amd-loader/test/static/html-import/y/deep-import.html new file mode 100644 index 000000000..6d0edf5db --- /dev/null +++ b/packages/esm-amd-loader/test/static/html-import/y/deep-import.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/packages/esm-amd-loader/test/static/html-import/y/y.js b/packages/esm-amd-loader/test/static/html-import/y/y.js new file mode 100644 index 000000000..f7d86b951 --- /dev/null +++ b/packages/esm-amd-loader/test/static/html-import/y/y.js @@ -0,0 +1,3 @@ +define(['./z/z.js'], () => { + window.addExecutedForImport('y'); +}); \ No newline at end of file diff --git a/packages/esm-amd-loader/test/static/html-import/y/z/z.js b/packages/esm-amd-loader/test/static/html-import/y/z/z.js new file mode 100644 index 000000000..f14984400 --- /dev/null +++ b/packages/esm-amd-loader/test/static/html-import/y/z/z.js @@ -0,0 +1,3 @@ +define([], () => { + window.addExecutedForImport('z'); +}); \ No newline at end of file diff --git a/packages/esm-amd-loader/test/static/y/root-html-import.html b/packages/esm-amd-loader/test/static/y/root-html-import.html new file mode 100644 index 000000000..fd48c5183 --- /dev/null +++ b/packages/esm-amd-loader/test/static/y/root-html-import.html @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/packages/esm-amd-loader/test/static/y/suite-min.html b/packages/esm-amd-loader/test/static/y/suite-min.html index 97240c374..316392264 100644 --- a/packages/esm-amd-loader/test/static/y/suite-min.html +++ b/packages/esm-amd-loader/test/static/y/suite-min.html @@ -5,6 +5,7 @@ + diff --git a/packages/esm-amd-loader/test/static/y/suite.html b/packages/esm-amd-loader/test/static/y/suite.html index 80a42a885..151fe3728 100644 --- a/packages/esm-amd-loader/test/static/y/suite.html +++ b/packages/esm-amd-loader/test/static/y/suite.html @@ -5,6 +5,7 @@ + diff --git a/packages/esm-amd-loader/test/wct.conf.json b/packages/esm-amd-loader/test/wct.conf.json index 44c163e5b..93e597aa4 100644 --- a/packages/esm-amd-loader/test/wct.conf.json +++ b/packages/esm-amd-loader/test/wct.conf.json @@ -2,7 +2,8 @@ "npm": true, "moduleResolution": "node", "suites": [ - "static/**/*.html" + "static/y/suite.html", + "static/y/suite-min.html" ], "plugins": { "local": { @@ -30,4 +31,4 @@ ] } } -} +} \ No newline at end of file diff --git a/packages/polyserve/test/bower_components/test-modules/golden/test-suite-no-wct.html b/packages/polyserve/test/bower_components/test-modules/golden/test-suite-no-wct.html index fff206b6d..68c51f797 100644 --- a/packages/polyserve/test/bower_components/test-modules/golden/test-suite-no-wct.html +++ b/packages/polyserve/test/bower_components/test-modules/golden/test-suite-no-wct.html @@ -1,5 +1,5 @@ - + diff --git a/packages/polyserve/test/bower_components/test-modules/golden/test-suite-wct.html b/packages/polyserve/test/bower_components/test-modules/golden/test-suite-wct.html index 59d8012e1..3ca1e7b2a 100644 --- a/packages/polyserve/test/bower_components/test-modules/golden/test-suite-wct.html +++ b/packages/polyserve/test/bower_components/test-modules/golden/test-suite-wct.html @@ -22,7 +22,7 @@ - +