New Upstream Release - node-rollup-plugin-alias

Ready changes

Summary

Merged new upstream version: 5.0.0~ds (was: 4.0.3~ds).

Diff

diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..f04d208
--- /dev/null
+++ b/.github/CODE_OF_CONDUCT.md
@@ -0,0 +1,46 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment include:
+
+- Using welcoming and inclusive language
+- Being respectful of differing viewpoints and experiences
+- Gracefully accepting constructive criticism
+- Focusing on what is best for the community
+- Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+- The use of sexualized language or imagery and unwelcome sexual attention or advances
+- Trolling, insulting/derogatory comments, and personal or political attacks
+- Public or private harassment
+- Publishing others' private information, such as a physical or electronic address, without explicit permission
+- Other conduct which could reasonably be considered inappropriate in a professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at TODO. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
+
+Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4][version]
+
+[homepage]: https://contributor-covenant.org
+[version]: https://contributor-covenant.org/version/1/4/
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
new file mode 100644
index 0000000..1223058
--- /dev/null
+++ b/.github/CONTRIBUTING.md
@@ -0,0 +1,73 @@
+# Contribute
+
+## Introduction
+
+First, thank you for considering contributing to rollup! It's people like you that make the open source community such a great community! 😊
+
+We welcome any type of contribution, not only code. You can help with
+
+- **QA**: file bug reports, the more details you can give the better (i.e. [REPL](https://rollupjs.org/repl/)-links or repos that demonstrate the specific issue)
+- **Marketing**: writing blog posts, howto's, printing stickers, ...
+- **Community**: presenting the project at meetups, organizing a dedicated meetup for the local community, ...
+- **Code**: take a look at the [open issues](https://github.com/rollup/plugins/issues). Even if you can't write code, commenting on them, showing that you care about a given issue matters. It helps us triage them.
+- **Money**: we welcome financial contributions in full transparency on our [open collective](https://opencollective.com/rollup).
+
+## Your First Contribution
+
+Working on your first Pull Request? You can learn how from this _free_ series, [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).
+
+## Submitting code
+
+Any code change should be submitted as a pull request. Our guidelines for Pull Requests:
+
+- Please fill in our template in its entirety. Please don't reformat it or modify it
+- The description should explain what the code does and give steps to execute it
+- The pull request should also contain tests
+- Before submitting your Pull Request, please lint your changes by running `pnpm lint` in the root directory
+- If any checks fail for your Pull Request, please resolve them. Always feel free to ask for help if unable to resolve issues with checks
+
+## Code review process
+
+The bigger the pull request, the longer it will take to review and merge. Try to break down large pull requests in smaller chunks that are easier to review and merge.
+
+It is also always helpful to have some context for your pull request. What was the purpose? Why does it matter to you? Does it resolve any known Github issues? Adding a line "resolves #<issue number>" (e.g. "resolves #23") to the description of your pull request or of a specific commit will automatically close this issue once the pull request is merged.
+
+## Financial contributions
+
+We also welcome financial contributions in full transparency on our [open collective](https://opencollective.com/rollup).
+Anyone can file an expense. If the expense makes sense for the development of the community, it will be "merged" in the ledger of our open collective by the core contributors and the person who filed the expense will be reimbursed.
+
+## Questions
+
+If you require technical assistance, [Stackoverflow](https://stackoverflow.com/questions/tagged/rollupjs) or [Rollup Discord](https://is.gd/rollup_chat) are usually the best places to start.
+You can also create an [issue](issue) (protip: do a quick search first to see if someone else didn't ask the same question before!).
+
+## Credits
+
+### Contributors
+
+Thank you to all the people who have already contributed to rollup!
+<a href="graphs/contributors"><img src="https://opencollective.com/rollup/contributors.svg?width=890" /></a>
+
+### Backers
+
+Thank you to all our backers! [[Become a backer](https://opencollective.com/rollup#backer)]
+
+<a href="https://opencollective.com/rollup#backers" target="_blank"><img src="https://opencollective.com/rollup/backers.svg?width=890"></a>
+
+### Sponsors
+
+Thank you to all our sponsors! (please ask your company to also support this open source project by [becoming a sponsor](https://opencollective.com/rollup#sponsor))
+
+<a href="https://opencollective.com/rollup/sponsor/0/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/0/avatar.svg"></a>
+<a href="https://opencollective.com/rollup/sponsor/1/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/1/avatar.svg"></a>
+<a href="https://opencollective.com/rollup/sponsor/2/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/2/avatar.svg"></a>
+<a href="https://opencollective.com/rollup/sponsor/3/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/3/avatar.svg"></a>
+<a href="https://opencollective.com/rollup/sponsor/4/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/4/avatar.svg"></a>
+<a href="https://opencollective.com/rollup/sponsor/5/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/5/avatar.svg"></a>
+<a href="https://opencollective.com/rollup/sponsor/6/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/6/avatar.svg"></a>
+<a href="https://opencollective.com/rollup/sponsor/7/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/7/avatar.svg"></a>
+<a href="https://opencollective.com/rollup/sponsor/8/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/8/avatar.svg"></a>
+<a href="https://opencollective.com/rollup/sponsor/9/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/9/avatar.svg"></a>
+
+<!-- This `CONTRIBUTING.md` is based on @nayafia's template https://github.com/nayafia/contributing-template -->
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..d06831d
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1 @@
+open_collective: rollup
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
new file mode 100644
index 0000000..01c83e8
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE.md
@@ -0,0 +1,17 @@
+<!--
+  👉🏽 Need help or tech support? Please don't open an issue!
+  Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs
+
+  ❤️ Rollup? Please consider supporting our collective:
+  👉 https://opencollective.com/rollup/donate
+
+  Ahoy!
+
+  You're seeing this because you felt none of the other options fit the type of
+  issue you'd like to create. Please use this opportunity to tell us about the
+  type of issue you were looking for, so we can try to accommodate similar
+  issues in the future.
+
+  If you're using this template to report an issue covered by an existing issue
+  type, we'll close it as invalid faster than you can spell 'Mississippi'.
+-->
diff --git a/.github/ISSUE_TEMPLATE/BUG.md b/.github/ISSUE_TEMPLATE/BUG.md
new file mode 100644
index 0000000..c136eb2
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/BUG.md
@@ -0,0 +1,55 @@
+---
+name: 🐞 Bug Report
+about: Something went awry and you'd like to tell us about it.
+
+---
+
+<!--
+  ⚡️ katchow! We 💛 issues.
+
+  🚨 Your issue will be CLOSED if:
+     - This template is removed
+     - Parts of this template are removed
+
+  👉🏽 Need help or tech support? Please don't open an issue!
+  Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs
+
+  ❤️ Rollup? Please consider supporting our collective:
+  👉 https://opencollective.com/rollup/donate
+-->
+
+- Rollup Plugin Name: <!-- the plugin(s) this issue is about -->
+- Rollup Plugin Version:
+- Rollup Version:
+- Operating System (or Browser):
+- Node Version:
+- Link to reproduction _(⚠️ read below)_:
+
+<!--
+  🚨 Issues WITHOUT a valid reproduction WILL BE CLOSED!
+
+  Please provide one by:
+  1. Using the StackBlitz reproduction template at https://stackblitz.com/fork/rollup-repro
+  2. Using the REPL.it plugin reproduction template at https://repl.it/@rollup/rollup-plugin-repro
+  3. Provide a minimal repository link (Read https://gist.github.com/Rich-Harris/88c5fc2ac6dc941b22e7996af05d70ff for instructions).
+     Please use NPM for installing dependencies!
+     These may take more time to triage than the other options.
+
+  ⚠️ ZIP Files are unsafe and maintainers will NOT download them.
+-->
+
+
+### Expected Behavior
+
+
+### Actual Behavior
+
+
+### Additional Information
+
+<!--
+  Most issues can be expressed or demonstrated through the REPL or a repository.
+  However, the situation may arise where some small code snippets also need to
+  be provided. In that situation, please add your code below using
+  Fenced Code Blocks (https://help.github.com/articles/creating-and-highlighting-code-blocks/)
+-->
diff --git a/.github/ISSUE_TEMPLATE/DOCS.md b/.github/ISSUE_TEMPLATE/DOCS.md
new file mode 100644
index 0000000..bc8a939
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/DOCS.md
@@ -0,0 +1,36 @@
+---
+name: 📚 Documentation
+about: Are the docs lacking or missing something? Do they need some new 🔥 hotness? Tell us here.
+
+---
+
+<!--
+  ⚡️ katchow! We 💛 issues.
+
+  Please - do not - remove this template.
+  Please - do not - skip or remove parts of this template.
+  Or your issue may be closed.
+
+  👉🏽 Need help or tech support? Don't open an issue!
+  Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs
+
+  ❤️ Rollup? Please consider supporting our collective:
+  👉 https://opencollective.com/rollup/donate
+-->
+
+- Rollup Plugin Name: <!-- the plugin(s) this issue is about -->
+- Rollup Plugin Version:
+
+Documentation Is:
+
+<!-- Please place an x (no spaces!) in all [ ] that apply -->
+
+- [ ] Missing
+- [ ] Needed
+- [ ] Confusing
+- [ ] Not Sure?
+
+### Please Explain in Detail...
+
+
+### Your Proposal for Changes
diff --git a/.github/ISSUE_TEMPLATE/FEATURE.md b/.github/ISSUE_TEMPLATE/FEATURE.md
new file mode 100644
index 0000000..abaab8e
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/FEATURE.md
@@ -0,0 +1,27 @@
+---
+name: ✨ Feature Request
+about: Suggest an idea for this project
+
+---
+
+<!--
+  ⚡️ katchow! We 💛 issues.
+
+  Please - do not - remove this template.
+  Please - do not - skip or remove parts of this template.
+  Or your issue may be closed.
+
+  👉🏽 Need help or tech support? Please don't open an issue!
+  Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs
+
+  ❤️ Rollup? Please consider supporting our collective:
+  👉 https://opencollective.com/rollup/donate
+-->
+
+- Rollup Plugin Name: <!-- the plugin(s) this issue is about -->
+- Rollup Plugin Version:
+
+### Feature Use Case
+
+
+### Feature Proposal
diff --git a/.github/ISSUE_TEMPLATE/MODIFICATION.md b/.github/ISSUE_TEMPLATE/MODIFICATION.md
new file mode 100644
index 0000000..615ba19
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/MODIFICATION.md
@@ -0,0 +1,30 @@
+---
+name: 🔧 Modification Request
+about: Would you like something work differently? Have an alternative approach? This is the template for you.
+
+---
+
+<!--
+  ⚡️ katchow! We 💛 issues.
+
+  Please - do not - remove this template.
+  Please - do not - skip or remove parts of this template.
+  Or your issue may be closed.
+
+  👉🏽 Need help or tech support? Please don't open an issue!
+  Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs
+
+  ❤️ Rollup? Please consider supporting our collective:
+  👉 https://opencollective.com/rollup/donate
+-->
+
+- Rollup Plugin Name: <!-- the plugin(s) this issue is about -->
+- Rollup Plugin Version:
+
+### Expected Behavior / Situation
+
+
+### Actual Behavior / Situation
+
+
+### Modification Proposal
diff --git a/.github/ISSUE_TEMPLATE/NEW_PLUGIN.md b/.github/ISSUE_TEMPLATE/NEW_PLUGIN.md
new file mode 100644
index 0000000..c209d99
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/NEW_PLUGIN.md
@@ -0,0 +1,47 @@
+---
+name: 🔌 New Plugin Request
+about: Request a new Core plugin
+
+---
+
+<!--
+  ⚡️ katchow! We 💛 issues.
+
+  Please - do not - remove this template.
+  Please - do not - skip or remove parts of this template.
+  Or your issue may be closed.
+
+  👉🏽 Need help or tech support? Please don't open an issue!
+  Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs
+
+  ❤️ Rollup? Please consider supporting our collective:
+  👉 https://opencollective.com/rollup/donate
+-->
+
+Request Checklist:
+
+<!--
+  Required Steps Before Opening This Issue
+  Please [x] check the boxes to acknowledge you have performed these tasks
+-->
+- [ ] I have searched https://npmjs.com/ before opening this issue
+- [ ] I have searched https://github.com/rollup/awesome before opening this issue
+
+### New Plugin Use Case
+
+<!--
+  Please describe the need for the new plugin, how it makes
+  sense for your scenario, or other information that describes
+  the community need for this plugin.
+
+  Screenshots are great if you have them.
+  Code is great to see if you can provide snippets.
+-->
+
+### New Plugin Proposal
+
+<!--
+  Use this area to describe how the new plugin might behave,
+  options that it might have, or other resources that might
+  be useful to the plugin you're proposing.
+-->
diff --git a/.github/ISSUE_TEMPLATE/SUPPORT.md b/.github/ISSUE_TEMPLATE/SUPPORT.md
new file mode 100644
index 0000000..6b620e6
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/SUPPORT.md
@@ -0,0 +1,13 @@
+---
+name: 🆘 Support, Help, and Advice
+about: 👉🏽 Need help or tech support? Please don't open an issue! Head to https://is.gd/rollup_chat or https://stackoverflow.com/questions/tagged/rollupjs.
+
+---
+
+Hey there! If you need help or tech support then this is not the place to
+ask. Please head to the [Rollup Discord](https://is.gd/rollup_chat)
+instead or post a question to https://stackoverflow.com/questions/tagged/rollupjs.
+
+If you arrived here because you think Rollup's documentation is unclear,
+insufficient or wrong, please consider creating an issue for the documentation
+instead.
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..dd7b9e8
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,48 @@
+<!--
+  ⚡️ katchow! We ❤️ Pull Requests!
+
+  If you remove or skip this template, you'll make the 🐼 sad and the mighty god
+  of Github will appear and pile-drive the close button from a great height
+  while making animal noises.
+
+  Pull Request Requirements:
+  * Please include tests to illustrate the problem this PR resolves.
+  * Please lint your changes by running `npm run lint` before creating a PR.
+  * Please update the documentation in `/docs` where necessary
+
+  Please place an x (no spaces - [x]) in all [ ] that apply.
+-->
+
+<!-- the plugin(s) this PR is for -->
+
+## Rollup Plugin Name: `{name}`
+
+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
+
+If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking. 
+
+List any relevant issue numbers:
+
+### Description
+
+<!--
+  Please be thorough and clearly explain the problem being solved.
+  * If this PR adds a feature, look for previous discussion on the feature by searching the issues first.
+  * Is this PR related to an issue?
+-->
diff --git a/.github/deprecation-messages.txt b/.github/deprecation-messages.txt
new file mode 100644
index 0000000..359ccac
--- /dev/null
+++ b/.github/deprecation-messages.txt
@@ -0,0 +1,7 @@
+"This package has been deprecated and is no longer maintained. Please use @rollup/plugin-."
+
+# Moved
+
+This package has moved and is now available at [@rollup/plugin-](https://github.com/rollup/plugins). Please update your dependencies. This repository is no longer maintained.
+
+This package has moved and is now available at @rollup/plugin- / https://github.com/rollup/plugins
diff --git a/.github/labels.json b/.github/labels.json
new file mode 100644
index 0000000..1391016
--- /dev/null
+++ b/.github/labels.json
@@ -0,0 +1,54 @@
+[
+  { "name": "💩 template incomplete", "color": "#4E342E" },
+  { "name": "💩 template removed", "color": "#4E342E" },
+
+  { "name": "b¹ 🐞 code-splitting", "color": "#F44336" },
+  { "name": "b² 🐞 scope-hoisting", "color": "#F44336" },
+  { "name": "b³ 🐞 tree-shaking", "color": "#F44336" },
+
+  { "name": "c¹ ⋅ discussion", "color": "#1976D2" },
+  { "name": "c² ⋅ feedback wanted", "color": "#F9A825" },
+  { "name": "c³ ⋅ PR welcome", "color": "#1B5E20" },
+  { "name": "c⁴ ⋅ need more info", "color": "#6A1B9A" },
+  { "name": "c⁵ ⋅ question", "color": "#C2185B" },
+  { "name": "c⁶ ⋅ request for comments", "color": "#BBDEFB" },
+
+  { "name": "p¹ ⋅ browser", "color": "#B2DFDB" },
+  { "name": "p² ⋅ linux", "color": "#B2DFDB" },
+  { "name": "p³ ⋅ mac", "color": "#B2DFDB" },
+  { "name": "p⁴ ⋅ windows", "color": "#B2DFDB" },
+
+  { "name": "pr¹ 🔧 chore", "color": "#D7CCC8" },
+  { "name": "pr² 🔧 docs", "color": "#D7CCC8" },
+  { "name": "pr³ 🔧 feature", "color": "#D7CCC8" },
+  { "name": "pr⁴ 🔧 fix", "color": "#D7CCC8" },
+  { "name": "pr⁵ 🔧 performance", "color": "#D7CCC8" },
+  { "name": "pr⁶ 🔧 refactor", "color": "#D7CCC8" },
+  { "name": "pr⁷ 🔧 style", "color": "#D7CCC8" },
+  { "name": "pr⁸ 🔧 test", "color": "#D7CCC8" },
+
+  { "name": "s¹ 🔥🔥🔥 critical", "color": "#E53935" },
+  { "name": "s² 🔥🔥 important", "color": "#FB8C00" },
+  { "name": "s³ 🔥 nice to have", "color": "#FDD835" },
+  { "name": "s⁴ 💧 low", "color": "#039BE5" },
+  { "name": "s⁵ 💧💧 inconvenient", "color": "#c0e0f7" },
+
+  { "name": "t¹ 🐞 bug", "color": "#F44336" },
+  { "name": "t² 📚 documentation", "color": "#FDD835" },
+  { "name": "t³ ✨ enhancement", "color": "#03a9f4" },
+  { "name": "t⁴ ⋅ regression", "color": "#0052cc" },
+  { "name": "t⁵ ⋅ todo", "color": "#311B92" },
+  { "name": "t⁶ ⋅ waiting on upstream", "color": "#0D47A1" },
+
+  { "name": "v¹ ⋅ major", "color": "#CDDC39" },
+  { "name": "v² ⋅ minor", "color": "#FF9800" },
+  { "name": "v³ ⋅ minor (experimental)", "color": "#FFC107" },
+
+  { "name": "x¹ ⋅ abandoned", "color": "#CFD8DC" },
+  { "name": "x² ⋅ could not reproduce", "color": "#CFD8DC" },
+  { "name": "x³ ⋅ duplicate", "color": "#CFD8DC" },
+  { "name": "x⁴ ⋅ hold", "color": "#CFD8DC" },
+  { "name": "x⁵ ⋅ in progress", "color": "#4CAF50" },
+  { "name": "x⁶ ⋅ invalid", "color": "#CFD8DC" },
+  { "name": "x⁷ ⋅ wontfix", "color": "#CFD8DC" }
+]
diff --git a/.github/stale.yml b/.github/stale.yml
new file mode 100644
index 0000000..59a18e7
--- /dev/null
+++ b/.github/stale.yml
@@ -0,0 +1,17 @@
+# all settings listed here - https://github.com/probot/stale#usage
+
+daysUntilStale: 60
+daysUntilClose: 1
+exemptAssignees: true
+# use this property to disable stale bot when we apply the wontfix label, prevents users from playing stale bot ping pong and keeping an issue open with no intent of action
+exemptLabels:
+  - x⁸ ⋅ wontfix
+  - x⁴ ⋅ hold
+only: issues
+staleLabel: x⁷ ⋅ stale
+markComment: false
+closeComment: >
+  Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping.
+  If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further
+  discussion is always welcome even with the issue closed. If anything actionable is posted in the comments,
+  we'll consider reopening it.  [ⓘ](https://github.com/probot/stale#is-closing-stale-issues-really-a-good-idea)
diff --git a/.github/workflows/node-windows.yml b/.github/workflows/node-windows.yml
new file mode 100644
index 0000000..b81b022
--- /dev/null
+++ b/.github/workflows/node-windows.yml
@@ -0,0 +1,45 @@
+name: Windows
+
+on:
+  pull_request:
+    types:
+      - edited
+      - opened
+      - synchronize
+  push:
+    branches:
+      - '*'
+      - '!master'
+
+jobs:
+  build:
+    runs-on: windows-2019
+
+    strategy:
+      matrix:
+        node: ['18', '16', '14']
+
+    name: Node v${{ matrix.node }}
+    steps:
+      - name: Configure git line-breaks
+        run: git config --global core.autocrlf false
+
+      - name: Checkout Commit
+        uses: actions/checkout@v1
+
+      - name: Checkout Master
+        run: git branch -f master origin/master
+
+      - name: Setup Node
+        uses: actions/setup-node@v1
+        with:
+          node-version: ${{ matrix.node }}
+
+      - name: install pnpm
+        run: npm install pnpm@7 -g
+
+      - name: pnpm install
+        run: pnpm install --ignore-scripts
+
+      - name: run tests
+        run: pnpm --filter "...[origin/master]" ci:test
diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml
new file mode 100644
index 0000000..95b1f29
--- /dev/null
+++ b/.github/workflows/pr-title.yml
@@ -0,0 +1,25 @@
+name: Pull Request Title Format
+
+on:
+  pull_request:
+    branches:
+      - '*'
+    types:
+      - opened
+      - reopened
+      - edited
+      - synchronize
+
+jobs:
+  prTitle:
+    name: Check
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v2
+      - name: Check PR Title
+        uses: clowdhaus/actions/pr-title@v0.1.0
+        with:
+          on-fail-message: "Your PR title doesn't match the required format. The title should be in the conventional commit (https://www.conventionalcommits.org/en/v1.0.0-beta.4/) format. e.g.\n\n```\nchore(plugin-name): add pr title workflow\n```"
+          title-regex: '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([\w|,|\-|\|]+\))?(!)?\:\s.*$'
+          github-token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..050048b
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,82 @@
+name: Release Packages
+
+on:
+  push:
+    branches:
+      - master
+
+jobs:
+  publish:
+    # let's ignore release commits, otherwise it'll try to run twice
+    if: |
+      !startsWith(github.event.head_commit.message , 'chore(release):') &&
+      !startsWith(github.event.head_commit.message , 'chore(repo):')
+
+    runs-on: ubuntu-latest
+
+    name: release
+
+    steps:
+      - name: Checkout Commit
+        uses: actions/checkout@v1
+
+      - name: Setup Node
+        uses: actions/setup-node@v1
+        with:
+          node-version: 18
+          registry-url: https://registry.npmjs.org/
+
+      - name: Checkout Master
+        run: |
+          git branch -f master origin/master
+          git checkout master
+
+      - name: Sanity Check
+        run: |
+          echo branch `git branch --show-current`;
+          echo node `node -v`;
+
+      - name: Initliaze .npmrc
+        run: >
+          echo -e "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}\n$(cat .npmrc)" > .npmrc
+          && cat -n .npmrc
+
+      - name: Install pnpm
+        run: |
+          npm install pnpm@7 -g;
+          echo node `pnpm -v`;
+
+      - name: Set Git Config
+        run: |
+          git config pull.rebase false
+          git config --global user.email "release-workflow@rollup.dev"
+          git config --global user.name "Release Workflow"
+          git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
+
+      - name: pnpm install
+        run: pnpm install
+
+      - name: Build Packages
+        run: pnpm --recursive build
+
+      - name: Lint Monorepo
+        run: pnpm lint
+
+      - name: Run Tests
+        run: pnpm --filter [HEAD^] test
+
+      - name: Release and Publish Packages
+        run: pnpm --filter [HEAD^] --workspace-concurrency=1 release
+        env:
+          NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
+          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+
+      - name: Push Release and Cleanup
+        run: |
+          pnpm lint:docs
+          git checkout .npmrc
+          git add . && git commit --amend --no-edit
+          git pull origin master --no-edit
+          git rebase
+          git push origin HEAD:master
+          git push origin HEAD:master --tags
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
new file mode 100644
index 0000000..0ede632
--- /dev/null
+++ b/.github/workflows/validate.yml
@@ -0,0 +1,62 @@
+name: Validate Monorepo
+
+on:
+  pull_request:
+    types:
+      - edited
+      - opened
+      - synchronize
+  push:
+    branches:
+      - '*'
+      - '!master'
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+
+    strategy:
+      matrix:
+        node: ['18', '16', '14']
+
+    name: Node v${{ matrix.node }}
+
+    steps:
+      - name: Checkout Commit
+        uses: actions/checkout@v1
+
+      - name: Setup Node
+        uses: actions/setup-node@v1
+        with:
+          node-version: ${{ matrix.node }}
+
+      - name: Checkout Master
+        run: git branch -f master origin/master
+
+      - name: Install pnpm
+        run: npm install pnpm@7 -g
+
+      - name: Sanity Check
+        run: |
+          echo branch `git branch --show-current`;
+          echo node `node --version`;
+          echo yarn `pnpm --version`
+
+      - name: pnpm install
+        run: pnpm install
+
+      - name: Prettier
+        run: pnpm run prettier:check
+
+      # pnpm audit isn't as robust as it needs to be atm
+      # - name: Audit Dependencies
+      #   run: pnpm security
+
+      - name: Build Packages
+        run: pnpm --recursive build
+
+      - name: Lint Monorepo
+        run: pnpm lint:js
+
+      - name: Run Tests
+        run: pnpm --filter "...[origin/master]" ci:coverage
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d84ced3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,18 @@
+.nyc_output/
+coverage/
+dist/
+node_modules/
+output/
+
+.DS_Store
+.eslintcache
+coverage.lcov
+.pnpm-debug.log
+.idea
+.rollup.cache
+
+!packages/*/test/**/node_modules
+!packages/node-resolve/test/fixtures/**/node_modules
+!packages/commonjs/test/**/node_modules
+!packages/typescript/test/fixtures/**/node_modules
+!packages/typescript/test/fixtures/**/dist
diff --git a/CODEOWNERS b/CODEOWNERS
index 35faf74..6fc3c89 100644
--- a/CODEOWNERS
+++ b/CODEOWNERS
@@ -1,6 +1,8 @@
 * @shellscape
 
 /packages/babel/ @Andarist
+/packages/esm-shim/ @tada5hi
 /packages/image/ @tjenkinson
 /packages/node-resolve/ @tjenkinson
+/packages/swc/ @tada5hi
 /packages/terser/ @tada5hi
diff --git a/README.md b/README.md
index 108ce0e..29b6623 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,7 @@ This repository houses plugins that Rollup considers critical to every day use o
 | [dsv](packages/dsv)                                 | Convert .csv and .tsv files into JavaScript modules with d3-dsv                           |
 | [dynamic-import-vars](packages/dynamic-import-vars) | Resolving dynamic imports that contain variables.                                         |
 | [eslint](packages/eslint)                           | Verify entry point and all imported files with ESLint                                     |
+| [esm-shim](packages/esm-shim)                       | Replace cjs syntax for esm output bundles                                                 |
 | [graphql](packages/graphql)                         | Convert .gql/.graphql files to ES6 modules                                                |
 | [html](packages/html)                               | Create HTML files to serve Rollup bundles                                                 |
 | [image](packages/image)                             | Import JPG, PNG, GIF, SVG, and WebP files                                                 |
@@ -42,6 +43,7 @@ This repository houses plugins that Rollup considers critical to every day use o
 | [run](packages/run)                                 | Run your bundles in Node once they're built                                               |
 | [strip](packages/strip)                             | Remove debugger statements and functions like assert.equal and console.log from your code |
 | [sucrase](packages/sucrase)                         | Compile TypeScript, Flow, JSX, etc with Sucrase                                           |
+| [swc](packages/swc)                                 | Transpile TypeScript/JavaScript with the speedy-web-compiler                              |
 | [terser](packages/terser)                           | Generate a minified output bundle with terser                                             |
 | [typescript](packages/typescript)                   | Integration between Rollup and Typescript                                                 |
 | [url](packages/url)                                 | Import files as data-URIs or ES Modules                                                   |
diff --git a/debian/changelog b/debian/changelog
index ff4e017..07f48b6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-rollup-plugin-alias (5.0.0~ds-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Thu, 25 May 2023 13:39:04 -0000
+
 node-rollup-plugin-alias (4.0.3~ds-1) experimental; urgency=medium
 
   * Team upload
diff --git a/debian/patches/fix-test-for-rollup-2.patch b/debian/patches/fix-test-for-rollup-2.patch
index 05114c7..0cd0c03 100644
--- a/debian/patches/fix-test-for-rollup-2.patch
+++ b/debian/patches/fix-test-for-rollup-2.patch
@@ -4,9 +4,11 @@ Author: Yadd <yadd@debian.org>
 Forwarded: not-needed
 Last-Update: 2022-10-27
 
---- a/packages/alias/test/test.mjs
-+++ b/packages/alias/test/test.mjs
-@@ -444,6 +444,7 @@
+Index: node-rollup-plugin-alias.git/packages/alias/test/test.mjs
+===================================================================
+--- node-rollup-plugin-alias.git.orig/packages/alias/test/test.mjs
++++ node-rollup-plugin-alias.git/packages/alias/test/test.mjs
+@@ -444,6 +444,7 @@ test('Alias + rollup-plugin-node-resolve
          );
      }));
  
@@ -14,7 +16,7 @@ Last-Update: 2022-10-27
  test('Forwards isEntry and custom options to a custom resolver', (t) => {
    const resolverCalls = [];
    return resolveAliasWithRollup(
-@@ -541,6 +542,7 @@
+@@ -541,6 +542,7 @@ test('Forwards isEntry and custom option
      t.end();
    });
  });
diff --git a/debian/patches/replace-ava-by-tape.diff b/debian/patches/replace-ava-by-tape.diff
index cb0cc2a..a66d5fa 100644
--- a/debian/patches/replace-ava-by-tape.diff
+++ b/debian/patches/replace-ava-by-tape.diff
@@ -3,9 +3,11 @@ Author: Xavier Guimard <yadd@debian.org>
 Forwarded: not-needed
 Last-Update: 2022-10-27
 
---- a/packages/alias/test/test.mjs
-+++ b/packages/alias/test/test.mjs
-@@ -2,7 +2,7 @@
+Index: node-rollup-plugin-alias.git/packages/alias/test/test.mjs
+===================================================================
+--- node-rollup-plugin-alias.git.orig/packages/alias/test/test.mjs
++++ node-rollup-plugin-alias.git/packages/alias/test/test.mjs
+@@ -2,7 +2,7 @@ import path, { posix } from 'path';
  import { fileURLToPath } from 'url';
  import { createRequire } from 'module';
  
@@ -14,7 +16,7 @@ Last-Update: 2022-10-27
  import { rollup } from 'rollup';
  import nodeResolvePlugin from '@rollup/plugin-node-resolve';
  
-@@ -67,18 +67,21 @@
+@@ -67,18 +67,21 @@ function resolveAliasWithRollup(aliasOpt
  
  test('type', (t) => {
    t.is(typeof alias, 'function');
@@ -36,7 +38,7 @@ Last-Update: 2022-10-27
  });
  
  test('Simple aliasing (array)', (t) =>
-@@ -265,6 +268,7 @@
+@@ -265,6 +268,7 @@ test('Works in rollup with non fake inpu
  
  test('Global customResolver function', (t) => {
    const customResult = 'customResult';
@@ -44,7 +46,7 @@ Last-Update: 2022-10-27
  
    return resolveAliasWithRollup(
      {
-@@ -288,6 +292,7 @@
+@@ -288,6 +292,7 @@ test('Global customResolver function', (
  test('Local customResolver function', (t) => {
    const customResult = 'customResult';
    const localCustomResult = 'localCustomResult';
@@ -52,7 +54,7 @@ Last-Update: 2022-10-27
  
    return resolveAliasWithRollup(
      {
-@@ -311,6 +316,7 @@
+@@ -311,6 +316,7 @@ test('Local customResolver function', (t
  
  test('Global customResolver plugin-like object', (t) => {
    const customResult = 'customResult';
@@ -60,7 +62,7 @@ Last-Update: 2022-10-27
  
    return resolveAliasWithRollup(
      {
-@@ -334,6 +340,7 @@
+@@ -334,6 +340,7 @@ test('Global customResolver plugin-like
  test('Local customResolver plugin-like object', (t) => {
    const customResult = 'customResult';
    const localCustomResult = 'localCustomResult';
@@ -68,7 +70,7 @@ Last-Update: 2022-10-27
  
    return resolveAliasWithRollup(
      {
-@@ -480,6 +487,7 @@
+@@ -480,6 +487,7 @@ test('Forwards isEntry and custom option
        ]
      ]);
      t.deepEqual(result, ['entry-point', 'non-entry-point']);
@@ -76,7 +78,7 @@ Last-Update: 2022-10-27
    });
  });
  
-@@ -530,6 +538,7 @@
+@@ -530,6 +538,7 @@ test('Forwards isEntry and custom option
        ]
      ]);
      t.deepEqual(result, ['entry-point', 'non-entry-point']);
@@ -84,7 +86,7 @@ Last-Update: 2022-10-27
    });
  });
  
-@@ -538,6 +547,7 @@
+@@ -538,6 +547,7 @@ test('CustomResolver plugin-like object
      entry: 0,
      option: 0
    };
@@ -92,7 +94,7 @@ Last-Update: 2022-10-27
    return resolveAliasWithRollup(
      {
        entries: [
-@@ -607,4 +617,5 @@
+@@ -607,4 +617,5 @@ test('Works as CJS plugin', async (t) =>
          `expected ${normalizedIds[index]} to end with ${expectedId}`
        )
      );
diff --git a/debian/patches/tsc-workaround.patch b/debian/patches/tsc-workaround.patch
index 9d04cd9..0ba5d5c 100644
--- a/debian/patches/tsc-workaround.patch
+++ b/debian/patches/tsc-workaround.patch
@@ -3,9 +3,11 @@ Author: Yadd <yadd@debian.org>
 Forwarded: not-needed
 Last-Update: 2022-10-27
 
---- a/packages/alias/src/index.ts
-+++ b/packages/alias/src/index.ts
-@@ -33,6 +33,7 @@
+Index: node-rollup-plugin-alias.git/packages/alias/src/index.ts
+===================================================================
+--- node-rollup-plugin-alias.git.orig/packages/alias/src/index.ts
++++ node-rollup-plugin-alias.git/packages/alias/src/index.ts
+@@ -33,6 +33,7 @@ function getEntries({ entries, customRes
      });
    }
  
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 38af951..c0445de 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -264,6 +264,17 @@ importers:
       rollup: 3.2.3
       typescript: 4.8.4
 
+  packages/esm-shim:
+    specifiers:
+      magic-string: ^0.27.0
+      rollup: ^3.0.0-7
+      typescript: ^4.8.3
+    dependencies:
+      magic-string: 0.27.0
+    devDependencies:
+      rollup: 3.2.3
+      typescript: 4.8.4
+
   packages/graphql:
     specifiers:
       '@rollup/plugin-buble': ^1.0.0
@@ -496,6 +507,19 @@ importers:
       '@rollup/plugin-alias': 4.0.0_rollup@3.2.3
       rollup: 3.2.3
 
+  packages/swc:
+    specifiers:
+      '@swc/core': ^1.3.27
+      rollup: ^3.0.0-7
+      smob: ^0.0.6
+      typescript: ^4.8.3
+    dependencies:
+      smob: 0.0.6
+    devDependencies:
+      '@swc/core': 1.3.27
+      rollup: 3.2.3
+      typescript: 4.8.4
+
   packages/terser:
     specifiers:
       '@types/serialize-javascript': ^5.0.2
@@ -2229,6 +2253,113 @@ packages:
     resolution: {integrity: sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==}
     dev: true
 
+  /@swc/core-darwin-arm64/1.3.27:
+    resolution: {integrity: sha512-IKlxkhEy99CnP9nduaf5IJWIFcr6D5cZCjYmCs7nWkjMV+aAieyDO9AX4LT8AcHy6CF7ByOX7SKoqk+gVMAaKw==}
+    engines: {node: '>=10'}
+    cpu: [arm64]
+    os: [darwin]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@swc/core-darwin-x64/1.3.27:
+    resolution: {integrity: sha512-MtabZIhFf/dL3vs6UMbd+vJsjIkm2NaFqulGV0Jofy2bfVZPTj/b5pXeOlUsTWy7JcH1uixjdx4RvJRyvqJxQA==}
+    engines: {node: '>=10'}
+    cpu: [x64]
+    os: [darwin]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@swc/core-linux-arm-gnueabihf/1.3.27:
+    resolution: {integrity: sha512-XELMoGcUTAkk+G4buwIIhu6AIr1U418Odt22HUW8+ZvV+Wty2ICgR/myOIhM3xMb6U2L8ay+evMqoVNMQ0RRTg==}
+    engines: {node: '>=10'}
+    cpu: [arm]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@swc/core-linux-arm64-gnu/1.3.27:
+    resolution: {integrity: sha512-O6vtT6bnrVR9PzEIuA5U7tIfYo7bv97H9K9Vqy2oyHNeGN0H36DKwS4UqPreHtziXNF5+7ubdUYUkrG/j8UnUQ==}
+    engines: {node: '>=10'}
+    cpu: [arm64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@swc/core-linux-arm64-musl/1.3.27:
+    resolution: {integrity: sha512-Oa0E1i7dOTWpaEZumKoNbTE/Ap+da6nlhqKVUdYrFDrOBi25tz76SdxZIyvAszzmgY89b5yd1naourKmkPXpww==}
+    engines: {node: '>=10'}
+    cpu: [arm64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@swc/core-linux-x64-gnu/1.3.27:
+    resolution: {integrity: sha512-S3v9H8oL2a8Ur6AjQyhkC6HfBVPOxKMdBhcZmdNuVgEUHbHdbf/Lka85F9IOYXEarMn0FtQw3ywowS22O9L5Uw==}
+    engines: {node: '>=10'}
+    cpu: [x64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@swc/core-linux-x64-musl/1.3.27:
+    resolution: {integrity: sha512-6DDkdXlOADpwICFZTRphCR+cIeS8aEYh4NlyzBito0mOWwIIdfCgALzhkTQOzTOkcD42bP97CIoZ97hqV/puOg==}
+    engines: {node: '>=10'}
+    cpu: [x64]
+    os: [linux]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@swc/core-win32-arm64-msvc/1.3.27:
+    resolution: {integrity: sha512-baxfH4AbEcaTNo08wxV0W6hiMXwVCxPS4qc0amHpXPti92unvSqeDR1W3C9GjHqzXlWtmCRsq8Ww1pal6ZVLrw==}
+    engines: {node: '>=10'}
+    cpu: [arm64]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@swc/core-win32-ia32-msvc/1.3.27:
+    resolution: {integrity: sha512-7iLJnH71k5qCwxv9NcM/P7nIEzTsC7r1sIiQW6bu+CpC8qZvwl0PS+XvQRlLly2gCZM+Le98tksYG14MEh+Hrw==}
+    engines: {node: '>=10'}
+    cpu: [ia32]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@swc/core-win32-x64-msvc/1.3.27:
+    resolution: {integrity: sha512-mFM907PDw/jrQ44+TRjIVGEOy2Mu06mMMz0HPMFuRsBzl5t0Kajp3vmn8FkkpS9wH5982VPi6hPYVTb7QJo5Qg==}
+    engines: {node: '>=10'}
+    cpu: [x64]
+    os: [win32]
+    requiresBuild: true
+    dev: true
+    optional: true
+
+  /@swc/core/1.3.27:
+    resolution: {integrity: sha512-praRNgpeYGvwDIm/Cl6JU+yHMvwVraL0U6ejMgGyzvpcm1FVsZd1/EYXGqzbBJ0ALv7Gx4eK56h4GnwV6d4L0w==}
+    engines: {node: '>=10'}
+    requiresBuild: true
+    optionalDependencies:
+      '@swc/core-darwin-arm64': 1.3.27
+      '@swc/core-darwin-x64': 1.3.27
+      '@swc/core-linux-arm-gnueabihf': 1.3.27
+      '@swc/core-linux-arm64-gnu': 1.3.27
+      '@swc/core-linux-arm64-musl': 1.3.27
+      '@swc/core-linux-x64-gnu': 1.3.27
+      '@swc/core-linux-x64-musl': 1.3.27
+      '@swc/core-win32-arm64-msvc': 1.3.27
+      '@swc/core-win32-ia32-msvc': 1.3.27
+      '@swc/core-win32-x64-msvc': 1.3.27
+    dev: true
+
   /@szmarczak/http-timer/4.0.6:
     resolution: {integrity: sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==}
     engines: {node: '>=10'}

More details

Full run details

Historical runs