From eef05ac9e93a2b841caf576e5bc3e85d28472594 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 22 Sep 2016 00:07:33 -0400 Subject: [PATCH] use rollup-plugin-flow-no-whitespace --- build/config.js | 2 +- build/rollup-plugin-flow.js | 16 ---------------- package.json | 2 +- 3 files changed, 2 insertions(+), 18 deletions(-) delete mode 100644 build/rollup-plugin-flow.js diff --git a/build/config.js b/build/config.js index bdefe152..6c633d08 100644 --- a/build/config.js +++ b/build/config.js @@ -1,5 +1,5 @@ const path = require('path') -const flow = require('./rollup-plugin-flow') +const flow = require('rollup-plugin-flow-no-whitespace') const buble = require('rollup-plugin-buble') const replace = require('rollup-plugin-replace') const alias = require('rollup-plugin-alias') diff --git a/build/rollup-plugin-flow.js b/build/rollup-plugin-flow.js deleted file mode 100644 index 180fc6ae..00000000 --- a/build/rollup-plugin-flow.js +++ /dev/null @@ -1,16 +0,0 @@ -const flowRemoveTypes = require('flow-remove-types') -const createFilter = require('rollup-pluginutils').createFilter - -module.exports = options => { - options = options || {} - const filter = createFilter(options.include, options.exclude) - - return { - name: 'flow-remove-types', - transform: (code, id) => { - if (filter(id)) { - return flowRemoveTypes(code) - } - } - } -} diff --git a/package.json b/package.json index a631af03..f6f66523 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,6 @@ "eslint-plugin-flowtype": "^2.16.0", "eslint-plugin-html": "^1.5.2", "flow-bin": "^0.32.0", - "flow-remove-types": "github:yyx990803/flow-remove-types", "http-server": "^0.9.0", "jasmine": "2.4.x", "jasmine-core": "2.4.x", @@ -92,6 +91,7 @@ "rollup-plugin-alias": "^1.2.0", "rollup-plugin-babel": "^2.4.0", "rollup-plugin-buble": "^0.14.0", + "rollup-plugin-flow-no-whitespace": "^1.0.0", "rollup-plugin-replace": "^1.1.0", "rollup-watch": "^2.5.0", "selenium-server": "2.53.1",