Skip to content

Commit

Permalink
fix(bundler): tolerant js with missing ending semicolon
Browse files Browse the repository at this point in the history
Some js lib (like blueimp-md5) doesn't have an ending semicolon. Existing bundler results in syntax error.

closes #1021
  • Loading branch information
3cp committed Jan 21, 2019
1 parent e188c85 commit 90d247d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ exports.Bundle = class {

return work.then(() => {
const Concat = require('concat-with-sourcemaps');
let concat = new Concat(true, this.config.name, os.EOL);
let concat = new Concat(true, this.config.name, ';' + os.EOL);
const generateHashedPath = require('./utils').generateHashedPath;
const generateHash = require('./utils').generateHash;
let needsSourceMap = false;
Expand Down

0 comments on commit 90d247d

Please sign in to comment.