10000 Add name: "pyscript" to rollup config for minified verison by JeffersGlass · Pull Request #1054 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

Add name: "pyscript" to rollup config for minified verison #1054

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

Merged
merged 1 commit into from
Dec 17, 2022

Conversation

JeffersGlass
Copy link
Contributor
@JeffersGlass JeffersGlass commented Dec 16, 2022

pyscript.min.js does not currently export pyscript as a JavaScript module, meaning that all the functionality that's intended to be exposed via the pyscript js module does not work when using the minified version.

This PR rectifies that by adding name: "pyscript" to the the minified configuration in the rollup config. I also re-arranged the keys in the normal and minified versions so they're in the same order.

First spotted by user "tuxprint" on the PyScript Discord.

Copy link
Contributor
@FabioRosado FabioRosado left a comment

Choose a reason for hiding this comment

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

Ah brilliant, thank you for fixing this!

@JeffersGlass JeffersGlass merged commit 3721d2c into pyscript:main Dec 17, 2022
@JeffersGlass JeffersGlass deleted the minified-rollup-fix branch December 17, 2022 01:12
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.

2 participants
0