Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Webpack global function definition, including hot module replacement #1435

Merged
merged 2 commits into from
Jun 17, 2018
Merged

Fix Webpack global function definition, including hot module replacement #1435

merged 2 commits into from
Jun 17, 2018

Conversation

ylemkimon
Copy link
Member

@ylemkimon ylemkimon commented Jun 16, 2018

Changing globalObject to an expression as a workaround in #1401 resulted in codes like typeof self !== 'undefined' ? self : this["webpackHotUpdatekatex"] =, which breaks global function definition such as HMR, due to operator precedence.

Fix global function definition, such as hot module update.
@codecov
Copy link

codecov bot commented Jun 16, 2018

Codecov Report

Merging #1435 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1435   +/-   ##
======================================
  Coverage    82.5%   82.5%           
======================================
  Files          77      77           
  Lines        4390    4390           
  Branches      767     767           
======================================
  Hits         3622    3622           
  Misses        665     665           
  Partials      103     103

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a7682e6...1652f4d. Read the comment docs.

Copy link
Member

@edemaine edemaine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting and fixing this.

@edemaine edemaine merged commit 3f1b13e into KaTeX:master Jun 17, 2018
@ylemkimon ylemkimon deleted the fix-hmr branch July 21, 2018 10:06
@ylemkimon ylemkimon mentioned this pull request Aug 18, 2018
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants