Closed Buzzertech closed 1 year ago
We have noticed that this library ships about 3kb of it's package.json content with it's dist code
The culprit seems to be this import inside client.ts where the pkg is being imported to retrieve the library version which is used here.
pkg
You could inject the version string at build time by using webpack's DefinePlugin.
Thank you for the input. We're deploying a fix.
Context
We have noticed that this library ships about 3kb of it's package.json content with it's dist code
Current behaviour
The culprit seems to be this import inside client.ts where the
pkg
is being imported to retrieve the library version which is used here.Expected behaviour
You could inject the version string at build time by using webpack's DefinePlugin.