Skip to content

Conversation

@vladrusu
Copy link
Contributor

@vladrusu vladrusu commented Nov 3, 2025

Array.at is not supported in some older browsers

@vladrusu
Copy link
Contributor Author

vladrusu commented Nov 3, 2025

What is weird is that according to .browserslistrc, Chrome >= 60 should be supported, I'll investigate why it doesn't transpile "at" to some Chrome 60+ supported js code.

@vladrusu
Copy link
Contributor Author

vladrusu commented Nov 3, 2025

Update: I've found the transpile issue. Unless you have useBuiltins set (which neither CoreUI's / nor Bootstrap's .babelrc.js has not), babel only does transpiling (e.g. let => var) and not polyfills.
If you are interested, I can provide a fix/pull request for the babel transpile thing in order to also add polyfills. (involves an edit on rollup.config.mjs too). I might add a pull request for Bootstrap 5 too, as the problem is common.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant