Coder Social home page Coder Social logo

Expose webpack.config.js about webpackbin HOT 3 OPEN

cerebral avatar cerebral commented on July 16, 2024 1
Expose webpack.config.js

from webpackbin.

Comments (3)

christianalfoni avatar christianalfoni commented on July 16, 2024

@ekulabuhov Actually all the different config has own implementation. It might seem that this is a UI only thing, but it is actually related to how Webpack is able to combine your code with loaders on the server. So pretty much every loader needs to be verified, as some of them needs to be loaded into memory and need special options. Like Babel loader even has a hack on it to make it understand the cross filesystem vs in memory file system correctly. Even before looking into that they would also have to be part of Webpackbin package.json dependencies. So there is quite a bit of pre configuring to enable these loaders :)

But please, if you want to experiment and see how far you can take it, please do :)

from webpackbin.

ekulabuhov avatar ekulabuhov commented on July 16, 2024

Thanks! I've opened this before chatting to you on Discord.

I wonder why do you need to load the loaders into memory? Is that connected to Heroku not having persistent FS?

So at the moment whenever a new version of the loader is released you have to update it manually?

Also, on package.json, that NPM manager that you have built in into UI: is it able to load devDependencies or only project dependencies?

from webpackbin.

christianalfoni avatar christianalfoni commented on July 16, 2024
  1. It has to be loaded into memory because the files of your bin runs in memory :) Did we talk about some loaders passing content of file and others path? Anyways, not exactly sure why it works like this, but I get errors when not loading some of them into memory

  2. Yes, I have to install and verify manually. Also meet problems with for example latest TS-loader, due to TS 2.2 or something... though that seems general. It has some new config file that is difficult to point correctly to due to this FS/In memory thing

  3. Currently this just shoves them into dependencies, though does not really matter to the service. This is rather related to when you download the bin :)

I have been experimenting with this for quite some time and I start to realise that the service gives an impression of being exactly like a local environment with a config file :) Though there are many hacks and hoops to make it work. But the service does work :D I hope when it hits enough users that it might get some attention by the webpack team, maybe we can find better ways to handle it

from webpackbin.

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.