Skip to content

Commit 3b1d496

Browse files
committed
fix(bundle): remove bundling.
1 parent b92b236 commit 3b1d496

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

addon/ng2/blueprints/ng2/files/__path__/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"declaration": false,
55
"emitDecoratorMetadata": true,
66
"experimentalDecorators": true,
7+
"mapRoot": "/",
78
"module": "commonjs",
89
"moduleResolution": "node",
910
"noEmitOnError": true,

lib/broccoli/angular-broccoli-bundle.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,8 @@ class BundlePlugin extends Plugin {
1616
build() {
1717
var relativeRoot = path.relative(process.cwd(), this.inputPaths[0]);
1818
var builder = new Builder(relativeRoot, `${relativeRoot}/system-config.js`);
19-
return builder.bundle('main - [app/**/*]',
20-
`${this.outputPath}/main.js`, {
21-
minify: true
22-
})
23-
.then(() => builder.bundle('app - (app/**/*.js - [app/**/*.js])',
24-
`${this.outputPath}/app/index.js`, {
25-
minify: true
26-
}))
19+
20+
return builder.bundle('main', `${this.outputPath}/main.js`, { minify: true })
2721
.then(() => fse.copySync(`${this.inputPaths[0]}/system-config.js`,
2822
`${this.outputPath}/system-config.js`));
2923
}

0 commit comments

Comments
 (0)