Giter Site home page Giter Site logo

Comments (4)

gera2ld avatar gera2ld commented on September 26, 2024 1

Maybe an easy way is to simply externalize katex and load it from window.katex. It doesn't matter if you don't use it anyway.
I'll provide a build without any plugins in the future.

from markmap.

gera2ld avatar gera2ld commented on September 26, 2024 1

The CDN path should be https://unpkg.com/[email protected] or https://unpkg.com/[email protected]/dist/browser/index.iife.js. The former is recommended.
I don't use this plugin but I guess var should be markmap.

from markmap.

gera2ld avatar gera2ld commented on September 26, 2024

Sorry I can't help with so little information.
It is more like a bundling issue rather than an issue with this library.
Feel free to open a discussion thread and provide more information there.

from markmap.

nanqic avatar nanqic commented on September 26, 2024

Hello, thank you for your reply.
I'm trying to externalize markmap-lib with importToCDN,

importToCDN({
        modules: [
          autoComplete('react'),
          autoComplete('react-dom'),
          {
            name: "markmap-lib",
            var: 'MarkmapLib',
            path: 'https://unpkg.com/[email protected]/dist/index.js',
            version: "0.15.8"
          },
        ],
      })

but I got error :

index.js:2  Uncaught ReferenceError: exports is not defined
    at index.js:2:23
(anonymous) @ index.js:2
react-dom.production.min.js:121  ReferenceError: MarkmapLib is not defined

index.js is https://unpkg.com/[email protected]/dist/index.js

Looking forward to the arrival of the version without any plugins!

from markmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.