From 74a0ba4c60d743a6721b1e3fd834e3fa2f7aede8 Mon Sep 17 00:00:00 2001 From: Nick Filatov Date: Sun, 3 Sep 2017 15:40:04 +0600 Subject: [PATCH] add remove prop types plugin --- .babelrc | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.babelrc b/.babelrc index aa05dac..9f2cdbf 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,4 @@ { "presets": ["es2015", "react"], - "plugins": ["transform-object-rest-spread", "transform-runtime"] + "plugins": ["transform-object-rest-spread", "transform-runtime", "transform-react-remove-prop-types"] } diff --git a/package.json b/package.json index 3c8dca1..7db2fdd 100644 --- a/package.json +++ b/package.json @@ -59,9 +59,9 @@ "clean:dist": "rm -rf dist/", "build:data": "node scripts/build-data", "build:example": "node scripts/build-example", - "build:dist": "npm run clean:dist && babel src --out-dir dist --copy-files", + "build:dist": "npm run clean:dist && babel src --out-dir dist --copy-files --ignore webpack.config.js", "build": "npm run build:data && npm run build:example && npm run build:dist", - "watch": "babel src --watch --out-dir dist --copy-files", + "watch": "babel src --watch --out-dir dist --copy-files --ignore webpack.config.js", "start": "npm run watch", "react:clean": "rimraf node_modules/{react,react-dom,react-addons-test-utils}", "react:14": "npm run react:clean && npm i react@^0.14 react-dom@^0.14 react-addons-test-utils@^0.14 --save-dev",