Skip to content

Commit 2811c78

Browse files
Angular: fix platformBrowserDynamic -> platformBrowser (ngCLI 19.2.4 BC) (#942)
1 parent 7431bf9 commit 2811c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devextreme-cli/src/applications/application.angular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const changeMainTs = (appPath) => {
125125
moduleWorker.insertImport(filePath, 'devextreme/ui/themes', 'themes', true);
126126

127127
const fileContent = fs.readFileSync(filePath).toString();
128-
const bootstrapPattern = /platformBrowserDynamic\(\)\.bootstrapModule\(\s*AppModule\s*(?:,\s*\{[^}]*\})?\s*\)/;
128+
const bootstrapPattern = /platformBrowser(?:Dynamic)?\(\)\.bootstrapModule\(\s*AppModule\s*(?:,\s*\{[^}]*\})?\s*\)/;
129129
const firstChaptStr = fileContent.match(bootstrapPattern)[0];
130130
const lastChaptStr = '.catch(err => console.error(err));';
131131

0 commit comments

Comments
 (0)