Skip to content

Commit

Permalink
Fix Vue asset supplemental code concatenation (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenL authored and devongovett committed May 22, 2018
1 parent af4cd33 commit 46fb97a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/assets/VueAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ class VueAsset extends Asset {
supplemental = code;
}

if (supplemental) {
supplemental = `\n(function(){${supplemental}})();`;
}

js += supplemental;

if (js) {
Expand Down

0 comments on commit 46fb97a

Please sign in to comment.