Open gjhltn opened 2 years ago
Well, I'm not sure if this is the right fix, but doing
nodeResolve({browser: true }),
worked for me, fwiw
Thanks, I ran into the same issue and this seemed to do the trick. In my case, I didn't even need to use rollup-plugin-polyfill-node
after setting {browser: true }
. Not sure why this works.
I'm using 0.9.0 and seeing this error when I bundle.
If I put
nodePolyfills()
first in my plug-ins array in config I get this errorif I put it after node-resolve etc, I get an error that node shims aren't installed.
All this is accurate. fileURLToPath Is indeed not exported by that module. And yet I don't understand! 😀
what am I doing wrong?