19 lines
395 B
JavaScript
19 lines
395 B
JavaScript
//入口文件
|
|
require('@babel/register')({
|
|
presets: ['@babel/env'],
|
|
plugins: [
|
|
'@babel/plugin-transform-runtime',
|
|
[
|
|
'babel-plugin-webpack-alias',
|
|
{
|
|
"config": "./webpack.config.js"
|
|
}
|
|
]
|
|
|
|
]
|
|
})
|
|
require('@babel/polyfill')
|
|
const bamboo = require('./bamboo/index')
|
|
const app = new bamboo();
|
|
// app.listen(3000);
|