@utilx/alifc
v0.0.1
Published
Now we provide alifc facility
Downloads
2
Readme
alifc
Now we provide alifc facility
Webpack
Notice: handler is the variable to be exported
libraryTarget: 'umd'
library: 'handler'
const path = require('path');
module.exports = {
// entry: './src/aliyunHandler.ts',
entry: './src/safe_handler/index.ts',
module: {
rules: [{
test: /.tsx?$/,
use: 'ts-loader'
// configFile: "./tsconfig.json"
},
/*
{
test: /.js$/,
use: [{
loader: 'babel-loader',
options: {
plugins: [
[
"@babel/plugin-transform-runtime",
{
"corejs": false,
"helpers": false,
"regenerator": true,
"useESModules": false
}
]
],
presets: [
"@babel/preset-env"
]
}
}]
}
*/
]
},
resolve: {
extensions: ['.tsx', '.ts', '.js']
},
output: {
filename: 'main.js',
path: path.resolve(__dirname, 'webpack'),
libraryTarget: 'umd',
library: 'handler',
},
mode: "development",
// mode: "production",
target: "node",
node: {
__dirname: false,
}
};