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.
14 lines
324 B
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)
|
|
})
|
|
|