fix loading, minify with rollup
This commit is contained in:
parent
9c3450947b
commit
dd5237e4ed
156 changed files with 794 additions and 971 deletions
45
source/Ox/Ox.js
Normal file
45
source/Ox/Ox.js
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
'use strict';
|
||||
|
||||
import Ox from './js/Ox.Global.js';
|
||||
|
||||
import './js/Core.js';
|
||||
import './js/Function.js';
|
||||
import './js/Polyfill.js';
|
||||
import './js/Array.js';
|
||||
import './js/String.js';
|
||||
import './js/Collection.js';
|
||||
import './js/Math.js';
|
||||
|
||||
import './js/Async.js';
|
||||
import './js/Color.js';
|
||||
import './js/Constants.js';
|
||||
import './js/Date.js';
|
||||
import './js/DOM.js';
|
||||
import './js/Encoding.js';
|
||||
import './js/Format.js';
|
||||
import './js/Geo.js';
|
||||
import './js/Hash.js';
|
||||
import './js/HTML.js';
|
||||
import './js/JavaScript.js';
|
||||
import './js/Locale.js';
|
||||
import './js/Object.js';
|
||||
import './js/RegExp.js';
|
||||
import './js/Request.js';
|
||||
import './js/Type.js';
|
||||
import './js/Video.js';
|
||||
|
||||
export default Ox;
|
||||
export { Ox };
|
||||
|
||||
// For backward compatibility with global usage
|
||||
if (typeof globalThis !== 'undefined') {
|
||||
// FIXME: examples/ui/widget_design_patterns writes to Ox before load
|
||||
if (typeof globalThis.Ox != 'undefined') {
|
||||
Object.keys(globalThis.Ox).forEach(key => {
|
||||
if (typeof Ox[key] == 'undefined') {
|
||||
Ox[key] = globalThis.Ox[key]
|
||||
}
|
||||
})
|
||||
}
|
||||
globalThis.Ox = Ox;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue