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

refactor(pluginutils): use pathe to support browser environments #1838

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhiyuanzmj
Copy link

@zhiyuanzmj zhiyuanzmj commented Jan 17, 2025

Rollup Plugin Name: pluginutils

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

Uses pathe instead of Node's native path module to support browser environments

@zhiyuanzmj zhiyuanzmj changed the title feat(pluginutils): use pathe to support browser environments refactor(pluginutils): use pathe to support browser environments Jan 17, 2025
@zhiyuanzmj zhiyuanzmj marked this pull request as draft January 17, 2025 08:08
@zhiyuanzmj zhiyuanzmj marked this pull request as ready for review January 17, 2025 15:17
@shellscape
Copy link
Collaborator

Without discussion on why this is needed, I'm not inclined to approve this. Why not just alias path to pathe within bundler configuration?

@zhiyuanzmj
Copy link
Author

zhiyuanzmj commented Mar 6, 2025

Thanks for your reply.

I created a REPL supports rollup plugins, but when plugin are using createFilter that's will be don't support browser.
https://repl.zmjs.dev/vue-macros/vue-jsx-vapor

No matter, this maybe not a popular demand. you can close it at will.

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