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

Move react-tools.umd.cjs back to react-tools.js to fix script blocking #89

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

glin
Copy link
Contributor

@glin glin commented Sep 10, 2024

Proposed fix for #86. @timelyportfolio feel free to take/change whatever, but at least this should be one more possible workaround for the issue. Users can do a remotes::install_github("glin/reactR") for 0.6.0 with this patch.

  • Change Vite config to output only a UMD build to react-tools.js
  • Fix script with nonstandard .cjs extension being blocked in the browser when the X-Content-Type-Options: nosniff header is present.
  • Fix missing rollup dependencies in package-lock.json by running npm audit fix - wasn't intentional, but npm run build failed for me and npm audit fix just happened to resolve both that issue and a "high" vulnerability in some package.

* Change Vite config to output only a UMD build to react-tools.js
* Fix script with nonstandard .cjs extension being blocked in the browser
  when the X-Content-Type-Options: nosniff header is present.
* Fix missing rollup dependencies in package-lock.json by running npm audit fix
inst/www/react-tools/react-tools.js Show resolved Hide resolved
vite.config.js Show resolved Hide resolved
vite.config.js Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

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

@glin I just realized I never added you in authors. Are you ok with being added?

Copy link
Collaborator

Choose a reason for hiding this comment

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

see 30a5330

Copy link
Collaborator

Choose a reason for hiding this comment

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

0c1c902 without cre

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fine with me. Thanks!

@timelyportfolio timelyportfolio merged commit 0ca98ee into react-R:master Sep 14, 2024
5 checks passed
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