Skip to content

Commit c70948f

Browse files
authored
Merge pull request #5 from mpvue/feature/ttaplipay
fix #1409
2 parents 27a58cd + d4e0026 commit c70948f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ mpvueVendorPlugin.prototype.apply = function(compiler) {
5050
const asset = compilation.assets[fileName];
5151
if (asset) {
5252
let fileContent = asset.source();
53-
compilation.assets[fileName] = {
53+
compilation.assets[fileName] = Object.assign(asset, {
5454
source: () => {
5555
let from = /g\s=\s\(function\(\)\s\{\r?\n?\s+return\sthis;\r?\n?\s*\}\)\(\)\;/;
5656
let to = `g = (function() { return typeof global !== 'undefined' ? global : this; })();`
@@ -59,8 +59,9 @@ mpvueVendorPlugin.prototype.apply = function(compiler) {
5959
},
6060
size: () => {
6161
return Buffer.byteLength(fileContent, 'utf8');
62-
}
63-
};
62+
},
63+
sourceAndMap: false
64+
})
6465
}
6566
});
6667
});

0 commit comments

Comments
 (0)