From de54077962599c6cfb0ec34335447e717f7003d4 Mon Sep 17 00:00:00 2001 From: Tanguy Le Barzic Date: Tue, 23 Aug 2016 14:08:43 +0200 Subject: [PATCH] Fix the import of a component from a component with the same base name --- src/webpack/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpack/index.js b/src/webpack/index.js index 1bb3d13aa..745d18dd5 100644 --- a/src/webpack/index.js +++ b/src/webpack/index.js @@ -45,7 +45,7 @@ function transform(source, map) { const separator = '\n\n'; const appendText = tagCommonJSExportsSource.replace( /__FILENAME__/g, - JSON.stringify(path.basename(this.resourcePath)) + JSON.stringify(this.resourcePath) ); if (this.sourceMap === false) {