0.2.0 • Published 9 years ago

trycatch-loader v0.2.0

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

try-catch wrapper loader for webpack

support both es6 and jsx

install

bash npm install --save trycatch-loader

usage

module: {
		preLoaders: [{
			test: /\.(js|jsx)$/,
			exclude: /(node_modules|bower_components|vender)/,
			loader: 'trycatch'
		}],
		

catchHandler

pass function string to trycatchHandler porperty

module.exports = {
	entry: {
		app: path.join(__dirname, '/app/app.jsx'),
		react: ['react']
	},
	trycatchHandler: 'console.error(e);windowsendError(e)',