babel-preset-manpacker-react

1.10.0 • Public • Published

npm npm bundle size npm NPM

nodei.co

Explain

Manpacker react preset based on babel7 encapsulation.
The presets is "manpacker"
The following plug-ins are used:
"babel-plugin-transform-react-remove-prop-types".

Babel presets polyfill default config:

{"useBuiltIns": "usage", corejs: 3}

Configuration items can be referenced: babel-preset-manpacker

Install

npm install babel-preset-manpacker-react -D

Usage

  • Add  .babelrc   file to your project.  

Configuration content of file.

{
  "presets": ["manpacker-react"]
}
  • You can add a configuration entry to the package.json file as follows.
"babel": {
  "presets": ["manpacker-react"]
}

Refer to the following configuration.
Example:

"babel": {
  "presets": [
    ["manpacker-react", {"useBuiltIns": "entry"}]
  ]
}

Ingress files need to be manually introduced

import "@babel/polyfill"

Npm

link

Package Sidebar

Install

npm i babel-preset-manpacker-react

Weekly Downloads

6

Version

1.10.0

License

MIT

Unpacked Size

3.38 kB

Total Files

5

Last publish

Collaborators

  • winterfete