6.24.1 • Published 8 years ago

babel-plugin-transform-strict-mode v6.24.1

Weekly downloads
2,754,452
License
MIT
Repository
github
Last release
8 years ago

babel-plugin-transform-strict-mode

This plugin places a "use strict"; directive at the top of all files to enable strict mode.

This plugin may be enabled via babel-plugin-transform-es2015-modules-commonjs. If you wish to disable it you can either turn strict off or pass strictMode: false as an option to the commonjs transform.

Example

In

foo();

Out

"use strict";

foo();

Installation

npm install --save-dev babel-plugin-transform-strict-mode

Usage

Via .babelrc (Recommended)

.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"]
});
babel-plugin-transform-es2015-modules-commonjs@arisageha/react-lazyload@arisageha/react-lazyload-fix@cashremit/cr-streamline-icons@phil8795/pecuniarius-apicthpb-plugin-socialuinz-notification@mink-opn/build-tokens@everything-registry/sub-chunk-1205tagdtest-carosello-campusteadanteawin007spiderwm_getuiwebpack_component_fundwow.js-juzitechfox-icontechfox-react-feathertc-rulesteste_cegidtextfield-samplevcloudcam-playkit-js-hls@ct-note/delimiter@develar/babel-plugin-transform-inline-imports-commonjs@borealisswap/borealis-swap-lib@caneco/siemaivanpantekisomorphic-todomvckafirchain-tetriskeykeyjsstyleshowstart-starwars-libsolregex2uhuy-1uhuy-2uhuy-3umd-loader@asapach/babel-plugin-transform-es2015-modules-commonjs@artiso-solutions/vue-html-to-paper@arielapaula/components@arielapaula/test@afria/afria-libraries@baloochat/react-native-svg-uri@axetroy/libpack@bitfirer/vue-qriously@cdevine49/react-numeric-input@chakra-swap/core1000-packages@benzinga/babel-preset-benzinga-webpack@bonsaiswap-lib/lib@bonsaiswapv3/core@bonsaiswapv3/deploy@congtuan/custom-componentxyz-usezekervue-v3-yandex-metrikavue-size-trackerwc-starterkitwebpackccwebpack-configless@feiyuerenhai/nut@hawkingnetwork/react-native-tab-view@helio-training/babel-preset-helio@hazyflame/vue-jitsi-meet@elsouza1985/react-org-chart@gopato/babel-preset-node@eliteswap/v2-core@innoswap/core@innodata/vue-v3-ya-metrika@infinitebrahmanuniverse/nolb-babel-plugin-t@kristoffertonning/vue-laravel-errors@litedexdev/litedex-core-swap@materia-dex/materia-contracts-proxy@ernesto_tech/expo-gl-image-filters@mblode/react-native-feather@makivan8/react-native-multibar@jacksonrayhamilton/babel-plugin-transform-es2015-modules-commonjs@kodinghandle/bullswap-lib@kirrosh/pts@igniswap/igni-swap-lib@olympfin/olymp-swap-lib@sackmanson/quill-image-uploader@soyjak/utils@somehats/babel-preset-node5mini-vue-validateparseitsearch-list-reactsearch-input-reactreact-native-handcheque-enginereact-angular-componentreact-ctxtrwjblue-custom-babel-6-cjs-modules-no-interopsam-carouselsamc2samc3samc4samc5prova-2-caroselloprova-cmpprova-cpm-2
7.0.0-beta.3

8 years ago

7.0.0-beta.2

8 years ago

7.0.0-beta.1

8 years ago

7.0.0-beta.0

8 years ago

7.0.0-alpha.20

8 years ago

7.0.0-alpha.19

8 years ago

7.0.0-alpha.18

8 years ago

7.0.0-alpha.17

8 years ago

7.0.0-alpha.16

8 years ago

7.0.0-alpha.15

8 years ago

7.0.0-alpha.14

8 years ago

7.0.0-alpha.12

8 years ago

7.0.0-alpha.11

8 years ago

7.0.0-alpha.10

8 years ago

7.0.0-alpha.9

8 years ago

7.0.0-alpha.8

8 years ago

6.24.1

8 years ago

7.0.0-alpha.7

8 years ago

7.0.0-alpha.3

8 years ago

7.0.0-alpha.1

8 years ago

6.22.0

8 years ago

6.18.0

9 years ago

6.11.3

9 years ago

6.8.0

9 years ago

6.6.5

9 years ago

6.6.4

9 years ago

6.5.2

9 years ago

6.5.0-1

9 years ago

6.5.0

9 years ago

6.3.13

10 years ago

6.2.4

10 years ago

6.2.0

10 years ago

6.1.18

10 years ago

6.1.17

10 years ago

6.1.4

10 years ago

6.1.2

10 years ago

6.0.15

10 years ago

6.0.14

10 years ago

6.0.2

10 years ago