GithubHelp home page GithubHelp logo

Make all files ES2015 modules about xterm.js HOT 8 CLOSED

parisk avatar parisk commented on May 10, 2024
Make all files ES2015 modules

from xterm.js.

Comments (8)

timotius02 avatar timotius02 commented on May 10, 2024

Have there been any work on this?

from xterm.js.

parisk avatar parisk commented on May 10, 2024

Hi @timotius02, no work yet on this. I guess this will start after the release of v1.0.

Do you have any use cases for this right now?

You can already import xterm.js and its add-ons as CommonJS (Node.js-like) and RequireJS module.

from xterm.js.

timotius02 avatar timotius02 commented on May 10, 2024

Yes I know you can and I'm already doing so. The problem is that the way the project is structured, especially in regards to the addons, require a bit of tinkering. I had hoped I could have just imported the addons separately or easily apply it as some sort of decorator

I'm currently trying to build a React layer on top of xterm to use for Deco IDE.

from xterm.js.

parisk avatar parisk commented on May 10, 2024

Hi @timotius02, so your actual issue is that the xterm add-ons require xterm.js itself to works?

from xterm.js.

Tyriar avatar Tyriar commented on May 10, 2024

@timotius02 would something like this solve your problem? #96

from xterm.js.

parisk avatar parisk commented on May 10, 2024

@timotius02 does the addon loader attached to #125 solve your issue?

from xterm.js.

timotius02 avatar timotius02 commented on May 10, 2024

Yep the Addon Loader looks like it will do, although I ended up making my own fix for it. Will try it out as soon as I can.

from xterm.js.

parisk avatar parisk commented on May 10, 2024

We laid the ground for this in #251 and the first modules have already been extracted. Closing.

from xterm.js.

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.