babelrc for component library to add sass

PHOTO EMBED

Wed Sep 28 2022 11:02:51 GMT+0000 (UTC)

Saved by @aadamishmael #typescript

{
  "sourceType": "unambiguous",
  "presets": [
    "@babel/preset-react",
    [
      "@babel/preset-env",
      {
        "targets": "> 0.25%, not dead"
      }
    ],
    "@babel/preset-typescript"
  ],
  "plugins": [
    "babel-plugin-transform-scss",
    [
      "@babel/plugin-transform-runtime",
      {
        "absoluteRuntime": false,
        "corejs": false,
        "helpers": true,
        "regenerator": true,
        "version": "7.0.0-beta.0"
      }
    ],
    "@babel/plugin-transform-modules-commonjs"
  ]
}
content_copyCOPY