12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- {
- "env": {
- "production": {
- "presets": [
- [
- "env",
- {
- "debug": false,
- "useBuiltIns": true,
- "loose": true,
- "targets": {
- "browsers": ["last 5 versions", "ie>=11"]
- }
- }
- ],
- "react",
- "stage-1"
- ],
- "only": ["src"],
- "plugins": [
- [
- "transform-runtime",
- {
- "polyfill": false
- }
- ],
- [
- "import",
- {
- "libraryName": "antd",
- "libraryDirectory": "es",
- "style": true
- }
- ],
- "transform-decorators-legacy",
- "transform-react-jsx-source",
- "babel-plugin-styled-components",
- "transform-react-remove-prop-types",
- "transform-react-constant-elements",
- "transform-react-inline-elements"
- ]
- },
- "development": {
- "retainLines": true,
- "presets": [
- [
- "env",
- {
- "debug": false,
- "useBuiltIns": true,
- "targets": {
- "browsers": ["last 5 versions", "ie>=11"]
- }
- }
- ],
- "react",
- "stage-1"
- ],
- "plugins": [
- "react-hot-loader/babel",
- [
- "transform-runtime",
- {
- "polyfill": false
- }
- ],
- "transform-decorators-legacy",
- "transform-react-jsx-source",
- "transform-react-display-name",
- [
- "babel-plugin-styled-components",
- {
- "displayName": true,
- "minify": true
- }
- ],
- [
- "import",
- {
- "libraryName": "antd",
- "libraryDirectory": "es",
- "style": true
- }
- ]
- ]
- }
- }
- }
|