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(ruleset-bundler): never externalize builtins #2174

Merged
merged 3 commits into from Aug 3, 2022

Conversation

P0lip
Copy link
Contributor

@P0lip P0lip commented Jun 3, 2022

Fixes the 2nd case in #2107

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

Additional context

This is somewhat similar to #2109 with that difference we alter the default resolution only if the builtins plugin is registered. Otherwise, externalization is not modified.

@P0lip P0lip added the t/bug Something isn't working label Jun 3, 2022
@P0lip P0lip self-assigned this Jun 3, 2022
@@ -97,4 +98,50 @@ var spectral = {

export { spectral as default };`);
});

it('given node target, should support commonjs for remote ruleset with builtin modules', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

taken from #2109

@P0lip P0lip marked this pull request as ready for review June 3, 2022 19:57
@P0lip P0lip requested a review from a team as a code owner June 3, 2022 19:57
@P0lip P0lip merged commit fb1bbe6 into develop Aug 3, 2022
@P0lip P0lip deleted the fix/ruleset-bundler/always-inline-builtins branch August 3, 2022 17:03
stoplight-bot pushed a commit that referenced this pull request Aug 3, 2022
# [@stoplight/spectral-ruleset-bundler-v1.3.1](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-ruleset-bundler-v1.3.0...@stoplight/spectral-ruleset-bundler-v1.3.1) (2022-08-03)

### Bug Fixes

* **ruleset-bundler:** never externalize builtins ([#2174](#2174)) ([fb1bbe6](fb1bbe6))
@stoplight-bot
Copy link
Collaborator

🎉 This PR is included in version @stoplight/spectral-ruleset-bundler-v1.3.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants