mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
* Upgrade to Babel 7 * Update dependencies * Remove `modules` and `useEsModules` as module support is automatically detected Target browsers supporting ESM in the ESM build. * Disable corejs aliasing (polyfill) * Fix package.json and update lockfile * Bump CircleCI cache version * Remove `Object.values()` use for Node 6 compatability * Remove redundant arguments to @babel/register * Update rollup and rollup-plugin-babel * Add ignore option to no-transform-runtime-aliasing Ignore JSON.stringify, parseInt, and ParseFloat * Upgrade babel-loader to 8.0.1 * Use api.env() in Babel configuration * Upgrade babel-loader to 8.0.2
15 lines
252 B
JavaScript
15 lines
252 B
JavaScript
import babel from 'rollup-plugin-babel';
|
|
|
|
process.env.NODE_ENV = 'esm';
|
|
|
|
export default {
|
|
input: 'katex.js',
|
|
output: {
|
|
file: 'dist/katex.mjs',
|
|
format: 'es',
|
|
},
|
|
plugins: [
|
|
babel({runtimeHelpers: true}),
|
|
],
|
|
};
|