bendyorke / boot-postcss

PostCSS runner for boot-clj
12 stars 0 forks source link

Shim for node 'fs' and 'path' #5

Open bendyorke opened 8 years ago

bendyorke commented 8 years ago

Most plugins that need node only use a few functions from the 'fs' and 'path' packages. These can all be polyfilled fairly easily, and then would need to be shimed into the build.

The difficult part is that some of these packages are 3 or 4 dependencies deep, and tools like browserify won't shim in dependencies 2+ levels deep. Perhaps there is a transform that will work, or maybe other tools like webpack will provide a bit more control.