Describe the bug
The package includes require that causes an exception in a browser bundle built by ViteJS. It happens because of these lines:
https://github.com/squirrellyjs/squirrelly/blob/master/src/file-utils.ts#L1-L2
That file should be imported only in nodejs build, not a browser. At least, it should not be included in ESM format
Describe the bug
The package includes
requirethat causes an exception in a browser bundle built by ViteJS. It happens because of these lines:https://github.com/squirrellyjs/squirrelly/blob/master/src/file-utils.ts#L1-L2
That file should be imported only in nodejs build, not a browser. At least, it should not be included in ESM format