Skip to content

Commit

Permalink
Convert babel config from JSON to JavaScript ☕️
Browse files Browse the repository at this point in the history
  • Loading branch information
01taylop committed Jun 8, 2024
1 parent fd86eef commit 3da33bd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
19 changes: 19 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
presets: [
["@babel/preset-env", { targets: { node: "current" } }],
],
env: {
cjs: {
presets: [["@babel/preset-env", { modules: "commonjs" }]],
plugins: [
["babel-plugin-add-import-extension", { extension: "cjs" }],
],
},
esm: {
presets: [["@babel/preset-env", { modules: false }]],
plugins: [
["babel-plugin-add-import-extension", { extension: "js" }],
],
},
},
}
19 changes: 0 additions & 19 deletions babel.config.json

This file was deleted.

0 comments on commit 3da33bd

Please sign in to comment.