We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const webpack = require('webpack'); const compiler = webpack(options);
compilation: created by the compiler, contain dependency graph algorithm.
resolver make sure file/folder/path exist
module factory takes successfully resolved requests collects source for that file, creates a module object
parser takes a module object, turns into AST and parse. find all dependency statements(require/import etc).
template dataBinding for your modules, creates the code in your bundles.
1. main template 2. module template 3. dependency template
compiler ==options==> compilation -->
--> resolver(make sure entry point exist) == moduleFactory --> modules -->
== Loaders or Rules --> parser |--------------------->|
==> AST statements(requie/import etc)
==> attach to Modules(dependency graph)
==> recursively flow for dependency
inspired by https://www.youtube.com/watch?v=NHI_PhoykVU @reactRally
The text was updated successfully, but these errors were encountered:
No branches or pull requests
7 important tapable instances
compilation:
created by the compiler,
contain dependency graph algorithm.
resolver
make sure file/folder/path exist
module factory
takes successfully resolved requests
collects source for that file,
creates a module object
parser
takes a module object,
turns into AST and parse.
find all dependency statements(require/import etc).
template
dataBinding for your modules,
creates the code in your bundles.
核心思想:
compiler ==options==> compilation -->
--> resolver(make sure entry point exist)
== moduleFactory --> modules -->
== Loaders or Rules --> parser
|--------------------->|
==> AST statements(requie/import etc)
==> attach to Modules(dependency graph)
==> recursively flow for dependency
inspired by https://www.youtube.com/watch?v=NHI_PhoykVU @reactRally
The text was updated successfully, but these errors were encountered: