babel/packages/babel-plugin-transform-strict-mode
2016-02-12 11:29:58 -05:00
..
2015-11-13 12:56:30 -06:00
2015-10-30 23:45:42 +00:00
2016-02-12 11:29:58 -05:00

babel-plugin-transform-strict-mode

TODO

Installation

$ npm install babel-plugin-transform-strict-mode

Usage

.babelrc

// without options
{
  "plugins": ["transform-strict-mode"]
}

// with options
{
  "plugins": [
    ["transform-strict-mode", {
      "strict": true
    }]
  ]
}

Via CLI

$ babel --plugins transform-strict-mode script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-strict-mode"]
});