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: Remove circular dependency #741

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Sep 9, 2021

  1. fix: Remove circular dependency

    When bundling mathjax - you are warned that there is a circular
    dependency:
    
    ```shell
    code: CIRCULAR_DEPENDENCY, message: Circular dependency: node_modules/mathjax-full/js/input/tex/TexParser.js -> node_modules/mathjax-full/js/input/tex/ParseUtil.js -> node_modules/mathjax-full/js/input/tex/TexParser.js
    ```
    
    This can lead to runtime errors as the bundler has to guess which module
    to define first.
    
    This commit removes this circular dependency.
    
    > Note: there are still other circular dependencies in place that should
    also be fixed:
    
    ```shell
    
    1) components/loader.js > components/package.js
    2) input/tex/mathtools/MathtoolsConfiguration.js > input/tex/mathtools/MathtoolsMappings.js > input/tex/mathtools/MathtoolsMethods.js > input/tex/mathtools/MathtoolsUtil.js
    3) input/tex/mathtools/MathtoolsMethods.js > input/tex/mathtools/MathtoolsUtil.js
    4) output/svg.js > output/svg/WrapperFactory.js > output/svg/Wrappers.js > output/svg/Wrapper.js
    
    ```
    edeustace committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    dbc3b42 View commit details
    Browse the repository at this point in the history