You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Endo’s bundler cannot transform an ESM where an exported value was previously obtained from extraction of an object, where the default value was previously extracted. Or rather: this module can’t be bundled:
const{ x, y =x}=z;export{x,y};
Steps to reproduce
In packages/module-source run the following failing tests:
test.failing('should support export of defaulted extraction',t=>{newModuleSource(` const { x, y = x } = globalThis; export { x, y }; `)});test.failing('should support export const object with default',t=>{const_=newModuleSource(` export const { x = undefined, } = globalThis; `);t.pass();});
Expected behavior
Above test should pass and effect consistent behavior to other spec-compliant implementations.
Platform environment
Additional context
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
Endo’s bundler cannot transform an ESM where an exported value was previously obtained from extraction of an object, where the default value was previously extracted. Or rather: this module can’t be bundled:
Steps to reproduce
packages/module-source
run the following failing tests:Expected behavior
Above test should pass and effect consistent behavior to other spec-compliant implementations.
Platform environment
Additional context
Screenshots
The text was updated successfully, but these errors were encountered: