samrith-s / parcel-plugin-structurize

A plugin to customize the output (dist) directory structure during production.
MIT License
41 stars 6 forks source link

UnhandledPromiseRejectionWarning: SyntaxError: Invalid regular expression: /\/: \ at end of pattern #19

Closed IsaacHub closed 4 years ago

IsaacHub commented 4 years ago

While building I got the following warning in the console:

(node:24764) UnhandledPromiseRejectionWarning: SyntaxError: Invalid regular expression: /\/: \ at end of pattern
    at new RegExp (<anonymous>)

https://github.com/samrith-s/parcel-plugin-structurize/blob/d4cc3a338fe6beda9f276d4be6d63243968f1c80/src/util.js#L1

Build is completed though.

samrith-s commented 4 years ago

Thank you for this. I will have a look into this the coming weekend.

Could you provide some info on the version of Node and Parcel you are using?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

carscx commented 4 years ago

Some solution?

samrith-s commented 4 years ago

@carscx If you could provide me with a reproducible repository, I'll be more than happy to look into it.