Skip to content

Commit c903823

Browse files
authored
chore: use @babel/register instead of esm (#16)
* chore: use esbuild-register instead of esm. * chore: add esbuild to deps * chore: use @babel/register instead of esbuild-register
1 parent f01cb20 commit c903823

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.esmrc.json

-5
This file was deleted.

.nycrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ reporter:
44
- lcov
55
- text-summary
66
require:
7-
- esm
7+
- "@babel/register"

babel.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* eslint-env node */
2+
"use strict"
3+
4+
module.exports = {
5+
plugins: ["@babel/plugin-transform-modules-commonjs"],
6+
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222
"eslint-visitor-keys": "^3.3.0"
2323
},
2424
"devDependencies": {
25+
"@babel/core": "^7.20.2",
26+
"@babel/plugin-transform-modules-commonjs": "^7.19.6",
27+
"@babel/register": "^7.18.9",
2528
"@eslint-community/eslint-plugin-mysticatea": "^15.2.0",
2629
"dot-prop": "^6.0.1",
2730
"eslint": "^8.28.0",
28-
"esm": "^3.2.25",
2931
"espree": "github:eslint/espree#1c744b3a602b783926344811a9459b92afe57444",
3032
"mocha": "^8.4.0",
3133
"npm-run-all": "^4.1.5",

0 commit comments

Comments
 (0)