This test bundles two ECMAScript Modules: one entry module, and a dependency it imports.
import esm from './esm.js'; console.log(esm);
export default 'my string';
'my string' is logged.
Ideally, the string export from
esm.js can be inlined where it is used in
index.js, removing the module's representation from the bundle entirely, and stripping away any module loading runtime. The contents of the bundle should essentially be
console.log('my string'), although this optimization may require a minifier.