@@ -124,9 +124,9 @@ export class AngularV14Webpack extends AngularBaseWebpack {
124124 baseHref : angularOptions . baseHref ?? './' ,
125125 preserveSymlinks : false ,
126126 outputPath : 'public' , // doesn't matter because it will be deleted from the config
127- index : angularOptions . index ?? join ( sourceRoot , `index.html` ) ,
128- main : angularOptions . main ?? join ( sourceRoot , `main.ts` ) ,
129- polyfills : angularOptions . polyfills ?? join ( sourceRoot , `polyfills.ts` ) ,
127+ index : angularOptions . index ?? `./ ${ join ( sourceRoot , `index.html` ) } ` ,
128+ main : angularOptions . main ?? `./ ${ join ( sourceRoot , `main.ts` ) } ` ,
129+ polyfills : angularOptions . polyfills ?? `./ ${ join ( sourceRoot , `polyfills.ts` ) } ` ,
130130 tsConfig : angularOptions . tsConfig ?? tsconfigPath ,
131131 assets : [ ...new Set ( [ path . posix . join ( sourceRoot , `assets/**/*` ) , ...( angularOptions . assets ?? [ ] ) ] ) ] , // using set to remove duplicates
132132 styles : [ ...new Set ( [ path . posix . join ( sourceRoot , `styles.scss` ) , ...( angularOptions . styles ?? [ ] ) ] ) ] , // using set to remove duplicates
@@ -140,7 +140,7 @@ export class AngularV14Webpack extends AngularBaseWebpack {
140140 sourceMap : angularOptions . sourceMap ?? true ,
141141 outputHashing : angularOptions . outputHashing ?? ( setup === WebpackSetup . Build ? OutputHashing . All : OutputHashing . None ) ,
142142 watch : setup === WebpackSetup . Serve ,
143- allowedCommonJsDependencies : [ '@teambit/harmony' , 'graphql' , '@teambit/documenter.ng.content.copy-box' , ...( angularOptions . allowedCommonJsDependencies || [ ] ) ] ,
143+ allowedCommonJsDependencies : [ 'dompurify' , ' @teambit/harmony', 'graphql' , '@teambit/documenter.ng.content.copy-box' , ...( angularOptions . allowedCommonJsDependencies || [ ] ) ] ,
144144 } ;
145145 const normalizedWorkspaceRoot = normalize ( workspaceRoot ) ;
146146 const projectRoot = normalize ( '' ) ;
0 commit comments