# @skyscanner/backpack-react-scripts

> Backpack configuration and scripts for Create React App.

Latest version **11.2.4** (published 2026-06-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @skyscanner/backpack-react-scripts
pnpm add @skyscanner/backpack-react-scripts
yarn add @skyscanner/backpack-react-scripts
bun add @skyscanner/backpack-react-scripts
```

Provides the command `react-scripts`.

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 11.2.4 |
| Published | 2026-06-23 |
| First published | 2020-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=22.0.0 |
| Dependencies | 58 |
| Unpacked size | 200.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Maintainers | skyscanner-koalasquad, simonward, ojcurt, matthewr, arnaugm.skyscanner, alexsannikov.skyscanner, skyscanner-webenablement |

## Links

- npm: https://www.npmjs.com/package/@skyscanner/backpack-react-scripts
- Repository: https://github.com/Skyscanner/backpack-react-scripts
- Homepage: https://github.com/Skyscanner/backpack-react-scripts#readme
- Issues: https://github.com/Skyscanner/backpack-react-scripts/issues
- npm.io page: https://npm.io/package/@skyscanner/backpack-react-scripts

## Dependencies (58)

- [bfj](https://npm.io/package/bfj.md) 7.0.2
- [jest](https://npm.io/package/jest.md) ^29.7.0
- [dotenv](https://npm.io/package/dotenv.md) ^10.0.0
- [eslint](https://npm.io/package/eslint.md) ^8.53.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [semver](https://npm.io/package/semver.md) ^7.5.4
- [postcss](https://npm.io/package/postcss.md) ^8.4.31
- [prompts](https://npm.io/package/prompts.md) ^2.4.2
- [resolve](https://npm.io/package/resolve.md) ^1.22.8
- [webpack](https://npm.io/package/webpack.md) ^5.89.0
- [fs-extra](https://npm.io/package/fs-extra.md) ^10.1.0
- [camelcase](https://npm.io/package/camelcase.md) ^6.2.1
- [babel-jest](https://npm.io/package/babel-jest.md) ^29.7.0
- [css-loader](https://npm.io/package/css-loader.md) ^6.5.1
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.23.2
- [file-loader](https://npm.io/package/file-loader.md) ^6.2.0
- [sass-loader](https://npm.io/package/sass-loader.md) ^16.0.2
- [tailwindcss](https://npm.io/package/tailwindcss.md) ^3.3.5
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.3.0
- [browserslist](https://npm.io/package/browserslist.md) ^4.18.1
- [jest-resolve](https://npm.io/package/jest-resolve.md) ^29.7.0
- [style-loader](https://npm.io/package/style-loader.md) ^3.3.3
- [@svgr/webpack](https://npm.io/package/@svgr/webpack.md) ^6.5.1
- [dotenv-expand](https://npm.io/package/dotenv-expand.md) ^5.1.0
- [react-refresh](https://npm.io/package/react-refresh.md) ^0.14.0
- [esbuild-loader](https://npm.io/package/esbuild-loader.md) ^4.0.2
- [postcss-loader](https://npm.io/package/postcss-loader.md) ^6.2.1
- [react-dev-utils](https://npm.io/package/react-dev-utils.md) ^12.0.1
- [postcss-normalize](https://npm.io/package/postcss-normalize.md) ^10.0.1
- [source-map-loader](https://npm.io/package/source-map-loader.md) ^3.0.2
- [identity-obj-proxy](https://npm.io/package/identity-obj-proxy.md) ^3.0.0
- [postcss-preset-env](https://npm.io/package/postcss-preset-env.md) ^7.8.3
- [react-app-polyfill](https://npm.io/package/react-app-polyfill.md) ^3.0.0
- [resolve-url-loader](https://npm.io/package/resolve-url-loader.md) ^4.0.0
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^5.2.2
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) ^5.5.3
- [postcss-safe-parser](https://npm.io/package/postcss-safe-parser.md) 5.0.2
- [jest-watch-typeahead](https://npm.io/package/jest-watch-typeahead.md) ^2.2.2
- [babel-plugin-istanbul](https://npm.io/package/babel-plugin-istanbul.md) ^6.1.1
- [eslint-webpack-plugin](https://npm.io/package/eslint-webpack-plugin.md) ^3.2.0
- [terser-webpack-plugin](https://npm.io/package/terser-webpack-plugin.md) ^5.5.0
- [@loadable/babel-plugin](https://npm.io/package/@loadable/babel-plugin.md) ^5.16.1
- [babel-preset-react-app](https://npm.io/package/babel-preset-react-app.md) ^10.0.1
- [jest-environment-jsdom](https://npm.io/package/jest-environment-jsdom.md) ^29.7.0
- [postcss-flexbugs-fixes](https://npm.io/package/postcss-flexbugs-fixes.md) ^5.0.2
- [workbox-webpack-plugin](https://npm.io/package/workbox-webpack-plugin.md) ^7.4.1
- [eslint-config-react-app](https://npm.io/package/eslint-config-react-app.md) ^7.0.1
- [mini-css-extract-plugin](https://npm.io/package/mini-css-extract-plugin.md) ^2.7.6
- [webpack-manifest-plugin](https://npm.io/package/webpack-manifest-plugin.md) ^4.1.1
- [@loadable/webpack-plugin](https://npm.io/package/@loadable/webpack-plugin.md) ^5.15.2
- [esbuild-plugin-browserslist](https://npm.io/package/esbuild-plugin-browserslist.md) ^0.10.0
- [css-minimizer-webpack-plugin](https://npm.io/package/css-minimizer-webpack-plugin.md) ^8.0.0
- [webpack-subresource-integrity](https://npm.io/package/webpack-subresource-integrity.md) ^5.1.0
- [babel-plugin-named-asset-import](https://npm.io/package/babel-plugin-named-asset-import.md) ^0.3.8
- [case-sensitive-paths-webpack-plugin](https://npm.io/package/case-sensitive-paths-webpack-plugin.md) ^2.4.0
- [@pmmmwh/react-refresh-webpack-plugin](https://npm.io/package/@pmmmwh/react-refresh-webpack-plugin.md) ^0.5.11
- [@babel/plugin-proposal-private-property-in-object](https://npm.io/package/@babel/plugin-proposal-private-property-in-object.md) ^7.21.11

## Recent versions

- 11.2.4 (latest) — 2026-06-23
- 11.1.1-23-dev.0 (alpha) — 2026-06-23
- 11.0.2-beta.1 (beta) — 2024-01-30
- 11.0.0-rc.0 (next) — 2023-11-30
- 9.5.1-UGSL (upgradesassloader) — 2022-01-20
- 9.4.0 (stable) — 2021-10-21
- 11.2.3 — 2026-05-26
- 11.1.1-20-dev.0 — 2026-05-26
- 11.2.2 — 2024-09-27
- 11.1.1-17-dev.0 — 2024-09-27
- 11.1.1-11.3.0-dev.0 — 2024-09-26
- 11.2.1 — 2024-09-03
- 11.1.1-15-dev.0 — 2024-09-03
- 11.2.0 — 2024-08-16
- 11.1.1-13-dev.0 — 2024-08-07
- … 132 more at https://npm.io/package/@skyscanner/backpack-react-scripts/versions

## README

# backpack-react-scripts

### **Important:** The currently supported version of **CRA** by `backpack-react-scripts` is up to `v5+`. Versions above this may not work.

This package is a fork of [Create React App](https://github.com/facebookincubator/create-react-app) (specifically the
`react-scripts` package). It's intended to be used in conjuction with `create-react-app` like so:

```sh
npx create-react-app my-app --scripts-version=@skyscanner/backpack-react-scripts --template @skyscanner/backpack --use-npm

# start your app development like you normally would with `create-react-app`
cd my-app
npm start
```

## What is different in our fork?

- Compilation of uncompiled Backpack components (specifically JSX).
- Skyscanner specific template with Backpack components integrated out of the box. Published as `@skyscanner/cra-template-backpack`
- CSS Modules enabled by default for all `.css` & `.scss` files.
- Ability to create a bundle for server side rending.
- Automatic chunking is disabled by default.
- **`css.html` & `js.html`**: New files in the `build/` output folder. These are html partials that include `<script />` and `<link />` references to the various static assets output by webpack. Useful if automatic chunking is turned on and you don't want to worry about order.
- A bunch of configuration options via `"backpack-react-scripts"` field in `package.json`:
  - `crossOriginLoading`: Modify the default behaviour, see [docs](https://webpack.js.org/configuration/output/#output-crossoriginloading).
  - `babelIncludePrefixes`: An array of module name prefixes to opt into babel compilation. Includes `["@skyscanner/bpk-", "bpk-"]` by default.
  - `enableAutomaticChunking`: Boolean, opt in to automatic chunking of vendor, common and app code.
  - `vendorsChunkRegex`: String, Regex for picking what goes into the `vendors` chunk. See `cacheGroups` in webpack docs. Dependent on `enableAutomaticChunking` being enabled
  - `amdExcludes`: Array of module names to exclude from AMD parsing. Incldues `["lodash"]` by default.
  - `externals`: exposing the Webpack config to modify externals, see [docs](https://webpack.js.org/configuration/externals/).
  - `ssrExternals`: Similar to above, but for `ssr.js` only.
  - `cssModules`: Boolean, true by default.
  - `sriEnabled`: Sets if SRI is to be used during build to add integrity hash for files, see [docs](https://github.com/waysact/webpack-subresource-integrity/blob/master/README.md).
    - **Note** if this is enabled, `crossOriginLoading` value is overriden with `anonymous` in order for it to output with the integrity value.
  - `ignoreCssWarnings`: Boolean, false by default. Allows the ability to supress CSS ordering issues when its safe to allow mixed order when it has not effect on output, see [docs](https://github.com/webpack-contrib/mini-css-extract-plugin#remove-order-warnings). False by default

---
_Source: https://npm.io/package/@skyscanner/backpack-react-scripts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
