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

packaging: fs.existsSync / fs.statSync fails for _filename #783

Closed
ktrzeciaknubisa opened this issue Jan 18, 2016 · 0 comments
Closed

packaging: fs.existsSync / fs.statSync fails for _filename #783

ktrzeciaknubisa opened this issue Jan 18, 2016 · 0 comments

Comments

@ktrzeciaknubisa
Copy link
Member

This looks like an old bug. Because __filename of packaged file contains .js.jx suffix, the following does not work as expected:

fs.existsSync(__filename) // returns `false`
fs.statSync(__filename) // throws an exception

Although I have the fix ready, I want to check it against other fs methods and prepare a test case.

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

1 participant