fix loading, minify with rollup
This commit is contained in:
parent
9c3450947b
commit
dd5237e4ed
156 changed files with 794 additions and 971 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
import Ox from './Namespace.js';
|
||||
import Ox from './Ox.Global.js';
|
||||
|
||||
/*@
|
||||
Ox.load <f> Loads OxJS and, optionally, one or more modules
|
||||
|
|
@ -79,7 +79,7 @@ Ox.load = function() {
|
|||
fn(function() {
|
||||
Ox.forEach(modules, async function(options, module) {
|
||||
console.log("load module!", module, options)
|
||||
const obj = await import('../../' + module + '/index.js?' + Ox.VERSION);
|
||||
const obj = await import(Ox.PATH + module + '/' + module + '.js?' + Ox.VERSION);
|
||||
Ox.load[module](options, function(success) {
|
||||
succeeded += success;
|
||||
if (++loaded == length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue