n-riesco / jp-babel

jp-babel is a babel kernel for the Jupyter notebook
Other
86 stars 16 forks source link

`.babelrc` for TypeScript + React #24

Open ellisonbg opened 4 years ago

ellisonbg commented 4 years ago

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
      }
    ]
  ]
}
westurner commented 3 years ago

Which paths for the .babelrc are supported?