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

Remove type: module from published app/lib package.json #931

Merged
merged 1 commit into from
Jan 17, 2022
Merged

Conversation

axelboc
Copy link
Contributor

@axelboc axelboc commented Jan 17, 2022

Trying this fix for #914. I've tested @h5web/app with CRA v5 outside of the repo and came across a couple of errors that I managed to fix by removing "type": "module" from the package, so I thought I'd give it a try.

Note that "type": "module" is required in development, so I "revert" it by setting to "commonjs" inside "publishConfig".

I'll publish a beta version once merged.

Copy link
Member

@loichuder loichuder left a comment

Choose a reason for hiding this comment

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

If I understand correctly, the commit message could be clearer: Replace type: module by type: commonjs in published app/lib package.json ?

@axelboc
Copy link
Contributor Author

axelboc commented Jan 17, 2022

Well, it's equivalent since commonjs is the default behaviour.

@loichuder
Copy link
Member

Well, it's equivalent since commonjs is the default behaviour.

Didn't know that 😅

@axelboc axelboc merged commit b4c5ca9 into main Jan 17, 2022
@axelboc axelboc deleted the module branch January 17, 2022 08:39
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.

None yet

2 participants