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

Plugin not working in pure ESM environment: `__dirname` is not defined #15

cedx opened this issue Aug 8, 2019 · 1 comment


Copy link

commented Aug 8, 2019

Thanks to the esm package, this plugin currently works as expected. But when Gulp will natively support ES modules, I doubt that this still will be the case in the future.

The issue is that the FastTransformer uses the __dirname global variable (see line 74) but this variable is not available in ES Modules (see the Node.js documentation).

@cedx cedx added the bug label Aug 8, 2019

@cedx cedx self-assigned this Aug 8, 2019

cedx added a commit that referenced this issue Aug 8, 2019


This comment has been minimized.

Copy link
Owner Author

commented Aug 9, 2019

Fixed in version 10.1.0.

@cedx cedx closed this Aug 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.