preact-cli
preact-cli copied to clipboard
What does this '(0, _path.resolve)(env.src, position.source)' means?
Hi @developit, I have been digging into the code of the project and I've came across with this statement:
(0, _path.resolve)(env.src, position.source)
Could you explain what are the pros of this?
Thank in advance.
it's from babel
Yup yup. I think what you're looking at is originally this line
Babel + Webpack compilation uglies it a bit in order to safely handle import statements & whatnot. 😄