skovy / typed-scss-modules

🎁 Generate type definitions (.d.ts) for CSS Modules using SCSS
https://skovy.dev/generating-typescript-definitions-for-css-modules-using-sass/
MIT License
638 stars 67 forks source link

fix: upgrade bundle require #234

Open ryohiy opened 1 month ago

ryohiy commented 1 month ago

This PR upgrades the following packages to address an issue in my environment when trying to use the config options of this package:

Why

When using the config options in my environment, I encountered the following error:

Error: Build failed with 1 error:
/projectA/node_modules/esbuild/lib/main.js:256:12: ERROR: Invalid option in build() call: "watch"

This error appears to be caused by the removal of the watch option in esbuild starting from version 0.17.0. It seems that this PR in the bundle-require repository has addressed this issue while maintaining backward compatibility.

I have confirmed that installing bundle-require version 4.0.0 or higher resolves the error in my environment.

Therefore, I kindly request the upgrade to at least these versions of the packages, so that this error can be avoided.

Thank you for your consideration, and I would appreciate it if you could review this PR.