webpack

  • webpack loaders run right to left

    A loader chain reads like a pipeline and executes like function composition, which is the opposite direction. The last entry in the array runs first. Sass compiles to…

  • CSS custom properties cascade; preprocessor variables do not

    A Sass variable is resolved at build time and does not exist in the output. A custom property is a real value in the cascade, which means it…

  • Babel presets are collections of plugins, nothing more

    A preset is a named list of plugins, which is why babel-preset-es2015 transpiles more than you need and stage-0 enables proposals that may never ship. Neither is a…

  • ES6 modules are not what your bundler is doing

    Writing import and export does not mean the browser is loading modules. Babel rewrites both into CommonJS, webpack resolves them at build time, and what ships is one…

  • Object spread is a proposal, not ES2015

    Array spread is ES2015 and object spread is not — it is a stage 3 proposal, available only through Babel, and the syntactic similarity makes it very easy…