{
  "name": "systemjs-plugin-babel",
  "version": "0.0.12",
  "registry": "npm",
  "jspmPackage": true,
  "scripts": {
    "build": "./build.sh",
    "clear": "rm -rf build-babel/node_modules build-babel/jspm_packages regenerator-runtime.js systemjs-babel-node.js systemjs-babel-browser.js",
    "prepublish": "npm run build",
    "preversion": "npm run test",
    "test": "node test/index.js"
  },
  "main": "plugin-babel.js",
  "map": {
    "systemjs-babel-build": {
      "node": "./systemjs-babel-node.js",
      "browser": "./systemjs-babel-browser.js",
      "default": "./systemjs-babel-browser.js"
    }
  },
  "meta": {
    "./plugin-babel.js": {
      "format": "cjs"
    }
  },
  "files": [
    "plugin-babel.js",
    "babel-helpers",
    "babel-helpers.js",
    "regenerator-runtime.js",
    "systemjs-babel-browser.js",
    "systemjs-babel-node.js"
  ],
  "devDependencies": {
    "browser-run": "^3.2.0",
    "systemjs": "^0.19.29",
    "tape": "^4.5.1"
  },
  "readme": "SystemJS Babel Plugin\n===\n\n[![Build Status][travis-image]][travis-url]\n\nProvides Babel transpilation in the browser and in builds when using SystemJS 0.19.12+ and SystemJS Builder 0.15+.\n\nCompatible with the the automatic Rollup optimizations in SystemJS Builder.\n\n## Usage\n\n### SystemJS\n\nThe plugin can be used in SystemJS with the following configuration:\n\n```javascript\nSystemJS.config({\n  map: {\n    'plugin-babel': 'path/to/systemjs-plugin-babel/plugin-babel.js',\n    'systemjs-babel-build': 'path/to/systemjs-plugin-babel/systemjs-babel-browser.js'\n  },\n  transpiler: 'plugin-babel'\n});\n```\n\nThe plugin can also be configured as a `loader` through metadata in SystemJS.\n\n### jspm\n\n**This plugin is compatible with jspm 0.17 beta, but is not supported in jspm 0.16.**\n\n```\njspm install plugin-babel\n```\n\nThen set `transpiler: 'plugin-babel'` in the `jspm.js` config file.\n\nAlternatively use `jspm init -p` to set up the plugin automatically.\n\n### ES Features\n\nThis repo comes with its own Babel build which includes all ES6 and Stage 2 and Stage 3 features by default, except for the ES6 library polyfills.\n\nIf ES6 polyfills are desired it is advisable to import core-js libraries manually as needed.\n\nTo use Stage 1 features, these need to be manually enabled via configuration:\n\n```javascript\nSystemJS.config({\n  meta: {\n    '*.js': {\n      babelOptions: {\n        stage1: true\n      }\n    }\n  }\n});\n```\n\nIf running in NodeJS or browsers that have ES2015 support, ES2015 feature transpilation can be disabled similarly:\n\n```javascript\nSystemJS.config({\n  meta: {\n    '*.js': {\n      babelOptions: {\n        es2015: false\n      }\n    }\n  }\n});\n```\n\nThis allows workflows that just support ES modules and stage proposal transforms.\n\n### Building and Bundling\n\nBuild support works with no further configuration through the standard jspm build and bundle commands.\n\nTo build with SystemJS builder manually, use the following build configuration:\n\n```javascript\nbuilder.config({\n  map: {\n    'systemjs-babel-build': 'path/to/systemjs-plugin-babel/systemjs-babel-node.js'\n  }\n});\nbuilder.bundle('app.js', 'out-bundle.js'); // create a named bundle\nbuilder.buildStatic('app.js', 'out-static.js', { format: 'cjs' }); // create a static optimized build\n```\n\nWhen using `builder.buildStatic`, the ES module structure will be preserved and [Rollup optimizations](https://github.com/rollup/rollup) will included automatically\nallowing for static dead code removal.\n\n### Custom Presets and Transforms\n\nCustom presets and transforms can be set via `babelOptions` config:\n\n```javascript\nSystemJS.config({\n  map: {\n    'custom-preset': 'path/to/custom-preset.js',\n    'custom-plugin': 'path/to/custom-plugin.js'\n  },\n  meta: {\n    '*.js': {\n      babelOptions: {\n        presets: ['custom-preset'],\n        plugins: ['custom-plugin']\n      }\n    }\n  }\n});\n```\n\nThis way JSX support or other features can be included as needed (eg see http://jspm.io/0.17-beta-guide/installing-the-jsx-babel-plugin.html for jspm jsx support)\n\nYou can also pass options to Babel plugins the same way as in Node, without creating custom presets.\n\n```javascript\nSystemJS.config({\n  meta: {\n    '*.js': {\n      babelOptions: {\n        plugins: [\n          [ \"react-transform\", {\n            \"transforms\": [{\"transform\": \"react-transform-jspm-hmr\"}]\n          }]\n        ]\n      }\n    }\n  }\n});\n```\n\nLICENSE\n---\n\nMIT\n\n[travis-url]: http://travis-ci.org/systemjs/plugin-babel\n[travis-image]: http://travis-ci.org/systemjs/plugin-babel.svg?branch=master\n",
  "readmeFilename": "README.md",
  "description": "SystemJS Babel Plugin ===",
  "_id": "systemjs-plugin-babel@0.0.12",
  "_from": "systemjs-plugin-babel@0.0.12"
}
