UNPKG

mtfscrolllist

Version:

Virtualized infinite scrolling list 虚拟化无限滚动 下拉刷新列表

41 lines (40 loc) 898 B
const { resolve } = require('path') module.exports = { entry: './src/mtfscrolllist.js', output: { filename: 'mtfscrolllist.js', path: resolve('dist'), library: 'MtfScrollList', libraryTarget: 'umd', globalObject: 'this', environment: { arrowFunction: false, bigIntLiteral: false, const: false, destructuring: false, dynamicImport: false, forOf: false, module: false, } }, module: { rules: [{ test: /\.js$/, include: resolve('src'), use: [ 'thread-loader', { loader: 'babel-loader?cacheDirectory', options: { presets: ['@babel/preset-env'], // plugins: [['@babel/plugin-transform-runtime', { corejs: 3 }], "@babel/plugin-transform-modules-umd"], } } ] }] }, devServer: { hot: true, open: true } }