Learn Webpack Pt. 3: Imports, Exports, & Webpack Modules

Поділитися
Вставка
  • Опубліковано 26 січ 2025

КОМЕНТАРІ • 17

  • @RocoSafreti
    @RocoSafreti 2 роки тому +1

    Great work! Really well explained and set out.

  • @Flame_Beard
    @Flame_Beard 5 років тому +1

    Awesome to know the default behavior without any config!

  • @mohitdas5292
    @mohitdas5292 4 роки тому

    Best series on Webpack!

  • @julienbongars4287
    @julienbongars4287 5 років тому +4

    This is freakin awesome! You should do babel and nextjs next.

  • @jinwookkim8511
    @jinwookkim8511 5 років тому +1

    Such a nice explanation to understand Webpack

  • @shts86
    @shts86 3 роки тому

    what theme do you use for vs code? i like the colors

  • @nickwoodward819
    @nickwoodward819 5 років тому +2

    perhaps i'm confused slightly here (or maybe you come on to it later in the video), but previously you said that we use webpack to avoid the problem of having to manually order our JS files.
    but isn't that solved by using imports and exports, rather than the bundling of JS files into one?

    • @mathematicalninja2756
      @mathematicalninja2756 5 років тому

      I think webpack just 'handles' the dependencies and bundles them. It's upto us to write the dependency.

  • @mikezcooler
    @mikezcooler 5 років тому

    A good and clear explanation. Nice.

  • @soldishero_y
    @soldishero_y 2 роки тому

    Jesus, so much need to know. I'm a student of your web-development course. Just done 2/3 of course. I feel so stupid 🙄, don't understand a lot of stuff

  • @mounssifkoumila3962
    @mounssifkoumila3962 5 років тому

    After i run npm start, the main.js drop an error ( Uncaught SyntaxError: Unexpected token '...' )
    When i checked my main.js file and compared it with yours, found out i have this part of code :
    t=...e;
    instead of this one:
    t=((...e)=>e.map(e=>parseInt(e)))(...e);
    What's the problem exactly? i checked 4 times and even copied the same code from your commit, but when i run npm start it gaves me incompleted code !!!

    • @omerbad99
      @omerbad99 4 роки тому

      a quick google search and the first stackoverflow thread will resolve this issue.... just search for "webpack arrow function in a class unexpected token"

  • @mathematicalninja2756
    @mathematicalninja2756 5 років тому

    Why can't it automatically figure out the dependencies?

    • @mathematicalninja2756
      @mathematicalninja2756 5 років тому

      @Ptmp727 I thought webpack automatically calculates dependencies and when a script can be compiled, it's not hard to find dependencies. It should do that.

  • @jmartecep
    @jmartecep 5 років тому

    Can this logic be applied to jquery, if so how can you apply it?

  • @Luxcium
    @Luxcium 5 років тому

    Just finised the part 2 and now part 3 ... you seem like you hate basebale caps (or forgot it somewhere else before recording your outro LoL)

  • @hintonbradley
    @hintonbradley 5 років тому +2

    A good course, but there was too much reorganizing the application that could have been done before we started. That would have made this lesson go by much quicker. Also, it would be helpful to have starter code one can download from this course. Other than that, keep up the good work.