@tamara-solution/checkout
Version:
Script will be embedded in merchant's site to checkout. The merchant's don't need to redirect to tamara's site.
35 lines (33 loc) • 713 B
JavaScript
import babel from '@rollup/plugin-babel'
import { terser } from 'rollup-plugin-terser'
export default {
input: 'src/main.js',
output: [
{
// Build for browser.
name: 'checkoutFrame',
file: 'dist/checkoutFrame.min.js',
format: 'iife',
},
{
// Build CommonJS.
name: 'checkoutFrame',
file: 'dist/checkoutFrame.cjs.js',
format: 'cjs',
exports: 'default',
},
{
// Build for enviroments which support ES modules.
name: 'checkoutFrame',
file: 'dist/checkoutFrame.esm.js',
format: 'es',
},
],
plugins: [
babel({
exclude: 'node_modules/**',
babelHelpers: 'bundled',
}),
terser(),
],
}