diff --git a/packages/mps/gulpfile.js b/packages/mps/gulpfile.js
index ac185bfec..adc462a2a 100644
--- a/packages/mps/gulpfile.js
+++ b/packages/mps/gulpfile.js
@@ -16,6 +16,16 @@ class WeElement {
}
}`}
+// var code = require("babel-core").transform("
aaa
",{
+// "plugins": [
+// ["transform-react-jsx", {
+// "pragma": "global.__h"
+// }]
+// ]
+// }).code;
+
+// console.log(code)
+
var baseOptions = {
isRoot: false,
isApp: false,
@@ -96,7 +106,7 @@ function compileLess(file, watch) {
console.log('[编译文件]'.green, file.path)
less.render(file.contents, {
- paths: ['.', './common-less'],
+ paths: ['.', './common-less'],
}, function (e, output) {
console.log('[编译完成]'.green, file.path)
diff --git a/packages/mps/package.json b/packages/mps/package.json
index 87d418060..bf7320447 100644
--- a/packages/mps/package.json
+++ b/packages/mps/package.json
@@ -15,6 +15,7 @@
"@tarojs/transformer-wx": "^1.2.22",
"babel-core": "^6.26.3",
"babel-generator": "^6.26.1",
+ "babel-plugin-transform-react-jsx": "^6.24.1",
"babel-template": "^6.26.0",
"babel-traverse": "^6.26.0",
"babel-types": "^6.26.0",