diff --git a/src/HTMLImports.js b/src/HTMLImports.js
index e281a95..5daedbc 100644
--- a/src/HTMLImports.js
+++ b/src/HTMLImports.js
@@ -147,11 +147,9 @@ if (!useNative) {
}
return doc;
}
-
- // exports
- scope.importer = importer;
} else {
// do nothing if using native imports
+ var importer = {};
}
var wrappedDoc = window.ShadowDOMPolyfill ? wrap(document) : document;
@@ -223,6 +221,7 @@ function isImportLoaded(link) {
// exports
scope.hasNative = hasNative;
scope.useNative = useNative;
+scope.importer = importer;
scope.whenImportsReady = whenImportsReady;
scope.IMPORT_LINK_TYPE = IMPORT_LINK_TYPE;
scope.isImportLoaded = isImportLoaded;
diff --git a/test/js/tests.js b/test/js/tests.js
index 542d0d0..fed0abd 100644
--- a/test/js/tests.js
+++ b/test/js/tests.js
@@ -12,4 +12,5 @@ htmlSuite('HTMLImports', function() {
htmlTest('html/load.html');
htmlTest('html/currentScript.html');
htmlTest('html/dedupe.html');
+ htmlTest('html/dynamic.html');
});