diff --git a/packages/cli/src/test/integration/fixtures/build-modules/expected/bundled-amd/index.html b/packages/cli/src/test/integration/fixtures/build-modules/expected/bundled-amd/index.html index ff537a70f..181692427 100644 --- a/packages/cli/src/test/integration/fixtures/build-modules/expected/bundled-amd/index.html +++ b/packages/cli/src/test/integration/fixtures/build-modules/expected/bundled-amd/index.html @@ -1,6 +1,6 @@
- + diff --git a/packages/cli/src/test/integration/fixtures/build-modules/expected/unbundled-amd/index.html b/packages/cli/src/test/integration/fixtures/build-modules/expected/unbundled-amd/index.html index f4bf25ca1..a2e539ac1 100644 --- a/packages/cli/src/test/integration/fixtures/build-modules/expected/unbundled-amd/index.html +++ b/packages/cli/src/test/integration/fixtures/build-modules/expected/unbundled-amd/index.html @@ -1,6 +1,6 @@ - + diff --git a/packages/esm-amd-loader/CHANGELOG.md b/packages/esm-amd-loader/CHANGELOG.md index f86eb4365..3f5045a61 100644 --- a/packages/esm-amd-loader/CHANGELOG.md +++ b/packages/esm-amd-loader/CHANGELOG.md @@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). - +# Unreleased +* Fix bug where the `import.meta.url` of a top-level module had an artificial + anchor suffix (e.g. "http://example.com/foo#3"). ## [0.1.0] - 2018-05-01 diff --git a/packages/esm-amd-loader/src/esm-amd-loader.ts b/packages/esm-amd-loader/src/esm-amd-loader.ts index aac842850..e781194f9 100644 --- a/packages/esm-amd-loader/src/esm-amd-loader.ts +++ b/packages/esm-amd-loader/src/esm-amd-loader.ts @@ -215,7 +215,15 @@ function require( } else if (depSpec === 'meta') { numUnresolvedDeps--; - args.push({url: mod.url}); + args.push({ + // We append "# + diff --git a/packages/polyserve/test/bower_components/test-modules/golden/test-suite-nomodule.html b/packages/polyserve/test/bower_components/test-modules/golden/test-suite-nomodule.html index b042ac4d6..1773e0d90 100644 --- a/packages/polyserve/test/bower_components/test-modules/golden/test-suite-nomodule.html +++ b/packages/polyserve/test/bower_components/test-modules/golden/test-suite-nomodule.html @@ -4,4 +4,4 @@ - + \ No newline at end of file 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 09c3f7229..cbd1cb370 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 @@ - +