babel-plugin-transform-remove-strict-mode icon indicating copy to clipboard operation
babel-plugin-transform-remove-strict-mode copied to clipboard

remove strict mode for babel transform

babel-plugin-transform-remove-strict-mode

remove "use strict" directive

Installation

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

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-remove-strict-mode"]
}

Via CLI

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

Via Node API

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