diff --git a/src/index.ts b/src/index.ts index a7d7b53..0ac188d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -39,6 +39,12 @@ class Sval { } } + // Compatible + addModules(modules: { [name: string]: any }) { + console.warn('Use import instead. addModules is deprecated and will be removed soon.') + this.import(modules) + } + import(nameOrModules: string | { [name: string]: any }, mod?: any) { const win = this.scope.find('window').get()