mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-28 03:05:04 -06:00
00f14643fb
Should fix annoying dependabot warning. Live blocks functionality tested with make serve-local and remotely using Netlify. Both seems to work as before. Signed-off-by: Anders Eknert <anders@eknert.com>
47 lines
1.1 KiB
JavaScript
47 lines
1.1 KiB
JavaScript
import babel from '@rollup/plugin-babel'
|
|
import commonjs from '@rollup/plugin-commonjs'
|
|
import json from '@rollup/plugin-json'
|
|
import postcss from 'rollup-plugin-postcss'
|
|
import resolve from '@rollup/plugin-node-resolve'
|
|
import {terser} from 'rollup-plugin-terser'
|
|
|
|
import pkg from './package.json'
|
|
|
|
export default [
|
|
// browser-friendly UMD build
|
|
{
|
|
input: 'src/web/index.js',
|
|
output: {
|
|
file: pkg.browser,
|
|
format: 'umd',
|
|
},
|
|
plugins: [
|
|
json(),
|
|
resolve(),
|
|
commonjs({
|
|
include: ['node_modules/**'],
|
|
sourceMap: false
|
|
}),
|
|
babel({// Taken from package.js, wasn't using plugins correctly otherwise
|
|
'plugins': [
|
|
[
|
|
'@babel/plugin-proposal-decorators',
|
|
{
|
|
'legacy': true
|
|
}
|
|
],
|
|
'@babel/plugin-transform-react-jsx',
|
|
'@babel/plugin-transform-regenerator'
|
|
],
|
|
'presets': [
|
|
'@babel/preset-env'
|
|
],
|
|
exclude: ['node_modules/**'],
|
|
}),
|
|
postcss({
|
|
extract: true
|
|
}),
|
|
terser(),
|
|
]
|
|
}
|
|
] |