quipper / i18n-dts

A d.ts file generator for i18n-js.
Apache License 2.0
48 stars 6 forks source link

Make sure the latest uncached translation file is read when using --watch #16

Closed JoelBesada closed 4 years ago

JoelBesada commented 4 years ago

I noticed a bug where you would stop getting the latest changes from a file after the first refresh when using watch mode. This is due to require() calls being cached in Node.js, so we need delete the cache entry each time we import the file again.

hotchemi commented 4 years ago

@yuya-takeyama @christineoo could you take a look when you have time(and merge)? 🙇 I don't have ownership anymore.