You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/04/01 06:03:49 UTC
[44/50] [abbrv] incubator-weex git commit: * [html5] fix soucemap
with flow.
* [html5] fix soucemap with flow.
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/9c97d35e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/9c97d35e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/9c97d35e
Branch: refs/heads/dev
Commit: 9c97d35e780e62c7ea678a983fa426ec914bf8d1
Parents: 82ff96d
Author: MrRaindrop <te...@gmail.com>
Authored: Fri Mar 31 16:29:47 2017 +0800
Committer: MrRaindrop <te...@gmail.com>
Committed: Fri Mar 31 16:29:47 2017 +0800
----------------------------------------------------------------------
build/config.js | 5 +++--
package.json | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/9c97d35e/build/config.js
----------------------------------------------------------------------
diff --git a/build/config.js b/build/config.js
index 9518d53..ef15574 100644
--- a/build/config.js
+++ b/build/config.js
@@ -6,7 +6,8 @@ const postcss = require('rollup-plugin-postcss')
const nodeResolve = require('rollup-plugin-node-resolve')
const uglify = require('rollup-plugin-uglify')
const commonjs = require('rollup-plugin-commonjs')
-const flow = require('rollup-plugin-flow')
+// const flow = require('rollup-plugin-flow')
+const flow = require('rollup-plugin-flow-no-whitespace')
const buble = require('rollup-plugin-buble')
const subversion = require('../package.json').subversion
@@ -98,7 +99,7 @@ function getConfig (name, minify) {
'process.env.NODE_DEBUG': false
}),
commonjs(),
- flow(),
+ flow(/*{ pretty: true }*/),
buble()
])
}
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/9c97d35e/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 25d3884..8636464 100644
--- a/package.json
+++ b/package.json
@@ -134,6 +134,7 @@
"rollup-plugin-commonjs": "^5.0.4",
"rollup-plugin-eslint": "^3.0.0",
"rollup-plugin-flow": "^1.1.1",
+ "rollup-plugin-flow-no-whitespace": "^1.0.0",
"rollup-plugin-json": "^2.0.2",
"rollup-plugin-node-resolve": "^2.0.0",
"rollup-plugin-postcss": "^0.2.0",