mirror of
https://github.com/pretix/pretix.git
synced 2026-04-30 00:22:40 +00:00
24 lines
613 B
JavaScript
24 lines
613 B
JavaScript
import vue from 'rollup-plugin-vue'
|
|
import { getBabelOutputPlugin } from '@rollup/plugin-babel'
|
|
|
|
export default {
|
|
output: {
|
|
format: 'iife',
|
|
exports: 'named',
|
|
},
|
|
plugins: [
|
|
getBabelOutputPlugin({
|
|
presets: ['@babel/preset-env'],
|
|
// Running babel on iife output is apparently discouraged since it can lead to global
|
|
// variable leaks. Since we didn't get it to work on inputs, let's take that risk.
|
|
// (In our tests, it did not leak anything.)
|
|
allowAllFormats: true
|
|
}),
|
|
vue({
|
|
css: true,
|
|
compileTemplate: true,
|
|
needMap: false,
|
|
}),
|
|
],
|
|
};
|