Giter Club home page Giter Club logo

Comments (8)

kitsonk avatar kitsonk commented on July 22, 2024

See also dojo/meta#46 and dojo/meta#62

from typings.

agubler avatar agubler commented on July 22, 2024

@kitsonk does the move to UMD typings across our modules resolve this issue?

from typings.

kitsonk avatar kitsonk commented on July 22, 2024

It does for those packages, but wouldn't allow you to do it with Dojo 1 unless we converted to UMD.

from typings.

agubler avatar agubler commented on July 22, 2024

We could and would still use typings/typings for dojo 1

from typings.

kitsonk avatar kitsonk commented on July 22, 2024

We could, but it makes it difficult for people to namespace dojo, dijit, etc. and it doesn't reflecting, typing wise, what the actual code is doing, which would access the typings in a more modular way, exactly like the way Dojo 1 works.

This ticket isn't a priority.

from typings.

schungx avatar schungx commented on July 22, 2024

Think of the poor guys out there who are just trying to whip up a small web app here and there... they don't want to bother with a build tool.

With AMD modules, said guy can just concat up the necessary module files, probably with a simple shell script or a batch file.

With UMD modules, he needs to do a bunch of transformations.

So, use a better loader (one that handles all module formats) instead.

from typings.

kitsonk avatar kitsonk commented on July 22, 2024

@schungx I think you are mis-understanding. We aren't talking about UMD for Dojo 1, we are talking about the UMD definition format for TypeScript, where there is a file for each .js file as part of Dojo 1. When TypeScript acquires these types, they are scoped only to match the module they refer to and don't require a global namespace and would allow us to better model the actual behaviours of the Dojo 1 code.

from typings.

kitsonk avatar kitsonk commented on July 22, 2024

(Also, I should note that it was confusing that the TypeScript team refer to these non global definition files as UMD definition files, but we didn't have control over their choice of name)

from typings.

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.