Skip to content

Entry file's export isn't exported #29

@ravener

Description

@ravener

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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions