Git Product home page Git Product logo

Comments (6)

rnarcos avatar rnarcos commented on June 14, 2024

I find this use case to be interesting.

I'm using webpack-virtual-modules to virtualize some of the modules that are "required" so that they won't break the application. One thing that upsets me is that the virtual modules will always take precedence over the physical files.

What I'd like to have is the flexibility to "unsubscribe" the virtual modules in favor of files that are now present my working directory and I think that the removeModule API would be fundamental for it.

Do you see any objections to this implementation, @larixer?

from webpack-virtual-modules.

larixer avatar larixer commented on June 14, 2024

@rnarcos No objections, I would merge it, if tests will pass and the code quality will be okay-ish

from webpack-virtual-modules.

rnarcos avatar rnarcos commented on June 14, 2024

Any way that I can be in closer contact with you (or any other contributor associated to this project) in order to get a clearer vision about environment setup and contribution guide?

from webpack-virtual-modules.

larixer avatar larixer commented on June 14, 2024

@rnarcos As a core team member of Yarn package manager I'm available at a Yarn's discord:
https://discord.com/invite/yarnpkg
You are welcome to direct message me there.

from webpack-virtual-modules.

fringd avatar fringd commented on June 14, 2024

hey i think i'm trying to do the same thing as you... basically i'm replacing a module dynamically as i rebuild. i can REPLACE the fake contents with new fake contents by calling writeModule again... but i can't go back to the original easily...

it seems like

delete compiler.inputFileSystem._virtualFiles[filename];
compiler.inputFileSystem.purge(filename);

is doing the thing that i want?

edit: no it's not.... dang. but i would really like this feature...

from webpack-virtual-modules.

fringd avatar fringd commented on June 14, 2024

as a workaround i'm doing writeModule(filename, fs.readFileSync(filename)) if anybody else is stuck

from webpack-virtual-modules.

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.