4.0.0 • Published 4 months ago

@zvs001/babel-config v4.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 months ago

Install

yarn add @zvs001/babel-config

List of configurations:

core

Configuration is based on metro-react-native-babel-preset

react

Based on core config

Includes:

  • @emotion plugin with auto-pragma

Configuration includes imports optimisations for:

  • @mui
  • @fortawesome

Example

Update .babelrc:

{
  "extends": "@zvs001/babel-config/react",
  "sourceRoot": ".",
  "plugins": [
    [
      "module-resolver",
      {
        "extensions": [".js", ".ts", ".tsx"],
        "alias": {
          "@reducers": "./src/reducers/"
        }
      }
    ]
  ]
}

To make typescript to properly work with pragma-auto? add next update to tsconfig.json:

{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "@emotion/react",
  }
}
4.0.0

4 months ago

3.0.0

6 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

2 years ago

0.1.1

2 years ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

4 years ago