-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Using ES6 Modules with main.js
import lib from "./lib.js"
console.log(lib());
export default () => "main";lib.js
export default () => "Hello, World!";Using command esbuild --bundle --outfile=bundle.js main.js
Then loading the bundle.js file in Node.js i see the Hello World being printed so lib.js got imported successfully however the main.js also exported a function that i cannot use from Node.js it should've been exported. Cannot reproduce this with rollup.
(Another comment: the bundle is pretty big compared to what rollup produces for the code i mentioned do we really need all that stuff?)
jbbn
Metadata
Metadata
Assignees
Labels
No labels