Skip to content

Commit

Permalink
add babel test config export
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Jul 31, 2024
1 parent b05a863 commit 271015e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/config/babel-test.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const currentPkg = require("./package.json");
const runtimeVersion = currentPkg.peerDependencies["@babel/runtime"];

module.exports = {
presets: [["@babel/env", { bugfixes: true }], "@babel/typescript"],
plugins: [
"@babel/plugin-syntax-bigint",
"@babel/plugin-transform-object-rest-spread",
"@babel/plugin-transform-class-properties",
["@babel/transform-runtime", { version: runtimeVersion }],
"@babel/plugin-transform-numeric-separator",
],
sourceType: "unambiguous",
};

0 comments on commit 271015e

Please sign in to comment.