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: skip override on exports #127

Merged
merged 2 commits into from
Jan 25, 2021
Merged

fix: skip override on exports #127

merged 2 commits into from
Jan 25, 2021

Conversation

simoneb
Copy link
Contributor

@simoneb simoneb commented Jan 25, 2021

This fixes an issue introduced in 3.4.1 whereby skip override was only set on the cjs export.

It would make the esm import fail like here: nearform/the-fastify-workshop#12

Note: I had to fix plenty of linting errors because the file I spitted into multiple modules was ignored

@@ -211,7 +211,7 @@ function enrichError (err) {

// do not create a new context, do not encapsulate
// same as fastify-plugin
module.exports[Symbol.for('skip-override')] = true
fastifyAutoload[Symbol.for('skip-override')] = true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the only actual change

@mcollina mcollina merged commit cd2960f into fastify:master Jan 25, 2021
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