-
Notifications
You must be signed in to change notification settings - Fork 21
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
Can't get __dirname to work #23
Comments
I'm having the same exact issue |
Null byte ( |
@kuraga See: rollup/rollup#2881 I'm not sure what your usecase is. Mine was to do some node fs operations during runtime which turned out to not being a very good idea in the first place. If you've got a valid use-case maybe raise an issue over at rollup-plugin-node-polyfills. |
@schadenn , thanks! It supports, doesn't it? My usecase is using |
@kuraga Oh okay, yeah might be that it supports it. I didn't see it being listed in the Readme and did no further investigation. |
Hi,
I'm trying to use the plugin to use
__dirname
in my component src somewhere. I already dug quite deep into your code and found that the plugin looks for__dirname
in my code and if it's there it puts aimport __dirname from 'node-globals:dirname'
at the top of the file.Just how is this
import from 'node-globals:dirname
supposed to work (maybe if you explain, I can find the solution)?There is no npm module called node-globals being installed.
So everytime I'm trying to use __dirname rollup just fails with:
Also not quite sure why there is a
\0
character in front of theDIRNAME
path in your code.Thanks in advance.
The text was updated successfully, but these errors were encountered: