Git Product home page Git Product logo

Comments (5)

mrjoelkemp avatar mrjoelkemp commented on July 17, 2024

Hey @igmdvc! Thanks for contributing.

When would you want to use the module property instead of what the cjs resolver currently provides? Can you provide an example? Just having a hard time understanding the problem that the module property solves.

from node-filing-cabinet.

igmdvc avatar igmdvc commented on July 17, 2024

Hey @mrjoelkemp,

I am working on a code splitting tool based on node. One of the dependencies is angular, which declares not only main property for ES5 bundles, but also the module one pointing to an ES2015 module bundle. As the bundle I am using is based on ES2015 modules, I would like to choose how to resolve the files from angular or other modules that declares the module property as an entrypoint for es6 files.

Here you have an article that explains the situation:
https://nodesource.com/blog/es-modules-and-node-js-hard-choices/

from node-filing-cabinet.

mrjoelkemp avatar mrjoelkemp commented on July 17, 2024

Sounds great. Would you want to provide a flag to filing-cabinet that turns this mode on? If so, would love to see what the changes would look like in a PR.

from node-filing-cabinet.

igmdvc avatar igmdvc commented on July 17, 2024

For sure, I have some code ready to be added as a PR. Just give me permissions and I will create it

from node-filing-cabinet.

mrjoelkemp avatar mrjoelkemp commented on July 17, 2024

@igmdvc awesome to hear. You can fork the repo and submit a PR. Looking forward to reviewing it.

from node-filing-cabinet.

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.