You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/rollup.config.js

18 lines
474 B

import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
import { defineConfig } from 'rollup';
// runs the version generation as a side-effect of importing
import './scripts/generate-version.js';
export default defineConfig({
input: 'src/compiler/index.js',
output: {
file: 'compiler/index.js',
format: 'umd',
name: 'svelte'
},
plugins: [resolve(), commonjs(), terser()]
});