sliit-foss / npm-catalogue

A curated list of NPM packages developed by the SLIIT FOSS community. Additionally, it houses the core libraries of the Timekeeper ecosystem
https://www.npmjs.com/~sliit.foss
MIT License
2 stars 6 forks source link

Polyfill dependencies during build - @sliit-foss/babel-plugin-transform-trace #97

Open Akalanka47000 opened 1 year ago

Akalanka47000 commented 1 year ago

Currently @sliit-foss/functions needs to be installed separately in the client project for the build to work smoothly if using package managers like PNPM due to hoisting. This can be avoided if the required functions can be polyfilled in during the build process.

I'm not really sure of where to start on this, will have to inspect existing plugins which provide polyfills to get an idea on this