mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-22 13:30:11 +00:00
issue rollup
This commit is contained in:
21
packages/provider/rollup-provider.config.js
Normal file
21
packages/provider/rollup-provider.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const { join } = require('path')
|
||||
const commonjs = require('@rollup/plugin-commonjs')
|
||||
const { nodeResolve } = require('@rollup/plugin-node-resolve')
|
||||
|
||||
const PATH = join(__dirname, 'lib', 'bundle.provider.cjs')
|
||||
|
||||
module.exports = {
|
||||
input: 'index.js',
|
||||
output: {
|
||||
file: PATH,
|
||||
format: 'cjs',
|
||||
},
|
||||
plugins: [
|
||||
commonjs(),
|
||||
nodeResolve({
|
||||
resolveOnly: (module) => {
|
||||
return !module === '@bot-whatsapp/bot'
|
||||
},
|
||||
}),
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user