Initial commit

This commit is contained in:
forceoranj
2021-10-16 01:53:56 +02:00
commit ebdd8dccdd
104 changed files with 29770 additions and 0 deletions

28
babel.config.js Normal file
View File

@@ -0,0 +1,28 @@
module.exports = (api) => {
const isWeb = api.caller((caller) => caller && caller.target === "isWeb")
return {
presets: [
[
"@babel/env",
{
useBuiltIns: isWeb ? "usage" : undefined,
corejs: isWeb ? 3 : false,
},
],
"@babel/typescript",
[
"@babel/react",
{
runtime: "automatic",
},
],
],
plugins: ["@loadable/babel-plugin", "@babel/plugin-transform-runtime"],
env: {
development: {
plugins: isWeb ? ["react-refresh/babel"] : undefined,
},
},
}
}