From c9aec9eb26e3b9ebd1f4db19651308dbbbd14034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Segersv=C3=A4rd?= Date: Fri, 28 Aug 2015 17:56:46 +0200 Subject: [PATCH] Flag ids that are modules --- src/ExternalModule.js | 1 + src/Module.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ExternalModule.js b/src/ExternalModule.js index 01a00d0..45af687 100644 --- a/src/ExternalModule.js +++ b/src/ExternalModule.js @@ -8,6 +8,7 @@ export default class ExternalModule { // Implement `Identifier` interface. this.originalName = this.name = makeLegalIdentifier( id ); this.module = this; + this.isModule = true; // Define the external module's name in the bundle scope. bundle.scope.define( id, this ); diff --git a/src/Module.js b/src/Module.js index 5cd9ca4..f606c6a 100644 --- a/src/Module.js +++ b/src/Module.js @@ -32,6 +32,7 @@ export default class Module { this.bundle = bundle; this.id = id; this.module = this; + this.isModule = true; // Implement Identifier interface. this.name = makeLegalIdentifier( basename( id ).slice( 0, -extname( id ).length ) );