This PR aims to fix default import errors by eliminating the shim of code that attempted to change the module.exports in CJS. This affects new ESM modules and removed the default import.
Changes
Removed the export changing code from the core package.
Change the next example app to use the latest version of Next.
Updated package dependencies of the node and vite example apps.
Notes
Users who use CJS, it will now be necessary to import Metaphor like so:
const metaphor = require('metaphor-node').default
OR
We can add to this PR to manual edit the dist files or run a script to edit them and change the
Description
This PR aims to fix default import errors by eliminating the shim of code that attempted to change the
module.exports
in CJS. This affects new ESM modules and removed the default import.Changes
Notes