@redtea/craco-parameter-decorator

This craco plugin will set up babel-plugin-parameter-decorator for your project.

Usage no npm install needed!

<script type="module">
  import redteaCracoParameterDecorator from 'https://cdn.skypack.dev/@redtea/craco-parameter-decorator';
</script>

README

@redtea/craco-parameter-decorator

This craco plugin will set up babel-plugin-parameter-decorator for your project.

Support:

  • create-react-app: 3.x, 4.x
  • craco: 5.x, 6.x

:hammer_and_wrench: Installation

Yarn

$ yarn add -E @redtea/craco-parameter-decorator

NPM

$ npm install -E @redtea/craco-parameter-decorator

:open_book: Usage

Add the plugin to your craco config. For example:

const ParameterDecoratorPlugin = require("@redtea/craco-parameter-decorator");

module.exports = {
  plugins: [{ plugin: ParameterDecoratorPlugin }],
};