Skip to content

Add ImportAttributesKey to choose keyword ("with" | "assert")#5474

Merged
lukastaegert merged 10 commits intorollup:masterfrom
doubleaa93:importAttributesKey
Apr 20, 2024
Merged

Add ImportAttributesKey to choose keyword ("with" | "assert")#5474
lukastaegert merged 10 commits intorollup:masterfrom
doubleaa93:importAttributesKey

Conversation

@doubleaa93
Copy link
Copy Markdown
Contributor

@doubleaa93 doubleaa93 commented Apr 18, 2024

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

Description

Add support for "with" import attributes keyword

Import assertions are being deprecated and soon to be removed in chrome
https://v8.dev/features/import-attributes

Chrome, Safari, and nodeJS already support import attributes ("with")

This PR allows to choose the keyword that will be used as is right its not possible since its hardcoded.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 18, 2024

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 Apr 20, 2024 4:53am

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.81%. Comparing base (0bf4675) to head (9f6f054).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5474   +/-   ##
=======================================
  Coverage   98.81%   98.81%           
=======================================
  Files         238      238           
  Lines        9450     9451    +1     
  Branches     2407     2408    +1     
=======================================
+ Hits         9338     9339    +1     
  Misses         47       47           
  Partials       65       65           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

Very nice, this looks really good and complete. There appears to be a small markdown linting issue that should be fixable via npm run lint, then we can merge and release this.
I think this would be a good candidate where we change the default with the next major Rollup version.

@lukastaegert lukastaegert added this pull request to the merge queue Apr 20, 2024
@lukastaegert lukastaegert removed this pull request from the merge queue due to a manual request Apr 20, 2024
@lukastaegert lukastaegert merged commit f24679e into rollup:master Apr 20, 2024
@github-actions
Copy link
Copy Markdown

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

kartarsingh803111 added a commit to kartarsingh803111/UNBUILD that referenced this pull request Dec 30, 2024
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