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.
|
||||
|
||||
```typescript
|
||||
```javascript
|
||||
import { LazyModule } from 'smartsystem'
|
||||
|
||||
import * as _myPlugin from 'myPlugin' // plugin does not get loaded here at runtime
|
||||
@ -46,3 +46,5 @@ myPluginLazy.load().then(myPlugin => {
|
||||
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",
|
||||
"version": "1.0.10",
|
||||
"version": "1.0.12",
|
||||
"description": "simplifies lazy loading with TypeScript",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
|
Reference in New Issue
Block a user