whitesmith / qnorr

Because there are moments in life when tastier is better. 🍆
7 stars 0 forks source link

Fix gulp javascript bundling task #16

Closed renatodeleao closed 7 years ago

renatodeleao commented 7 years ago

Current task is pile of fixes over fixes. Most of the things actually aren't doing anything good gulp-cache & gulp-remember were blindly added without actually knowing what they really do.

We can require javascript libraries that exist in our folders or in node_modules thanks to gulp-include, beacause they are already transpiled. But we can't require('module') within files, and this is a thing in javascript now.

This is because Babel converts ES6 code to ES5, however it doesn't handle imports.

We need Browserify or rollup or insert other bundler here to crawl code for dependencies and package them up into one file.

renatodeleao commented 7 years ago

Closed by #17