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

fix: migrate from lodash-es to lodash for CJS support #5666

Merged
merged 1 commit into from
Oct 10, 2022

Conversation

adidahiya
Copy link
Contributor

Fixes #5536

Changes proposed in this pull request:

Switch from lodash-es to lodash (using submodule imports) to restore CommonJS support in @blueprintjs/datetime2 package.

We could technically keep using lodash-es in our application packages (demo-app, docs-app, table-dev-app), but it's simpler this way to only allow imports from lodash across the monorepo.

We can switch back to lodash-es in Blueprint v6 when we make a breaking change to drop CommonJS support (stop publishing a /lib/cjs/ folder) and only support ESM.

@blueprint-bot
Copy link

fix: migrate from lodash-es to lodash for CJS support

Previews: documentation | landing | table | demo

@adidahiya adidahiya merged commit 4ec83a5 into develop Oct 10, 2022
@adidahiya adidahiya deleted the ad/fix-lodash-imports branch October 10, 2022 16: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.

DateTime2 components break ts-node execution (testing with mocha)
2 participants