build: support runtime React Jsx in @excalidraw/utils (#4866)

* build: support runtime React Jsx

* revert version

* upgrade
This commit is contained in:
Aakansha Doshi 2022-03-04 10:58:02 +05:30 committed by GitHub
parent 45f3410da8
commit b26e4fcf99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 121 additions and 31 deletions

View file

@ -35,6 +35,18 @@ module.exports = {
configFile: path.resolve(__dirname, "../tsconfig.prod.json"),
},
},
{
loader: "babel-loader",
options: {
presets: [
"@babel/preset-env",
["@babel/preset-react", { runtime: "automatic" }],
"@babel/preset-typescript",
],
plugins: [["@babel/plugin-transform-runtime"]],
},
},
],
},
],