Bot releases are visible (Hide)
Published by KaTeX-bot almost 3 years ago
Published by KaTeX-bot almost 3 years ago
import katex from 'katex';
will import the ECMAScript module.You can now use:
Before | After |
---|---|
require('katex/dist/contrib/[name].js') |
require('katex/contrib/[name]') |
import katex from 'katex/dist/katex.mjs' |
import katex from 'katex' |
import 'katex/dist/contrib/[name].mjs' |
import 'katex/contrib/[name]' |