Skip to content

Commit dce3bc5

Browse files
Angular: fix platformBrowserDynamic -> platformBrowser (ngCLI 19.2.4 BC)
1 parent 3d4aada commit dce3bc5

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
@@ -150,7 +150,7 @@ const changeMainTs = (appPath) => {
150150
moduleWorker.insertImport(filePath, 'devextreme/ui/themes', 'themes', true);
151151

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

0 commit comments

Comments
 (0)