智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/8f/8ff51d60112b6ca228efbb0595d...

14 lines
324 B

const path = require('path')
const {
transform
} = require('@babel/core')
transform('console.log(\'123\')', {
filename: '/index.vue',
configFile: false,
minified: true,
plugins: [path.resolve(__dirname, '../packages/babel-plugin-console/dist/index.js')]
}, function (err, result) {
console.log(err, result)
})