fix loading, minify with rollup

This commit is contained in:
j 2026-02-18 17:02:08 +01:00
commit dd5237e4ed
156 changed files with 794 additions and 971 deletions

View file

@ -1,5 +1,7 @@
'use strict';
import Ox from './Namespace.js';
import Ox from './Ox.Global.js';
var globalEval = eval;
(function(window) {
@ -210,7 +212,7 @@ import Ox from './Namespace.js';
}
return {
parse: function parse(string) {
return eval('(' + string + ')');
return globalEval('(' + string + ')');
},
stringify: function stringify(value) {
var ret = 'null', type = Ox.typeOf(value);
@ -397,7 +399,7 @@ import Ox from './Namespace.js';
].forEach(function(item) {
var object = item[0], keys = item[1];
keys.forEach(function(key) {
if (!key in object) {
if (!(key in object)) {
if (canDefineProperty) {
Object.defineProperty(object, key, {
configurable: true,