Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1659b74

Browse files
clydinsumitarora
authored andcommittedMay 17, 2017
fix(@angular/cli): enable full node module resolution for project deps (#6276)
1 parent 339ad42 commit 1659b74

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
 

‎packages/@angular/cli/models/webpack-configs/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
6767
devtool: buildOptions.sourcemaps ? 'source-map' : false,
6868
resolve: {
6969
extensions: ['.ts', '.js'],
70-
modules: [nodeModules],
70+
modules: ['node_modules', nodeModules],
7171
},
7272
resolveLoader: {
7373
modules: [nodeModules]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { appendToFile, prependToFile } from '../../utils/fs';
2+
import { ng, silentNpm } from '../../utils/process';
3+
4+
5+
export default async function () {
6+
await silentNpm('install', 'firebase@3.7.8');
7+
8+
await prependToFile('src/app/app.module.ts', 'import * as firebase from \'firebase\';');
9+
await appendToFile('src/app/app.module.ts', 'firebase.initializeApp({});');
10+
11+
await ng('build');
12+
await ng('build', '--aot');
13+
}

0 commit comments

Comments
 (0)
Please sign in to comment.