@utilx/alifc
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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,
  }
};

Readme

Keywords

none

Package Sidebar

Install

npm i @utilx/alifc

Weekly Downloads

3

Version

0.0.1

License

ISC

Unpacked Size

7.15 kB

Total Files

4

Last publish

Collaborators

  • lteam