mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
* Create separate entry point of copy-tex for webpack * Update katex.webpack.js comment * Generate ECMAScript for contrib * Update dependencies * Comment out documentations
22 lines
489 B
JavaScript
22 lines
489 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({runtimeHelpers: true}),
|
|
alias({
|
|
katex: '../katex.mjs',
|
|
}),
|
|
],
|
|
external: '../katex.mjs',
|
|
}));
|