mps - support svg

This commit is contained in:
dntzhang 2019-04-07 14:01:36 +08:00
parent d651d46123
commit 80edbd2870
2 changed files with 12 additions and 1 deletions

View File

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

View File

@ -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",