autodetect js module type - only bundle esm (#5515)
* wip: autodetect esm * finish fixes * thread minify through * add sweetalert2 * Fix default bundle types * ts-ignore * small nits * small more nits * shrink flamegraph
This commit is contained in:
1 parent
2f40780ce0
commit
218bb9d56d
24 files changed
+1598
-616
No files matched your search
@@ -0,0 +1,14 @@
|
||||
(function (root, factory) {
|
||||
if (typeof exports === "object" && typeof module === "object") {
|
||||
root.__umd_minify_value = (module.exports = factory()).value;
|
||||
} else if (typeof define === "function" && define.amd) {
|
||||
define(function () {
|
||||
root.__umd_minify_value = factory().value;
|
||||
return factory();
|
||||
});
|
||||
} else {
|
||||
root.__umd_minify_value = factory().value;
|
||||
}
|
||||
})(this, function () {
|
||||
return { value: "ok-umd" };
|
||||
});
|
||||
Reference in new issue
Block a user