mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
Enable output modules to be used in browser or Node (#1401)
This makes cli.js work again from the Node command line Workaround from https://github.com/webpack/webpack/issues/6522
This commit is contained in:
committed by
Kevin Barabash
parent
59a25fe3d9
commit
32fe81ae40
@@ -57,6 +57,9 @@ function createConfig(target /*: Target */, dev /*: boolean */,
|
||||
library: target.library,
|
||||
libraryTarget: 'umd',
|
||||
libraryExport: 'default',
|
||||
// Enable output modules to be used in browser or Node.
|
||||
// See: https://github.com/webpack/webpack/issues/6522
|
||||
globalObject: "typeof self !== 'undefined' ? self : this",
|
||||
path: path.resolve(__dirname, 'build'),
|
||||
publicPath: dev ? '/' : '',
|
||||
},
|
||||
|
Reference in New Issue
Block a user