jp-babel icon indicating copy to clipboard operation
jp-babel copied to clipboard

`.babelrc` for TypeScript + React

Open ellisonbg opened this issue 6 years ago • 1 comments

In case it is helpful to others, here is the .babelrc file that I am using with this kernel to get TypeScript and React working:

{
  "presets": [
    "@babel/react",
    [
      "@babel/typescript",
      {
        "isTSX": true,
        "allExtensions": true,
        "allowNamespaces": true
      }
    ]
  ]
}

ellisonbg avatar Nov 10 '19 06:11 ellisonbg

  • https://babeljs.io/docs/en/babel-preset-react
  • https://babeljs.io/docs/en/config-files

Which paths for the .babelrc are supported?

westurner avatar Sep 06 '20 03:09 westurner