Permalink
Browse files

fix(bundler): tolerant js with missing ending semicolon

Some js lib (like blueimp-md5) doesn't have an ending semicolon. Existing bundler results in syntax error.

closes #1021
  • Loading branch information...
huochunpeng committed Jan 21, 2019
1 parent e188c85 commit 90d247d24d4a9b31cd31a22e41af2e30921861c4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/build/bundle.js
@@ -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;

0 comments on commit 90d247d

Please sign in to comment.