smooth-scrollbar icon indicating copy to clipboard operation
smooth-scrollbar copied to clipboard

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

Open xmlking opened this issue 4 years ago • 1 comments

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

xmlking avatar Dec 07 '21 21:12 xmlking

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: https://github.com/zloirock/core-js/issues/893

dolphin-wood avatar Dec 08 '21 17:12 dolphin-wood