lanan-repair/node_modules/weapp-qrcode/build/rollup.dev.config.js
2024-09-23 22:34:12 +08:00

39 lines
912 B
JavaScript

var babel = require('rollup-plugin-babel')
var resolve = require('rollup-plugin-node-resolve')
var commonjs = require('rollup-plugin-commonjs')
var eslint = require('rollup-plugin-eslint')
var license = require('rollup-plugin-license')
var path = require('path')
var pkg = require('../package.json')
module.exports = {
input: path.resolve(__dirname, '../src/index.js'),
output: [
{
file: path.resolve(__dirname, '../dist/weapp.qrcode.js'),
format: 'umd'
},
{
file: path.resolve(__dirname, '../examples/wechat-app/utils/weapp.qrcode.js'),
format: 'umd'
}
],
moduleName: 'drawQrcode',
plugins: [
eslint(),
resolve({
jsnext: true,
main: true,
browser: true
}),
commonjs(),
babel({
exclude: 'node_modules/**'
}),
license({
banner: 'weapp.qrcode.js v' + pkg.version + ' (' + pkg.homepage + ')'
})
]
}