bug: Unable to compile on client projects by ffjavascript
Opened this issue · 0 comments
brickpop commented
Describe the bug
Unable to effectively use the library at all:
The current import:
const { Scalar, utils: ffutils } = require("ffjavascript/require.cjs")
Fails to work, because of the exports
section on ffjavascript:
"exports": {
"import": "./main.js",
"require": "./build/main.cjs"
},
However, according to the documentation, this section is expected to be used for submodules:
https://nodejs.org/api/packages.html#packages_subpath_exports
Also, undo commit 2987698