A CoffeeScript compilation function with presets, for use with Masonry.
m.start [
m.glob "*.coffee", source
m.read
m.tr x.coffee "web"
m.extension ".js"
m.write build
]
Provides two presets, corresponding to Babel preset-env
targets:
web
, which setstargets
toesmodules: true
node
, which setstargets
tonode: "current"
We no longer need to target specific browsers, since we're relying on support for ES Modules.
npm i -D @dashkite/masonry-coffee
- preset must be one of
web
ornode