Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit c320432

Browse files
committed
fixup! feat: update to [email protected]
1 parent bfba865 commit c320432

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

rollup.config.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1+
const globals = {
2+
'@angular/core': 'ng.core',
3+
'@angular/http': 'ng.http',
4+
'@angular/common/http': 'ng.common.http',
5+
'rxjs': 'rxjs',
6+
'rxjs/operators': 'rxjs.operators'
7+
},
8+
19
export default {
210
input: './src/in-mem/index.js',
311
// output: { ... does not work! Why?
412
file: './bundles/in-memory-web-api.umd.js',
513
format: 'umd',
614
name: 'ng.inMemoryWebApi',
715
sourcemap: true,
8-
globals: {
9-
'@angular/core': 'ng.core',
10-
'@angular/http': 'ng.http',
11-
'@angular/common/http': 'ng.common.http',
12-
'rxjs': 'rxjs',
13-
'rxjs/operators': 'rxjs.operators'
14-
}
16+
globals,
17+
external: Object.keys(globals)
1518
// }
1619
}

0 commit comments

Comments
 (0)