mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-04 18:58:39 +00:00
* Bump flow version * Bump jest version * Bump eslint version * Bump rollup version * Bump webpack version * Bump misc dependencies and update lockfile * Update lockfile * Bump commander version * Bump misc dependencies * Bump istanbul version * Bump docusaurus version * Update lockfile * Explicitly declare dependencies * Bump caniuse-lite version * Update lockfile * Bump commander version * Bump webpack and css-loader version * Bump flow version
24 lines
559 B
JavaScript
24 lines
559 B
JavaScript
import babel from '@rollup/plugin-babel';
|
|
import alias from '@rollup/plugin-alias';
|
|
|
|
const {targets} = require('./webpack.common');
|
|
|
|
process.env.NODE_ENV = 'esm';
|
|
|
|
export default targets.map(({name, entry}) => ({
|
|
input: entry.replace('.webpack', ''),
|
|
output: {
|
|
file: `dist/${name}.mjs`,
|
|
format: 'es',
|
|
},
|
|
plugins: [
|
|
babel({babelHelpers: 'runtime'}),
|
|
alias({
|
|
entries: [
|
|
{find: 'katex', replacement: '../katex.mjs'},
|
|
],
|
|
}),
|
|
],
|
|
external: '../katex.mjs',
|
|
}));
|