From c4ed4758899787c3bdfaa69baefe2a48bbb4a748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Segersv=C3=A4rd?= Date: Wed, 26 Aug 2015 14:14:16 +0200 Subject: [PATCH] Make sure that `Identifiers` all have a `module` property. --- src/Module.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Module.js b/src/Module.js index b72c2cd..56e8791 100644 --- a/src/Module.js +++ b/src/Module.js @@ -111,6 +111,7 @@ export default class Module { originalName: 'default', name: 'default', + module: this, statement, localName: 'default', identifier, @@ -121,7 +122,7 @@ export default class Module { this.exports.define( id ); - // Rename it to avoid generating the `default` idenntifier, + // Rename it to avoid generating the `default` identifier, // which is invalid. id.name = this.name; } @@ -159,6 +160,7 @@ export default class Module { originalName: name, name, + module: this, statement, localName: name, expression: declaration