Skip to content

Commit

Permalink
fix: incorrect output memory file path (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy authored and rauchg committed Jan 16, 2019
1 parent 8f8a821 commit 5b54d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ module.exports = (
getFlatFiles(mfs.data, assets, assetState.assetPermissions);
delete assets[filename];
delete assets[filename + ".map"];
let code = mfs.readFileSync("/index.js", "utf8");
let map = sourceMap ? mfs.readFileSync("/index.js.map", "utf8") : null;
let code = mfs.readFileSync("/" + filename, "utf8");
let map = sourceMap ? mfs.readFileSync("/" + filename + ".map", "utf8") : null;

if (minify) {
const result = terser.minify(code, {
Expand Down

0 comments on commit 5b54d32

Please # to comment.