UNPKG

468 BJavaScriptView Raw
1const transformFramework = require('../src/index');
2const WechatPlugin = require('@antmove/wx-alipay');
3
4const App = transformFramework();
5
6module.exports = function (options = {}) {
7 const inputDirPath = options.input;
8 const outputDirPath = options.output || options.defaultOutput;
9 const opts = {
10 dist: outputDirPath,
11 entry: inputDirPath,
12 ...options
13 };
14 App.use(
15 WechatPlugin,
16 opts
17 )
18 .start();
19};