mps - support svg
This commit is contained in:
parent
d651d46123
commit
80edbd2870
|
@ -16,6 +16,16 @@ class WeElement {
|
|||
}
|
||||
}`}
|
||||
|
||||
// var code = require("babel-core").transform("<div dd='1'>aaa</div>",{
|
||||
// "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)
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue