Stumbled across this while formatting an Angular codebase.
Input:
@NgModule({
// Imports.
imports: [
// Angular modules.
BrowserModule,
// App modules.
CoreModule,
SharedModule,
],
})
export class AppModule {}
Output:
// Imports.
// Angular modules.
// App modules.
@NgModule({
imports: [BrowserModule, CoreModule, SharedModule],
})
export class AppModule {}
Expected:
No difference between input and output.
The problem goes away when export is removed from export class AppModule {}.
A reproduction of this issue can be found here.
Stumbled across this while formatting an Angular codebase.
Input:
Output:
Expected:
No difference between input and output.
The problem goes away when
exportis removed fromexport class AppModule {}.A reproduction of this issue can be found here.