Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Fix esm builds incorrectly containing .js files instead of .mjs files #2082

Merged
merged 2 commits into from
Nov 22, 2021

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Nov 22, 2021

Description

Updates the rollup version to 2.60.1.

This release of rollup contains a fix that means babel helpers in the esm build now get generated with a .mjs extension, rather than a .js extension.

This fixes an error that occurs when trying to use the esm build in node. See rollup/plugins#1031 and rollup/rollup#4270

Type of change

Patch:

  • @shopify/address
  • @shopify/ast-utilities
  • @shopify/async
  • @shopify/dates
  • @shopify/graphql-config-utilities
  • @shopify/graphql-fixtures
  • @shopify/graphql-mini-transforms
  • @shopify/graphql-persisted
  • @shopify/graphql-testing
  • @shopify/graphql-typescript-definitions
  • @shopify/graphql-validate-fixtures
  • @shopify/jest-dom-mocks
  • @shopify/jest-koa-mocks
  • @shopify/logger
  • @shopify/performance
  • @shopify/react-app-bridge-universal-provider
  • @shopify/react-async
  • @shopify/react-bugsnag
  • @shopify/react-cookie
  • @shopify/react-effect
  • @shopify/react-form-state
  • @shopify/react-form
  • @shopify/react-graphql-universal-provider
  • @shopify/react-graphql
  • @shopify/react-html
  • @shopify/react-i18n-universal-provider
  • @shopify/react-i18n
  • @shopify/react-import-remote
  • @shopify/react-network
  • @shopify/react-performance
  • @shopify/react-router
  • @shopify/react-server
  • @shopify/react-shortcuts
  • @shopify/react-testing
  • @shopify/semaphore
  • @shopify/statsd
  • @shopify/web-worker

@BPScott BPScott requested a review from a team November 22, 2021 18:54
This release of rollup contains a fix that means babel helpers in the
esm build get generated with a .mjs extension, rather than a .js
extension.

This fixes an error that occures when trying to use the esm build in
node. See rollup/plugins#1031

### Changed

- Fixed babel helpers file being generated with incorrect filename in esm build. [[#2082](https://github.com/Shopify/quilt/pull/2082)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Copy link
Contributor

@dahukish dahukish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@BPScott BPScott merged commit 8d21075 into main Nov 22, 2021
@BPScott BPScott deleted the fix-virtual-filenames branch November 22, 2021 21:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants