Skip to content

Commit

Permalink
Fix unintended Vue asset supplemental code insertion (#1576)
Browse files Browse the repository at this point in the history
This PR fixes the first line of supplemental code being [accidentally commented out](https://github.com/parcel-bundler/parcel/blob/v1.9.1/src/assets/VueAsset.js#L112) when the generated JS code (the `js` variable) was ended with `//`.

![screen shot 2018-06-18 at 20 14 20](https://user-images.githubusercontent.com/9481405/41533572-39fc91a4-7336-11e8-997e-22154a158219.png)
  • Loading branch information
chalkpe authored and Jasper De Moor committed Jun 18, 2018
1 parent 21fcd17 commit 1701f9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/assets/VueAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ class VueAsset extends Asset {
}
}
} else {
supplemental += `var ${optsVar} = exports.default || module.exports;`;
supplemental += `
var ${optsVar} = exports.default || module.exports;
`;
}

supplemental += `
Expand Down

0 comments on commit 1701f9b

Please sign in to comment.