diff --git a/packages/devextreme-cli/src/applications/application.angular.js b/packages/devextreme-cli/src/applications/application.angular.js index f8ef4be75..48d762f70 100644 --- a/packages/devextreme-cli/src/applications/application.angular.js +++ b/packages/devextreme-cli/src/applications/application.angular.js @@ -128,7 +128,8 @@ const changeMainTs = (appPath) => { moduleWorker.insertImport(filePath, 'devextreme/ui/themes', 'themes', true); const fileContent = fs.readFileSync(filePath).toString(); - const firstChaptStr = 'platformBrowserDynamic().bootstrapModule(AppModule)'; + const bootstrapPattern = /platformBrowserDynamic\(\)\.bootstrapModule\(\s*AppModule\s*(?:,\s*\{[^}]*\})?\s*\)/; + const firstChaptStr = fileContent.match(bootstrapPattern)[0]; const lastChaptStr = '.catch(err => console.error(err));'; fs.writeFileSync(