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

fix: access document.currentScript at the top level #5118

Merged
merged 5 commits into from
Sep 10, 2023

Conversation

TrickyPi
Copy link
Member

@TrickyPi TrickyPi commented Sep 2, 2023

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

Add a new helper _documentCurrentScript for accessing document.currentScirpt at the top level.

@vercel
Copy link

vercel bot commented Sep 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2023 1:32pm

@github-actions
Copy link

github-actions bot commented Sep 2, 2023

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#fix/access-document-current-script

or load it into the REPL:
https://rollup-5zeamuguz-rollup-js.vercel.app/repl/?pr=5118

@codecov
Copy link

codecov bot commented Sep 2, 2023

Codecov Report

Merging #5118 (d720482) into master (642e566) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #5118   +/-   ##
=======================================
  Coverage   98.94%   98.94%           
=======================================
  Files         226      226           
  Lines        8429     8442   +13     
  Branches     2314     2318    +4     
=======================================
+ Hits         8340     8353   +13     
  Misses         32       32           
  Partials       57       57           
Files Changed Coverage Δ
src/utils/renderHelpers.ts 100.00% <ø> (ø)
src/Chunk.ts 99.33% <100.00%> (+<0.01%) ⬆️
src/ast/nodes/MetaProperty.ts 100.00% <100.00%> (ø)
src/utils/interopHelpers.ts 100.00% <100.00%> (ø)

@lukastaegert lukastaegert added this pull request to the merge queue Sep 10, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 10, 2023
@lukastaegert lukastaegert added this pull request to the merge queue Sep 10, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 10, 2023
@lukastaegert lukastaegert merged commit bec9e07 into master Sep 10, 2023
12 checks passed
@lukastaegert lukastaegert deleted the fix/access-document-current-script branch September 10, 2023 05:25
@rollup-bot
Copy link
Collaborator

This PR has been released as part of rollup@3.29.1. You can test it via npm install rollup.

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

3 participants