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) {