Procházet zdrojové kódy

use rollup-plugin-flow-no-whitespace

Evan You před 9 roky
rodič
revize
eef05ac9e9
3 změnil soubory, kde provedl 2 přidání a 18 odebrání
  1. 1 1
      build/config.js
  2. 0 16
      build/rollup-plugin-flow.js
  3. 1 1
      package.json

+ 1 - 1
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')

+ 0 - 16
build/rollup-plugin-flow.js

@@ -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)
-      }
-    }
-  }
-}

+ 1 - 1
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",