michaelwittig/node-i18n-iso-countries

Reducing the size of the package in Serverless by eliminating unused languages

Opened this issue · 1 comments

I'm using ESM with Node.js and I was wondering if there is a way to eliminate unused languages from the Serverless environment to reduce the size of it?

I would exclude all the languages, that I don't use, manually, but then I would need to change supportedLocales.json as well.

I like this idea. We had to hard code a dictionary from this library for our 11 supported languages. Otherwise the package would have been too big for our edge runtime.