Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polyfills.js depends on 'core-js/es/array/from'. CommonJS or AMD dependencies can cause optimization bailouts. #422

Open
xmlking opened this issue Dec 7, 2021 · 1 comment
Labels
dependencies Pull requests that update a dependency file
Milestone

Comments

@xmlking
Copy link

xmlking commented Dec 7, 2021

with angular 13 , getting following warnings

Warning: /SPA/ngx-starter-kit/node_modules/smooth-scrollbar/polyfills.js depends on 'core-js/es/array/from'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /SPA/ngx-starter-kit/node_modules/smooth-scrollbar/polyfills.js depends on 'core-js/es/map'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /SPA/ngx-starter-kit/node_modules/smooth-scrollbar/polyfills.js depends on 'core-js/es/object/assign'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /SPA/ngx-starter-kit/node_modules/smooth-scrollbar/polyfills.js depends on 'core-js/es/set'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /SPA/ngx-starter-kit/node_modules/smooth-scrollbar/polyfills.js depends on 'core-js/es/weak-map'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

@idiotWu
Copy link
Owner

idiotWu commented Dec 8, 2021

This issue will be solved after we remove all the polyfills in v9. However, as for v8, you may still get the above warnings until ES modules are supported by core-js: zloirock/core-js#893

@idiotWu idiotWu added the dependencies Pull requests that update a dependency file label Dec 8, 2021
@idiotWu idiotWu added this to the v9 milestone Dec 8, 2021
@idiotWu idiotWu moved this to TODO in smooth-scrollbar@v9 Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
Development

No branches or pull requests

2 participants