-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Is this a regression?
Yes - it was working before Angular (I was making an upgrade from 9 to 13 - on Angular 9 it works as intended).
Description
When using production build minification and optimization of bootstrap.js file breaks collapse panel close animation (it simply does not show).
🔬 Minimal Reproduction
Create a new Angular 13 project, install Bootstrap . Make sure that "node_modules/bootstrap/dist/js/bootstrap.bundle.js" or any other bootrap.js file is included in build.scripts of angular.json file.
Create a collapse panel in any method from Bootstrap: https://getbootstrap.com/docs/5.1/components/collapse/
Build app in production mode: "npm run build -- --configuration production"
Run the app. Open and close panel - there will be no closing animation.
When you build app in non production mode everything works as expected.
🌍 Your Environment
Angular CLI: 13.2.1
Node: 14.18.2
Package Manager: npm 8.3.0
OS: darwin arm64
Angular: 13.2.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1302.1
@angular-devkit/build-angular 13.2.1
@angular-devkit/core 13.2.1
@angular-devkit/schematics 13.2.1
@angular/cli 13.2.1
@schematics/angular 13.2.1
rxjs 7.5.2
typescript 4.5.5
webpack 5.68.0