Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
webpack 5 can't set output path to `/` #10544
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
git clone https://github.com/sodatea/webpack-rootdir-bug.git cd webpack-rootdir-bug yarn && yarn build
What is the expected behavior?
Should successfully build.
Other relevant information:
Fixes webpack#10544. Though the `EISDIR` error code is not mentioned in the POSIX standard, FreeBSD and memfs both throws this error when trying to run `mkdir` on `/`. So essentially we should treat it the same as `EEXIST`. References: * https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=59739 * streamich/memfs#326