Babel preset for Backpack projects, version 0.8.4 (final release, 2019). It configures Babel to target Node.js environments with ES6+ transpilation. Used internally by Backpack, but can be used independently. Key differentiators: includes specific plugins for Backpack's needs (async to generator, object rest/spread with useBuiltIns). Maintenance mode since 2019; no updates for Babel 8 or newer Node versions. Alternatives: @babel/preset-env.
npm install babel-preset-backpackVerified import paths — ran on the pinned version, not inferred.
Shows how to configure babel-preset-backpack in a .babelrc file, with or without options, and includes the required install command.
Use @babel/core@^7.0.0 and ensure no Babel 6 packages are present.
Migrate to @babel/preset-env for modern projects.
Upgrade to 0.8.1 or later for compatibility with Babel 7 final releases.
Use core-js or @babel/polyfill with useBuiltIns option if targeting older Node versions.
If using Webpack <4, add json-loader explicitly to your Webpack config.
If you need to replicate behavior, manually add the plugin to your Babel config.
Run: npm install --save-dev @babel/core
Upgrade babel-preset-backpack to >=0.8.1 which supports Babel 7 final, or use @babel/preset-env instead.
Use the string 'backpack' in your Babel configuration (.babelrc, babel.config.js, etc.).
Specify core-js version in Babel config: { presets: [['backpack', { useBuiltIns: 'usage', corejs: 3 }]] } or install core-js@2.