Skip to content

Commit

Permalink
Updated diary
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinmcfarland committed Aug 7, 2024
1 parent bf80f24 commit 6c2dc14
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions misc/DIARY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2024.07.28

Babel is needed for Jest to work. .babelrc.js needs to have extention .cjs to work.

# 2024.08.01

Only two options that worked for bundling to support dynamic imports were:
Expand All @@ -17,12 +21,12 @@ The latest I've found that works is using Rollup. In my setup it creates two bun

```
"scripts": {
"jsonnet": "jsonnet src/default-config.jsonnet -o src/default-config.json",
"build:es": "node esbuild.js",
"build": "rollup -c",
"build:es-cjs": "node esbuild.js",
"build:ts": "tsc",
"test:dist": "NODE_ENV=test node dist/index.js",
"test": "jest"
},
"jsonnet": "jsonnet src/default-config.jsonnet -o src/default-config.json",
"build:es": "node esbuild.js",
"build": "rollup -c",
"build:es-cjs": "node esbuild.js",
"build:ts": "tsc",
"test:dist": "NODE_ENV=test node dist/index.js",
"test": "jest"
},
```

0 comments on commit 6c2dc14

Please sign in to comment.