google / google/material-design-icons
Error with using babel-preset-env instead of babel-preset-es2015
- Dominant language
- No language data
- Stars
- 54k
- Forks
- 9.7k
- PR merge metrics
- No merged PRs in 30d
Description
When using material-design-icons with Babel and ESNext, I'm getting an error. This is caused by the preset in your .babelrc published with your npm-package (running 3.0.1). Babel meanwhile deprecated the usage of babel-preset-es2015 and encourages users to switch to babel-preset-env, see: babeljs.io/env
I could fix this by installing babel-preset-env and changing your .babelrc from:
`{ "presets": ["es2015"] }` to `{ "presets": ["env"] }`
For now users can roll on with keeping babel-preset-es2015 in the package.json.
Contributor guide
Research direction
Start by inspecting the published .babelrc and package.json in version 3.0.1, then compare their Babel preset configuration with the reported babel-preset-env change. Confirm that the package builds and consumers no longer require the deprecated es2015 preset; the issue does not mention a test file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100