Hello, thanks for your example, but I am facing some difficulties in importing a little complex js file that expose some functions. The complete code is here This is the beginning of the js file: !function(t, e) {
"object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define("cronstrue", [], e) : "object" == typeof exports ? exports.cronstrue = e() : t.cronstrue = e()
}(globalThis, (function() {
return (()=>{
"use strict";
var t = {
794: (t,e,n)=>{
Object.defineProperty(e, "__esModule", {
value: !0
}),
e.CronParser = void 0
[...] The end of the code is this: , e = {};
function n(r) {
var o = e[r];
if (void 0 !== o)
return o.exports;
var i = e[r] = {
exports: {}
};
return t[r](i, i.exports, n),
i.exports
}
var r = {};
return (()=>{
var t = r;
Object.defineProperty(t, "__esModule", {
value: !0
}),
t.toString = void 0;
var e = n(728)
, o = n(336);
e.ExpressionDescriptor.initialize(new o.enLocaleLoader),
t.default = e.ExpressionDescriptor;
var i = e.ExpressionDescriptor.toString;
t.toString = i
}
)(),
r
);
})();
}); How can I import this, please? Thanks a lot in advance. Luca Caldiero
... View more