From c04623ae05ab26973a8060d6c46fb51a34a6c2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Marohni=C4=87?= Date: Tue, 28 Jul 2015 16:27:13 +0200 Subject: [PATCH] Make it browserify-friendly Because `main.js` uses ES2015, this tells browserify to compile it with babelify first. --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 344fe77..3ae5376 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,11 @@ "url": "https://github.com/christianalfoni/formsy-react.git" }, "main": "src/main.js", + "browserify": { + "transform": [ + "babelify" + ] + }, "scripts": { "start": "webpack-dev-server --content-base build", "deploy": "NODE_ENV=production webpack -p --config webpack.production.config.js",