Skip to content

Commit 991364e

Browse files
devversionjelbourn
authored andcommitted
chore: fix demo-app prod build (#854)
* Currently it was not possible to build the demo-app in production, due to the fact that the fileExtensions for the SystemJS Builder were not available. This was caused by the deprecated flag `defaultJSExtension`.
1 parent 66ddd3a commit 991364e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/demo-app/system-config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
* User Configuration.
33
**********************************************************************************************/
44

5-
System.defaultJSExtensions = true;
6-
7-
85
const components = [
96
'button',
107
'card',
@@ -36,6 +33,11 @@ const packages: any = {
3633
'@angular2-material/core': {
3734
format: 'cjs',
3835
defaultExtension: 'js'
36+
},
37+
// Set the default extension for the root package, because otherwise the demo-app can't
38+
// be built within the production mode. Due to missing file extensions.
39+
'.': {
40+
defaultExtension: 'js'
3941
}
4042
};
4143
components.forEach(name => {

0 commit comments

Comments
 (0)