mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 13:38:39 +00:00
* Separate type import statement from module import statement * Remove extension from import statements * Build ECMAScript modules * Add `cross-env` devDependency * Use `babel-plugin-import-rename` instead of custom plugin * Improve `.babelrc` style and add comments * Update README.md * Change file extension to `.mjs` Comply with Node.js spec. Use extensionless package:main. * Enforce only ESM compatible imports * Dedupe packages * Add `unicodeMake.js` to overrides:excludedFiles * Fix .eslintrc merge conflict * Use rollup to bundle ES module * Remove `eslint-plugin-import` * Change build directory to `dist` * Change build directory to `dist` * Change build directory * Move docs from README.md to browser.md * Update update-sri.js * Revert update-sri.js * Revert update-sri.js * Update .eslintrc * Remove SSH key testing
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
{
|
|
"presets": ["flow"],
|
|
"env": {
|
|
// Duplications are inevitable due to strange .babelrc env merging:
|
|
// babel/babel#5276. This can be simplified in Babel 7 using .babelrc.js.
|
|
"production": {
|
|
"presets": [["es2015", {"modules": false, "loose": true}]],
|
|
"plugins": [
|
|
"transform-class-properties",
|
|
"transform-runtime",
|
|
"version-inline",
|
|
],
|
|
},
|
|
"development": {
|
|
"presets": [["es2015", {"modules": false, "loose": true}]],
|
|
"plugins": [
|
|
"transform-class-properties",
|
|
"transform-runtime",
|
|
"version-inline",
|
|
],
|
|
},
|
|
"test": {
|
|
"presets": [["es2015", {"loose": true}]],
|
|
"plugins": [
|
|
"transform-class-properties",
|
|
"transform-runtime",
|
|
"version-inline",
|
|
],
|
|
},
|
|
"esm": {
|
|
"plugins": [
|
|
"transform-class-properties",
|
|
"version-inline",
|
|
],
|
|
},
|
|
},
|
|
}
|