3.2.0 • Published 7 days ago

@anansi/babel-preset v3.2.0

Weekly downloads
8,342
License
BSD-3-Clause
Repository
github
Last release
7 days ago

Anansi's React Babel Preset

Configurable production-ready babel preset for React projects.

Usage

Just include in .babelrc

{
  "presets": ["@anansi/babel-preset"]
}

Or configure options

{
  "presets": [
    [
      "@anansi/babel-preset",
      {
        "targets": {
          "node": "current"
        },
        "modules": "commonjs"
      }
    ]
  ]
}
{
  "presets": [
    [
      "@anansi/babel-preset",
      {
        "additionalProductionTargets": {
          "explorer": "10"
        }
      }
    ]
  ]
}

Shims

This preset comes with some polyfills (babel + requestIdleCallback) for full functionality. Be sure to include the register at the entry point

webpack config entry

{
  entry: {
    Vendor: [
      '@anansi/babel-preset/polyfill',
      // ...
    ]
  }
}

mocha.opts

--require @anansi/babel-preset/registerBabel

Options

runInNode : bool = false

This is simple way to use the configuration for node scripts. Other options below will not work if this is set. Targets the current node version in babel-preset-env while disabling the extra imports.

productionTargets : object = modern browsers

Can be used to override babel-preset-env targets for building production. See babel-preset-env configuration options

additionalProductionTargets: object = undefined

Is merged with the default productionTargets. Use this to extend base production support.

developmentTargets : object = latest firefox & chrome

Can be used to override babel-preset-env targets for building development.

targets : object = undefined

Can be used to override babel-preset-env targets for non-testing environment.

modules: string|false = false

Can be used to override our default of false in non-testing environments in case you want babel to transform imports.

Warning: something other than 'false' will disable HMR and 'tree shaking' in webpack

minify: bool = false

Setting this to true will run the minifier babel-minify

Extra plugins used

In addition to providing good production/development/testing transformations; some additional non-standard features are included:

Stage 3

  • Dynamic import (import())

Stage 2

Stage 1

Other

3.2.0

7 days ago

3.1.3

9 days ago

3.1.2

9 days ago

3.1.1

22 days ago

3.1.0

26 days ago

2.8.5

2 months ago

3.0.4

1 month ago

3.0.3

1 month ago

3.0.2

2 months ago

3.0.1

2 months ago

3.0.0

2 months ago

2.8.1

4 months ago

2.8.0

4 months ago

2.8.3

3 months ago

2.8.2

4 months ago

2.8.4

3 months ago

2.7.19

5 months ago

2.7.22

4 months ago

2.7.21

4 months ago

2.7.20

5 months ago

2.7.24

4 months ago

2.7.23

4 months ago

2.7.18

6 months ago

2.7.17

7 months ago

2.7.16

7 months ago

2.7.15

9 months ago

2.7.14

9 months ago

2.7.11

9 months ago

2.7.13

9 months ago

2.7.12

9 months ago

2.7.10

9 months ago

2.7.9

9 months ago

2.7.8

10 months ago

2.7.7

10 months ago

2.7.6

11 months ago

2.7.5

11 months ago

2.7.4

11 months ago

2.7.3

11 months ago

2.7.2

11 months ago

2.7.1

12 months ago

2.7.0

12 months ago

2.6.4

12 months ago

2.6.3

12 months ago

2.6.2

12 months ago

2.6.1

12 months ago

2.6.0

12 months ago

2.5.16

1 year ago

2.5.14

1 year ago

2.5.15

1 year ago

2.5.12

1 year ago

2.5.13

1 year ago

2.5.6

1 year ago

2.5.5

1 year ago

2.5.8

1 year ago

2.5.7

1 year ago

2.5.9

1 year ago

2.5.10

1 year ago

2.5.11

1 year ago

2.5.4

1 year ago

2.5.3

1 year ago

2.5.2

1 year ago

2.5.1

1 year ago

2.5.0

1 year ago

2.4.0

1 year ago

2.3.0

1 year ago

2.2.6

1 year ago

2.2.5

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.2.4

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.4

1 year ago

2.1.3

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.1

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.26.2

2 years ago

0.26.1

2 years ago

0.26.0

2 years ago

0.25.1

2 years ago

0.25.0

2 years ago

0.24.4

2 years ago

0.24.3

2 years ago

0.24.2

2 years ago

0.24.1

2 years ago

0.24.0

2 years ago

0.23.0

2 years ago

0.22.1

3 years ago

0.22.0

3 years ago

0.21.0

3 years ago

0.19.3

3 years ago

0.19.2

3 years ago

0.19.0

3 years ago

0.18.3

3 years ago

0.18.2

3 years ago

0.18.1

3 years ago

0.18.0

3 years ago

0.17.7

3 years ago

0.17.6

3 years ago

0.17.5

3 years ago

0.17.4

3 years ago

0.17.3

3 years ago

0.17.2

3 years ago

0.17.1

3 years ago

0.17.0

3 years ago

0.16.0

3 years ago

0.15.0

3 years ago

0.14.0

3 years ago

0.13.4

3 years ago

0.13.3

3 years ago

0.13.2

3 years ago

0.13.1

3 years ago

0.12.0

3 years ago

0.11.3

3 years ago

0.11.2

3 years ago

0.11.1

3 years ago

0.11.1-alpha.0

3 years ago

0.11.0

3 years ago

0.10.8

3 years ago

0.10.7

3 years ago

0.10.6

3 years ago

0.10.5

3 years ago

0.10.4

3 years ago

0.10.3

3 years ago

0.10.2

3 years ago

0.10.1

3 years ago

0.10.0

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.0

3 years ago

0.7.5

3 years ago

0.7.4

3 years ago

0.7.3

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.1

4 years ago

0.5.1-beta.1

4 years ago

0.5.1-beta.0

4 years ago

0.5.0

4 years ago

0.4.6

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.4.0-beta.2

4 years ago

0.4.0-beta.1

4 years ago

0.4.0-beta.0

4 years ago

0.3.0

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago