Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 3a6d223

Browse files
Foxandxsswardbell
authored andcommitted
chore: translate inline system config for plunker
closes #1439
1 parent 16dccb6 commit 3a6d223

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tools/plunker-builder/indexHtmlTranslator.js

+14
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ var _rxRules = {
1818
link: {
1919
from: '/<link rel="stylesheet" href=".*%tag%".*>/',
2020
to: '<link rel="stylesheet" href="%tag%">'
21+
},
22+
system_extra_main: {
23+
from: /main:\s*[\'|\"]index.js[\'|\"]/,
24+
to: 'main: "index.ts"'
25+
},
26+
system_extra_defaultExtension: {
27+
from: /defaultExtension:\s*[\'|\"]js[\'|\"]/,
28+
to: 'defaultExtension: "ts"'
2129
}
2230
};
2331

@@ -67,6 +75,12 @@ var _rxData = [
6775
},
6876
{
6977
pattern: 'angular_pkg',
78+
},
79+
{
80+
pattern: 'system_extra_main'
81+
},
82+
{
83+
pattern: 'system_extra_defaultExtension'
7084
}
7185
];
7286

0 commit comments

Comments
 (0)