@utilx/alifc
Now we provide alifc facility
Last updated 9 months ago by lteam .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @utilx/alifc 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.1                                ...           latest (9 months ago)

2 Versions

  • 0.0.1                                ...           9 months ago
  • 0.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (7)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |