GithubHelp home page GithubHelp logo

packagemap --> modulemap? about import-maps HOT 5 CLOSED

wicg avatar wicg commented on July 19, 2024
packagemap --> modulemap?

from import-maps.

Comments (5)

justinfagnani avatar justinfagnani commented on July 19, 2024 2

The reason we chose Package Name Map is because the mapping is primarily concerned with being able to resolve the location of a package name. From there we can resolve paths relative to that location. The proposal hinges on adding the concept of a package - a specific named entity that has a path-based location - that doesn't really exist anywhere in JS or the web platform today.

from import-maps.

matthewp avatar matthewp commented on July 19, 2024

There's some discussion in other issues about using this outside of JS modules.

from import-maps.

ljharb avatar ljharb commented on July 19, 2024

Every file is a module; a package is a published directory that might have modules in it.

Bare imports in node, however, always point to a package (or a module within a package).

I’m not sure what the better name is.

from import-maps.

domenic avatar domenic commented on July 19, 2024

Closing per @justinfagnani's excellent explanation. See also https://github.com/domenic/package-name-maps#supplying-out-of-band-metadata-for-each-module for how this is focused specifically on packages, and not on modules.

from import-maps.

vitalets avatar vitalets commented on July 19, 2024

Ok, thanks!

from import-maps.

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.