mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
Fixing CJS modules and Globals (#920)
* Working CJS modules. * Changing cjs imports to es6.
This commit is contained in:
committed by
Kevin Barabash
parent
c4fed02329
commit
141afa091a
@@ -27,14 +27,7 @@ function serveBrowserified(file, standaloneName) {
|
||||
}
|
||||
|
||||
const options = {
|
||||
transform: [babelify.configure({
|
||||
presets: ["es2015", "flow"],
|
||||
plugins: [
|
||||
"transform-runtime",
|
||||
"transform-class-properties",
|
||||
"add-module-exports",
|
||||
],
|
||||
})],
|
||||
transform: [babelify],
|
||||
};
|
||||
if (standaloneName) {
|
||||
options.standalone = standaloneName;
|
||||
|
Reference in New Issue
Block a user