I'm seeing the below error from esbuild when I build a project that includes rp2040js. If I change the value there (locally) to "module" then everything still works (from my testing).
▲ [WARNING] "esm" is not a valid value for the "type" field
node_modules/rp2040js/dist/esm/package.json:1:8:
1 │ {"type":"esm"}
╵ ~~~~~
The "type" field must be set to either "commonjs" or "module".
I'm seeing the below error from esbuild when I build a project that includes rp2040js. If I change the value there (locally) to "module" then everything still works (from my testing).