mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-21 13:09:16 +00:00
fix rollup
This commit is contained in:
@@ -1,13 +1,29 @@
|
||||
const { join } = require('path')
|
||||
const commonjs = require('@rollup/plugin-commonjs')
|
||||
|
||||
const PATH = join(__dirname, 'lib', 'bundle.provider.cjs')
|
||||
|
||||
module.exports = {
|
||||
input: 'index.js',
|
||||
output: {
|
||||
file: PATH,
|
||||
format: 'cjs',
|
||||
module.exports = [
|
||||
{
|
||||
input: join(__dirname, 'web-whatsapp', 'index.js'),
|
||||
output: {
|
||||
file: join(__dirname, 'lib', 'bundle.web-whatsapp.cjs'),
|
||||
format: 'cjs',
|
||||
},
|
||||
plugins: [commonjs()],
|
||||
},
|
||||
plugins: [commonjs()],
|
||||
}
|
||||
{
|
||||
input: join(__dirname, 'twilio', 'index.js'),
|
||||
output: {
|
||||
file: join(__dirname, 'lib', 'bundle.twilio.cjs'),
|
||||
format: 'cjs',
|
||||
},
|
||||
plugins: [commonjs()],
|
||||
},
|
||||
{
|
||||
input: join(__dirname, 'mock', 'index.js'),
|
||||
output: {
|
||||
file: join(__dirname, 'lib', 'bundle.mock.cjs'),
|
||||
format: 'cjs',
|
||||
},
|
||||
plugins: [commonjs()],
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user