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

Implement --polyfill-node/ config.polyfill_node #72

Merged
merged 1 commit into from
Dec 5, 2021

Conversation

threepointone
Copy link
Contributor

This commit adds --polyfill-node as a cli argument and polyfill_node as a config field. It uses https://github.com/remorses/esbuild-plugins / https://github.com/ionic-team/rollup-plugin-node-polyfills/ for the polyfills. I also added a warning for the tradeoffs whenever this config is used. We may want better polyfills in the future, and maybe even better messaging if we can recognise popular libraries and suggest replacements.

This commit adds `--polyfill-node` as a cli argument and `polyfill_node` as a config field. It uses https://github.com/remorses/esbuild-plugins / https://github.com/ionic-team/rollup-plugin-node-polyfills/ for the polyfills. I also added a warning for the tradeoffs whenever this config is used. We may want better polyfills in the future, and maybe even better messaging if we can recognise popular libraries and suggest replacements.
@changeset-bot
Copy link

changeset-bot bot commented Dec 5, 2021

⚠️ No Changeset found

Latest commit: 70ca9be

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@threepointone
Copy link
Contributor Author

yeahbaby

@threepointone threepointone merged commit 634f9dd into main Dec 5, 2021
@threepointone threepointone deleted the polyfill-node branch December 5, 2021 08:34
threepointone added a commit that referenced this pull request Dec 13, 2021
The quality of the polyfills is quite bad, so I'm removing this implementation (introduced in  #72)
threepointone added a commit that referenced this pull request Dec 13, 2021
* remove `polyfill-node` / `polyfill_node`

The quality of the polyfills is quite bad, so I'm removing this implementation (introduced in  #72)

* add a changeset

* Update package-lock.json
GregBrimble pushed a commit that referenced this pull request Feb 8, 2024
this fixes an issue in serveSinglePageApp where the raw `request.url` string is being used as part of a conditional to retrieve static content - if a query parameter is set, it breaks the URL lookup. credit to @sgiacosa who wrote this code in #72 - this PR is a _very slight_ adaptation of his code sample!

closes #72
GregBrimble pushed a commit that referenced this pull request Feb 9, 2024
this fixes an issue in serveSinglePageApp where the raw `request.url` string is being used as part of a conditional to retrieve static content - if a query parameter is set, it breaks the URL lookup. credit to @sgiacosa who wrote this code in #72 - this PR is a _very slight_ adaptation of his code sample!

closes #72
GregBrimble pushed a commit that referenced this pull request Feb 9, 2024
this fixes an issue in serveSinglePageApp where the raw `request.url` string is being used as part of a conditional to retrieve static content - if a query parameter is set, it breaks the URL lookup. credit to @sgiacosa who wrote this code in #72 - this PR is a _very slight_ adaptation of his code sample!

closes #72
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.

1 participant