Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
3098fbec89 | |||
1caa8a7c31 | |||
c689a3c349 | |||
a8a0778708 | |||
82ebb181a0 |
@ -22,7 +22,7 @@ We recommend the use of TypeScript for best Intellisense
|
|||||||
|
|
||||||
smartsystem supports both npm and SystemJs as module loader.
|
smartsystem supports both npm and SystemJs as module loader.
|
||||||
|
|
||||||
```typescript
|
```javascript
|
||||||
import { LazyModule } from 'smartsystem'
|
import { LazyModule } from 'smartsystem'
|
||||||
|
|
||||||
import * as _myPlugin from 'myPlugin' // plugin does not get loaded here at runtime
|
import * as _myPlugin from 'myPlugin' // plugin does not get loaded here at runtime
|
||||||
@ -45,4 +45,6 @@ myPluginLazy.load().then(myPlugin => {
|
|||||||
myPlugin receives the typings flow from LazyModule class
|
myPlugin receives the typings flow from LazyModule class
|
||||||
This DOES LOAD the module */
|
This DOES LOAD the module */
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[](https://push.rocks)
|
||||||
|
7
npmextra.json
Normal file
7
npmextra.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"npmci": {
|
||||||
|
"globalNpmTools": [
|
||||||
|
"npmts"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartsystem",
|
"name": "smartsystem",
|
||||||
"version": "1.0.10",
|
"version": "1.0.12",
|
||||||
"description": "simplifies lazy loading with TypeScript",
|
"description": "simplifies lazy loading with TypeScript",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
Reference in New Issue
Block a user