Message from JavaScript discussions

November 2017

— I'm just saying that NOT using a module system (until imports are finalized) in browsers is a vulnerability

Message permanent page

— 

For instance:

script1.js:
var i = 4;

script2.js:

var arr = [];
arr.length = i;


i is a dependency of script2.js

— Yeah

— This is without a module system

— Introducing a direct implicit dependency

— Using dependencies as arguments is much better

— Personally for my own projects, I just use GNU Make

— Easy enough to cat modules into an IIFE and then spit out a single file, uses both Bash and Make's own language

Message permanent page

— Https://github.com/Floofies/Differentia.js/blob/master/makefile

— There's the makefile for one of them

— It's actually quite funny haha, I crammed testing, linting, minifying etc... into a single file like that. It just snags NPM packages and Github repos into the build directory and uses them locally

Message permanent page

— And I haven't found it harder than Grunt/Gulp or Webpack at all... in fact it's too simple to get wrong most of the time

Message permanent page