Allows for compilation and requiring of wisp files via webpack
Install the loader for your project
npm install -D wisp-loaderRequire a wisp file in your Javascript code, or set a wisp file as your entry in your webpack config.
var ex = require('./example.wisp');module.exports = {
entry: './src/index.wisp',
output: {
path: __dirname,
filename: 'bundle.js'
},
module: {
loaders: [
{
test: /\.wisp$/,
loader: 'wisp-loader'
}
]
},
};- Merged PR #1 from @thatismatt, which passes through webpack query strings/objects through to the wisp compiler
- Removed unneeded string munging of
require()calls - Pushes
'.wisp'onto theresolve.extensionsarray to enablerequire()calls to work correctly - Added proper error handling, so failed compilations don't crash the
webpack-dev-server
- Moved
wispdependency to a proper peerDependencies block - Performance tested vs
transform-loaderwithwispify, basically identical in compilation time with a micro-benchmark
- Fixed up the npm publish
- Tested more of the loader
- Initial release, stuffed up the npm publish
MIT