Skip to content

Commit

Permalink
[Update] Add warn of using addModules
Browse files Browse the repository at this point in the history
  • Loading branch information
Siubaak committed Mar 8, 2019
1 parent 2eb44ff commit efe24b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit efe24b6

Please sign in to comment.