Hacker News new | ask | show | jobs
by cookiengineer 1684 days ago
...which is a default export, not a named export, as I already explained. My point was about the lack of exporting named exports without the need to declare variable names.

Your solution will work only once in a file, therefore it is useless to batch-export lots of imports for the mentioned use case of an "index" file that exports all your classes and definitions.

1 comments

It isn't default export, as you can see here: https://babeljs.io/repl#?browsers=node16&build=&builtIns=fal...