e.g.
// lib.js
export function f1() {}
export function f2() {}
export * as default; // invalid syntax
And then in another file:
// app.js
import lib from './lib.js';
lib.f1();
Is there a way to do this without exporting each function explicitly? e.g.
export default {f1, f2}; // tedious
PS: I am aware that I can import * as lib from './lib.js'
.