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

Avoid redundant global self-require of the plugin #1317

Merged
merged 2 commits into from Oct 5, 2020

Conversation

constgen
Copy link
Contributor

@constgen constgen commented Oct 4, 2020

In some really specific cases when the project patches require() to alias some modules (e.g. to fix an issue with ESLint sharable configs) this plugin may crash. This happens because it requires itself globally using its name which is redundant.

Other plugins that are testes on the same project have no such issue.

This PR converts such paths to relative paths.

@constgen constgen changed the title Avoid redundant global require of self Avoid redundant global self require of the plugin Oct 4, 2020
@constgen constgen changed the title Avoid redundant global self require of the plugin Avoid redundant global self-require of the plugin Oct 4, 2020
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

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

Thank you!

@ota-meshi ota-meshi merged commit f87f76c into vuejs:master Oct 5, 2020
@constgen constgen deleted the internal-resolving branch October 5, 2020 14:13
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

2 participants