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
We should move into using named exports across the whole codebase.
To avoid breaking consumers, we’ll keep the existing default exports for now but mark them as deprecated.
These default exports will be removed in the next major release (v4).
Note
CJS compatibility should not be a problem as changeless is a cli tool and usually is not bundled
Adding ESM module log from a require() call for reference:
Follow up to Default exports vs named ones Discord thread
We should move into using named exports across the whole codebase.
To avoid breaking consumers, we’ll keep the existing default exports for now but mark them as deprecated.
These default exports will be removed in the next major release (v4).
Note
CJS compatibility should not be a problem as changeless is a cli tool and usually is not bundled
Adding ESM module log from a
require()call for reference:export { foo }-> logs{ foo: [Function: foo] }export default foo-> logs{ __esModule: true, default: [Function: foo] }export { foo }; export default foo-> logs{ __esModule: true, default: [Function: foo], foo: [Function: foo] }