This repository was archived by the owner on Jan 8, 2020. It is now read-only.
v1.2.0
All new features have been added to the online playground!
This release adds the pretty cool feature of setting a custom placeholder by import
ing or require
ing the plugin, but this is removed at compile time so no runtime dependency is required.
import $ from 'babel-plugin-partial-application'
const log = console.log($, $.foo)
log(42, { foo: 'bar' })
// -> 42 bar
This should keep linters off your back without declaring a global, and should help out TypeScript & Flow users also.