Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 25182794: [AI] Minified CDN version has an extra "use strict" outside of the closure #2151

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rollup.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ const getIntro = (format, theNameSpace, moduleName, theVersion) => {
let nsTokens = getCommonNamespace(theNameSpace.browser, theNameSpace.gbl);
theIntro += "(function (global, factory) {\n";
let prefix = " ";
theIntro += prefix + "var undef = \"undefined\";\n";
if (format === "umd") {
// UMD supports loading via requirejs and
theIntro += prefix + "var undef = \"undefined\";\n";
theIntro += prefix + "typeof exports === \"object\" && typeof module !== undef ? factory(exports) :\n";
theIntro += prefix + "typeof define === \"function\" && define.amd ? define([\"exports\"], factory) :\n";
theIntro += prefix + "(function(global){\n";
Expand Down Expand Up @@ -138,6 +138,7 @@ const browserRollupConfigFactory = (banner, importCheckNames, targetType, theNam
extend: true,
freeze: false,
sourcemap: true,
strict: false,
intro: getIntro(format, theNameSpace, theNameSpace.ver ? `${targetType}.${outputName}${teamExt}-${theNameSpace.ver}` : "", theNameSpace.ver),
outro: getOutro(format, theNameSpace, theNameSpace.ver ? `${targetType}.${outputName}${teamExt}-${theNameSpace.ver}` : "", theNameSpace.ver)
},
Expand Down
Loading