babel-preset-boldr
Babel preset used by Boldr
Last updated 2 years ago by strues .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install babel-preset-boldr 
SYNC missed versions from official npm registry.

babel-preset-boldr

Babel preset for Boldr.

babel-plugin-universal-import and babel-plugin-styled-components are included and enabled by default. If you don't need them, they can be disabled by passing universal: false and/or styled: false to the preset's options.

Options

const defaults = {
  // log output to the console
  verbose: false,
  // es modules enabled/disabled -- accepts: commonjs, false, umd, etc
  modules: false,
  // Prefer built-ins over custom code. This mainly benefits for modern engines.
  useBuiltIns: true,
  // Whether to enable source map output
  sourceMaps: true,
  // Enable full compression on production scripts or basic compression for libraries or during development.
  compression: false,
  // Keeping comments to be compatible with Webpack's magic comments
  comments: true,
  // Do not apply general minification by default
  minified: true,
  // Env Settings
  looseMode: true,
  specMode: false,
  // transform-runtime
  // -- generators
  regen: false,
  // -- helpers
  rtHelpers: false,
  // -- require polyfill
  polyfill: false,
  // fast async
  // -- transpile using spec helpers -- no run time required, but slower.
  // --- !!! MUST be false if nodentRt is true
  faSpecMode: true,
  // -- use nodent runtime for async/await - much faster than babel
  nodentRt: false,
  targets: {
    uglify: true,
    browsers: 'last 2 versions',
  },
  exclude: ['transform-regenerator', 'transform-async-to-generator'],
  // Lodash Plugin Settings
  lodashInc: ['lodash', 'async', 'ramda', 'recompose'],
  styled: true,
  universal: true,
}

Browser default options:

[
  ["boldr", {
    "verbose": false,
    "modules": false,
    "useBuiltIns": true,
    "targets": { "browsers": "last 2 versions"}
  }]
]

Node default options:

[
  ["boldr", {
    "verbose": false,
    "modules": false,
    "useBuiltIns": true,
    "targets": { "node": "current"}
  }]
]

Included Presets:

Included Plugins:

Production - React:

Development - React:

Current Tags

  • 0.12.0-rc.1                                ...           latest (2 years ago)
  • 0.11.0-beta.2                                ...           next (2 years ago)

50 Versions

  • 0.12.0-rc.1                                ...           2 years ago
  • 0.11.2                                ...           2 years ago
  • 0.11.1                                ...           2 years ago
  • 0.11.0                                ...           2 years ago
  • 0.11.0-beta.4                                ...           2 years ago
  • 0.11.0-beta.3                                ...           2 years ago
  • 0.11.0-beta.2                                ...           2 years ago
  • 0.11.0-beta.1                                ...           2 years ago
  • 0.10.3                                ...           2 years ago
  • 0.10.2                                ...           2 years ago
  • 0.10.1                                ...           2 years ago
  • 0.10.0                                ...           2 years ago
  • 0.9.9                                ...           2 years ago
  • 0.9.8                                ...           2 years ago
  • 0.9.7                                ...           2 years ago
  • 0.9.6                                ...           2 years ago
  • 0.9.5                                ...           2 years ago
  • 0.9.4                                ...           2 years ago
  • 0.9.3                                ...           2 years ago
  • 0.9.2                                ...           2 years ago
  • 0.9.1                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.9                                ...           2 years ago
  • 0.8.8                                ...           2 years ago
  • 0.8.7                                ...           2 years ago
  • 0.8.6                                ...           2 years ago
  • 0.8.5                                ...           2 years ago
  • 0.8.4                                ...           3 years ago
  • 0.8.3                                ...           3 years ago
  • 0.8.2                                ...           3 years ago
  • 0.8.1                                ...           3 years ago
  • 0.8.0                                ...           3 years ago
  • 0.8.0-beta.4                                ...           3 years ago
  • 0.8.0-beta.3                                ...           3 years ago
  • 0.8.0-beta.2                                ...           3 years ago
  • 0.8.0-beta.1                                ...           3 years ago
  • 0.7.13                                ...           3 years ago
  • 0.7.12                                ...           3 years ago
  • 0.7.11                                ...           3 years ago
  • 0.7.10                                ...           3 years ago
  • 0.7.9                                ...           3 years ago
  • 0.7.8                                ...           3 years ago
  • 0.7.6                                ...           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.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago

Copyright 2014 - 2017 © taobao.org |