-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
webpack is able to do static analysis on the following UMD code to remove it while rollup leaves it behind.
// UMD wrapper.
/*global define:false*/
if (typeof exports === "object" && typeof module === "object") {
// CommonJS
module.exports = _lload;
} else if (typeof define === "function" && define.amd) {
// AMD
define([], function () { return _lload; });
} else {
// VanillaJS
window._lload = _lload;
}
this should be replace by
if (true) {
// CommonJS
module.exports = _lload;
...
which can then be eliminated
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels