chore(build): guard against unterminated scripts

If ol3 is included as part of a concatenated build and the script before it does
not end in a semi-colon, the IIFE is interpreted incorrectly (often resulting in
`TypeError: (intermediate value)`).
This commit is contained in:
Tom Vincent
2016-07-22 13:47:25 +02:00
parent a575749793
commit 8548a6f898

View File

@@ -15,7 +15,7 @@ var generateExports = require('./generate-exports');
var log = closure.log;
var root = path.join(__dirname, '..');
var umdWrapper = '(function (root, factory) {\n' +
var umdWrapper = ';(function (root, factory) {\n' +
' if (typeof exports === "object") {\n' +
' module.exports = factory();\n' +
' } else if (typeof define === "function" && define.amd) {\n' +