Skip to content

Commit 9742e77

Browse files
committed
More sync with crystal
1 parent 0f7112f commit 9742e77

3 files changed

Lines changed: 1129 additions & 23 deletions

File tree

babel.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Babel config, used by Jest
2+
module.exports = {
3+
plugins: ["@babel/plugin-transform-modules-commonjs"],
4+
presets: [
5+
[
6+
"@babel/env",
7+
{
8+
targets: {
9+
node: "16.12",
10+
},
11+
},
12+
],
13+
"@babel/preset-typescript",
14+
],
15+
env: {
16+
test: {
17+
plugins: ["babel-plugin-transform-import-meta"],
18+
presets: [
19+
[
20+
"@babel/env",
21+
{
22+
targets: {
23+
node: "current",
24+
},
25+
},
26+
],
27+
"@babel/preset-typescript",
28+
],
29+
},
30+
},
31+
};

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,18 @@
3131
},
3232
"devDependencies": {
3333
"@babel/eslint-parser": "^7.22.11",
34+
"@babel/plugin-transform-modules-commonjs": "^7.22.11",
35+
"@babel/plugin-transform-runtime": "^7.22.10",
36+
"@babel/preset-env": "^7.22.14",
37+
"@babel/preset-typescript": "^7.22.11",
3438
"@dataplan/pg": "^0.0.1-beta.1",
3539
"@tsconfig/node16": "^1.0.3",
3640
"@types/jest": "29.5.0",
3741
"@typescript-eslint/eslint-plugin": "^6.5.0",
3842
"@typescript-eslint/parser": "^6.5.0",
3943
"@typescript-eslint/typescript-estree": "^6.5.0",
44+
"babel-jest": "^29.6.4",
45+
"babel-plugin-transform-import-meta": "^2.2.1",
4046
"eslint": "^8.48.0",
4147
"eslint-config-prettier": "^9.0.0",
4248
"eslint-plugin-import": "^2.28.1",

0 commit comments

Comments
 (0)