Skip to content

Commit 2f5f74d

Browse files
clydinhansl
authored andcommitted
refactor: remove reflect-metadata as a direct dependency (#3655)
1 parent 5972f1a commit 2f5f74d

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
"portfinder": "1.0.9",
8484
"postcss-loader": "^0.9.1",
8585
"raw-loader": "^0.5.1",
86-
"reflect-metadata": "^0.1.8",
8786
"resolve": "^1.1.7",
8887
"rimraf": "^2.5.3",
8988
"rsvp": "^3.0.17",

packages/@ngtools/webpack/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"@angular/core": "^2.3.1",
3737
"@angular/tsc-wrapped": "^0.5.0",
3838
"typescript": "^2.0.2",
39-
"reflect-metadata": "^0.1.8",
4039
"webpack": "2.2.0"
4140
}
4241
}
-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'reflect-metadata';
2-
31
export * from './plugin';
42
export {ngcLoader as default} from './loader';
53
export {PathsPlugin} from './paths-plugin';

tests/e2e/assets/webpack/test-app-weird/not/so/source/app/main.jit.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'reflect-metadata';
1+
import 'core-js/es7/reflect';
22
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
33
import {AppModule} from './app.module';
44

tests/e2e/assets/webpack/test-app/app/main.jit.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import 'reflect-metadata';
1+
import 'core-js/es7/reflect';
22
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
33
import {AppModule} from './app.module';
44

tests/e2e/tests/packages/webpack/weird.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function(skipCleaning: () => void) {
1515
.then(() => expectFileToExist('dist/0.app.main.js'))
1616
.then(() => expectFileToExist('dist/1.app.main.js'))
1717
.then(() => expectFileToExist('dist/2.app.main.js'))
18-
.then(() => expectFileSizeToBeUnder('dist/app.main.js', 400000))
18+
.then(() => expectFileSizeToBeUnder('dist/app.main.js', 410000))
1919
.then(() => expectFileSizeToBeUnder('dist/0.app.main.js', 40000))
2020

2121
// Skip code generation and rebuild.
@@ -27,7 +27,7 @@ export default function(skipCleaning: () => void) {
2727
.then(() => expectFileToExist('dist/0.app.main.js'))
2828
.then(() => expectFileToExist('dist/1.app.main.js'))
2929
.then(() => expectFileToExist('dist/2.app.main.js'))
30-
.then(() => expectToFail(() => expectFileSizeToBeUnder('dist/app.main.js', 400000)))
30+
.then(() => expectToFail(() => expectFileSizeToBeUnder('dist/app.main.js', 410000)))
3131
.then(() => expectFileSizeToBeUnder('dist/0.app.main.js', 40000))
3232
.then(() => skipCleaning());
3333
}

0 commit comments

Comments
 (0)