Skip to content

1.2.0-beta.1 release does not include mjs files #1785

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

Closed
Alduino opened this issue Jan 14, 2022 · 1 comment
Closed

1.2.0-beta.1 release does not include mjs files #1785

Alduino opened this issue Jan 14, 2022 · 1 comment

Comments

@Alduino
Copy link

Alduino commented Jan 14, 2022

Bug report

Description / Observed Behavior

Version 1.2.0-beta.1 includes #1760 which builds mjs files to support ESModules, however although the new release refers to them in its package.json, the files don't actually exist.

Expected Behavior

There should be files in the package at ./dist/index.mjs, ./infinite/dist/index.mjs, and ./immutable/dist/index.mjs.

Repro Steps / Code Example

You can download the tar from https://registry.npmjs.org/swr/-/swr-1.2.0-beta.1.tgz and check for the files.

Additional Context

SWR version 1.2.0-beta.1

@huozhi
Copy link
Member

huozhi commented Jan 26, 2022

It's fixed in v1.2.0 now
https://unpkg.com/browse/[email protected]/dist/index.mjs

@huozhi huozhi closed this as completed Jan 26, 2022
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

No branches or pull requests

2 participants