Changelog
0.14.0 (2021-10-30)
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]'
|