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

Add ESM support for .mjs files in the nextjs config #569

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

ismail-syed
Copy link
Contributor

WHY are these changes introduced?

In shopify/quilt, we updated our package builds to provide an ESM build for consumers. This provides apps with more tree-shakable builds resulting in smaller production builds. Internally, our tooling is already configured to support these builds, though this boilerplate app isn't (see Shopify/quilt#1722).

Fixes Shopify/quilt#1722

WHAT is this pull request doing?

Adding out of the box support for ESM (.mjs files) libraries (Packages living in shopify/quilt)

@paulomarg
Copy link
Collaborator

Tested, and it works! Thanks for this.

@paulomarg paulomarg deleted the mjs-esm-support-for-webpack-4 branch March 10, 2021 15:51
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.

[react-form] Not working with Shopify embedded app
2 participants