Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not import manifesto es modules directly #3478

Merged
merged 4 commits into from
Jul 13, 2021

Conversation

charbugs
Copy link
Collaborator

Instead let the environment (Node, Jest, Webpack ...) decide what kind of modules to import.

Without that fix the following line will throw an error because Node (CommonJs environment) is forced to import an ES module while processing the import tree:

node --eval "require('mirador/dist/cjs/src')"

@cbeer cbeer merged commit c941b70 into master Jul 13, 2021
@cbeer cbeer deleted the do-not-import-manifesto-es-modules-directly branch July 13, 2021 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants