Skip to content

Commit

Permalink
Fix external path for React
Browse files Browse the repository at this point in the history
  • Loading branch information
talyssonoc committed Oct 13, 2016
1 parent 52dc2a7 commit dfaca36
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/react-katex.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"), require("katex"));
module.exports = factory(require("react"), require("katex"));
else if(typeof define === 'function' && define.amd)
define("ReactKaTeX", ["React", "katex"], factory);
define("ReactKaTeX", ["react", "katex"], factory);
else if(typeof exports === 'object')
exports["ReactKaTeX"] = factory(require("React"), require("katex"));
exports["ReactKaTeX"] = factory(require("react"), require("katex"));
else
root["ReactKaTeX"] = factory(root["React"], root["katex"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_4__) {
Expand Down
2 changes: 1 addition & 1 deletion dist/react-katex.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-katex",
"version": "1.0.0",
"version": "1.0.1",
"description": "Display math in TeX with KaTeX and ReactJS",
"keywords": [
"react",
Expand Down
7 changes: 6 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ module.exports = {
umdNamedDefine: true
},
externals: {
react: 'React',
react: {
root: 'React',
commonjs: 'react',
commonjs2: 'react',
amd: 'react'
},
katex: 'katex'
},
module: {
Expand Down

0 comments on commit dfaca36

Please sign in to comment.