Fork me on GitHub
#squint
<
2024-02-13
>
martinklepsch21:02:49

FYI, I'm getting this warning when bundling squint code with esbuild

(node:16492) [DEP0151] DeprecationWarning: No "main" or "exports" field defined in the package.json for ./node_modules/squint-cljs/ resolving the main entry point "index.js", imported from build.js. Default "index" lookups for the main are deprecated for ES modules.

1
borkdude21:02:12

issue + repro welcome

martinklepsch21:02:11

actually, has nothing to do with esbuild. I'm getting this when running node index.js where index.js is the following:

import { compileString } from "squint-cljs";
node v18.18.0

borkdude22:02:46

ok, perhaps you can just write squint-cljs/index.js then

borkdude22:02:45

I'll add an exports fields here tomorrow: https://github.com/squint-cljs/squint/blob/main/package.json if you file an issue

👍 1