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
{{ message }}
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.
My team and I recently upgraded our project to ES6 import syntax for node imports. Setting "type": "module" in package.json.
This has changed the export behavior of Graphemer, and when it is imported, it's wrapped in an object:
FWIW in my case, we built our project using rollup, and in the consumer we saw this issue arise. We needed to set rollup to use interop: auto to add in TypeScript-equivalent shims to how the modules and dependencies were emitted. This solved the problem for us.
My team and I recently upgraded our project to ES6 import syntax for node imports. Setting
"type": "module"
inpackage.json
.This has changed the export behavior of Graphemer, and when it is imported, it's wrapped in an object:
This happens in our webpack compile result, but also when using the node console directly:
As you can see, 'default' is there twice.
Here's a temporary workaround:
It was working normally before setting
"type": "module"
inpackage.json
.The text was updated successfully, but these errors were encountered: