curlyfy-loader
Add curly brackets to a whitespace indented module using curlyfy;
EXPERIMENTAL: Use at your own risk!
Install
npm install --save-dev curlyfy-loader
Usage
It should be used in tandem with a curly language loader:
var jsmodule = ;var tsmodule = ;
Or within the webpack config:
module:loaders:test: /\.js\.noncurly$/ exclude: /node_modules/ loader: 'babel!curlyfy'test: /\.ts\.noncurly$/ exclude: /node_modules/ loader: 'typescript!curlyfy'
and then require normally:
var jsmodule = ;var tsmodule = ;
See webpack docs: Using loaders
Options
See the curlyfy options
License
MIT (http://www.opensource.org/licenses/mit-license.php)