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

Send filename to plugins #15

Closed
boopathi opened this issue May 12, 2017 · 1 comment
Closed

Send filename to plugins #15

boopathi opened this issue May 12, 2017 · 1 comment

Comments

@boopathi
Copy link

plugin:

...
   Class(path, state) {
     console.log(state.file.opts.filename); // logs `unknown`
   }
...

Babel transform has options - filename and filenameRelative that could be passed in - http://babeljs.io/docs/usage/api/#options

@eventualbuddha
Copy link
Collaborator

Fixed in v1.1.3.

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

No branches or pull requests

2 participants