Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add directory name in index.js #60

Open
guest271314 opened this issue Sep 3, 2024 · 0 comments
Open

Add directory name in index.js #60

guest271314 opened this issue Sep 3, 2024 · 0 comments

Comments

@guest271314
Copy link

Kindly substitute

    const e = require(`${__dirname}/engines/${f}`);

or

    const e = require(`${path.join(__dirname, 'engines')}/${f}`);

for

const e = require(`./engines/${f}`);

Bun's bun bundle and bun bundle --compile wind up throwing

Cannot find module "./engines/boa.js" from "/$bunfs/root/esvu"

when running the executable from --compile, and

Cannot find module "./engines/boa.js" from "/home/user/esvu_bundle.js"

when just running bun build to bundle, oven-sh/bun#13672.

(deno throws for the bundle command with 3: Module "file:///home/user/node_modules/esvu/dist/src/bin.js" was an unsupported module kind. though is about to compile successfully with deno compile npm:esvu).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant