├── test ├── fixtures │ ├── abc.txt │ ├── errors │ │ ├── file.js │ │ ├── entry-point.js │ │ ├── entry-point2.js │ │ ├── case-sensitive.js │ │ ├── require.extensions.js │ │ ├── require-entry-point.js │ │ └── missingFile.js │ ├── watched-file.txt │ ├── subdir │ │ └── watched-file.txt │ ├── items │ │ ├── item (0).js │ │ ├── item (1).js │ │ ├── item (2).js │ │ ├── item (3).js │ │ ├── item (4).js │ │ ├── item (5).js │ │ ├── item (6).js │ │ ├── item (7).js │ │ ├── item (8).js │ │ └── item (9).js │ ├── nodetest │ │ ├── file456.js │ │ ├── file567.js │ │ └── entry.js │ ├── lib │ │ └── complex1.js │ ├── node_modules │ │ ├── complexm │ │ │ ├── step2.js │ │ │ ├── step1.js │ │ │ └── web_modules │ │ │ │ └── m1 │ │ │ │ ├── a.js │ │ │ │ └── index.js │ │ ├── m2 │ │ │ └── b.js │ │ ├── m1 │ │ │ ├── a.js │ │ │ └── b.js │ │ └── m2-loader │ │ │ └── b.js │ ├── a.js │ ├── b.js │ ├── main4.js │ ├── chunks.js │ ├── c.js │ ├── abc.js │ ├── main3.js │ ├── main1.js │ ├── main2.js │ └── complex.js ├── cases │ ├── chunks │ │ ├── parsing │ │ │ ├── empty.js │ │ │ └── require.include.js │ │ ├── runtime │ │ │ ├── empty.js │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── acircular.js │ │ │ ├── acircular2.js │ │ │ ├── duplicate.js │ │ │ └── duplicate2.js │ │ ├── named-chunks │ │ │ └── empty.js │ │ ├── weak-dependencies │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ └── index.js │ │ └── context │ │ │ ├── two.js │ │ │ └── index.js │ ├── resolving │ │ ├── query │ │ │ ├── empty.js │ │ │ └── index.js │ │ ├── context │ │ │ ├── node_modules │ │ │ │ └── subcontent │ │ │ │ │ ├── test.jade │ │ │ │ │ └── index.js │ │ │ ├── loaders │ │ │ │ └── queryloader.js │ │ │ └── index.js │ │ ├── browser-field │ │ │ ├── node_modules │ │ │ │ ├── recursive-file │ │ │ │ │ ├── a.js │ │ │ │ │ ├── b.js │ │ │ │ │ ├── c.js │ │ │ │ │ ├── d.js │ │ │ │ │ └── package.json │ │ │ │ ├── ignoring-module │ │ │ │ │ ├── file.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── new-module │ │ │ │ │ ├── index.js │ │ │ │ │ └── inner.js │ │ │ │ ├── replacing-file1 │ │ │ │ │ ├── file.js │ │ │ │ │ ├── new-file.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── replacing-file2 │ │ │ │ │ ├── file.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── replacing-file3 │ │ │ │ │ ├── file.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── wrong-module.js │ │ │ │ ├── replacing-file4 │ │ │ │ │ ├── dir │ │ │ │ │ │ ├── file.js │ │ │ │ │ │ ├── new-file.js │ │ │ │ │ │ └── index.js │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── recursive-module │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── replacing-module3 │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── replacing-module1 │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── replacing-module2 │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ └── replacing-module4 │ │ │ │ │ ├── index.js │ │ │ │ │ ├── module.js │ │ │ │ │ └── package.json │ │ │ └── errors.js │ │ └── single-file-module │ │ │ ├── node_modules │ │ │ └── subfilemodule.js │ │ │ └── index.js │ ├── loaders │ │ ├── _resources │ │ │ ├── abc.txt │ │ │ ├── included.jade │ │ │ ├── parent.jade │ │ │ ├── template.jade │ │ │ └── script.coffee │ │ ├── async │ │ │ ├── a.js │ │ │ └── loaders │ │ │ │ ├── syncloader.js │ │ │ │ └── asyncloader.js │ │ ├── less-loader │ │ │ ├── less │ │ │ │ ├── folder │ │ │ │ │ ├── url.js │ │ │ │ │ └── import1.less │ │ │ │ └── stylesheet.less │ │ │ ├── node_modules │ │ │ │ └── resources-module │ │ │ │ │ ├── import2.less │ │ │ │ │ └── stylesheet-import2.css │ │ │ └── index.js │ │ ├── query │ │ │ ├── a.js │ │ │ ├── context-query-test │ │ │ │ └── test.js │ │ │ └── loaders │ │ │ │ └── queryloader.js │ │ ├── _css │ │ │ ├── folder │ │ │ │ ├── stylesheet-import3.css │ │ │ │ └── stylesheet-import1.css │ │ │ ├── node_modules │ │ │ │ └── resources-module │ │ │ │ │ ├── import2.less │ │ │ │ │ └── stylesheet-import2.css │ │ │ ├── stylesheet.css │ │ │ └── generateCss.js │ │ ├── module-description-file │ │ │ ├── node_modules │ │ │ │ └── testloader │ │ │ │ │ ├── lib │ │ │ │ │ ├── loader-indirect.js │ │ │ │ │ ├── loader.webpack-loader.js │ │ │ │ │ ├── loader2.web-loader.js │ │ │ │ │ ├── loader.js │ │ │ │ │ └── loader3.loader.js │ │ │ │ │ └── package.json │ │ │ ├── reverseloader.js │ │ │ └── index.js │ │ ├── raw-loader │ │ │ └── index.js │ │ ├── json-loader │ │ │ └── index.js │ │ ├── context │ │ │ └── index.js │ │ ├── jade-loader │ │ │ └── index.js │ │ ├── coffee-loader │ │ │ ├── script.coffee.md │ │ │ └── index.js │ │ ├── css-loader │ │ │ └── index.js │ │ └── val-loader │ │ │ └── index.js │ ├── parsing │ │ ├── inject-free-vars │ │ │ ├── x1.js │ │ │ ├── fail.js │ │ │ └── index.js │ │ ├── bom │ │ │ ├── bomfile.css │ │ │ ├── bomfile.js │ │ │ ├── typeof.js │ │ │ └── index.js │ │ ├── evaluate │ │ │ ├── a.js │ │ │ └── resourceQuery │ │ │ │ ├── returnRQ.js │ │ │ │ └── index.js │ │ ├── chunks │ │ │ ├── file.js │ │ │ └── index.js │ │ ├── extract-amd │ │ │ ├── a.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── templates │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ └── c.js │ │ │ ├── circular.js │ │ │ ├── constructor.js │ │ │ ├── warnings.js │ │ │ └── optional.js │ │ ├── issue-387 │ │ │ └── file.js │ │ ├── renaming │ │ │ └── file.js │ │ ├── local-modules │ │ │ └── dep.js │ │ ├── issue-345 │ │ │ ├── abc │ │ │ │ └── abcTest.js │ │ │ └── index.js │ │ ├── typeof │ │ │ ├── typeof.js │ │ │ └── errorfile.js │ │ ├── context │ │ │ ├── templates │ │ │ │ ├── tmpl.js │ │ │ │ ├── node_modules │ │ │ │ │ └── xyz.js │ │ │ │ ├── subdir │ │ │ │ │ └── tmpl.js │ │ │ │ ├── templateLoader.js │ │ │ │ ├── dump-file.txt │ │ │ │ └── templateLoaderIndirect.js │ │ │ └── warnings.js │ │ ├── extract-require │ │ │ ├── folder │ │ │ │ ├── file1.js │ │ │ │ ├── file2.js │ │ │ │ └── file3.js │ │ │ ├── constructor.js │ │ │ └── errors.js │ │ ├── browserify │ │ │ └── warnings.js │ │ ├── extract-labeled │ │ │ ├── labeledModuleB.js │ │ │ ├── labeledModuleA.js │ │ │ └── index.js │ │ ├── javascript │ │ │ └── index.js │ │ ├── issue-494 │ │ │ └── index.js │ │ ├── hot-error-handler │ │ │ └── index.js │ │ ├── requirejs │ │ │ └── index.js │ │ ├── var-hiding │ │ │ └── index.js │ │ ├── hot-hash │ │ │ └── index.js │ │ ├── filename │ │ │ └── index.js │ │ └── issue-551 │ │ │ └── index.js │ ├── runtime │ │ ├── module-caching │ │ │ ├── singluar2.js │ │ │ ├── two.js │ │ │ └── singluar.js │ │ ├── chunk-callback-order │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── duplicate.js │ │ │ ├── duplicate2.js │ │ │ └── index.js │ │ ├── error-handling │ │ │ ├── folder │ │ │ │ ├── file1.js │ │ │ │ ├── file2.js │ │ │ │ └── file3.js │ │ │ ├── errors.js │ │ │ └── warnings.js │ │ ├── require-function │ │ │ ├── fail.js │ │ │ └── index.js │ │ ├── circular-dependencies │ │ │ ├── circular.js │ │ │ ├── circular2.js │ │ │ └── index.js │ │ └── missing-module-exception │ │ │ ├── warnings.js │ │ │ └── index.js │ ├── compile │ │ ├── deduplication │ │ │ ├── d.js │ │ │ ├── dedupe1 │ │ │ │ ├── dupdep.js │ │ │ │ └── index.js │ │ │ ├── dedupe2 │ │ │ │ ├── dupdep.js │ │ │ │ └── index.js │ │ │ └── index.js │ │ └── error-hide-stack │ │ │ ├── errors.js │ │ │ ├── index.js │ │ │ └── loader.js │ └── context │ │ ├── ignore-hidden-files │ │ ├── folder │ │ │ └── .file.js │ │ └── index.js │ │ ├── issue-801 │ │ ├── index.js │ │ └── folder │ │ │ └── file.js │ │ └── issue-524 │ │ └── index.js ├── browsertest │ ├── lib │ │ ├── two.js │ │ ├── testRequireMain.js │ │ ├── stylesheet.css │ │ ├── stylesheet.less │ │ └── index.js │ ├── node_modules │ │ ├── subcontent │ │ │ ├── test.jade │ │ │ └── index.js │ │ ├── subcontent2 │ │ │ └── file.js │ │ ├── library2 │ │ │ ├── lib │ │ │ │ ├── extra.js │ │ │ │ ├── extra2.js │ │ │ │ └── test.js │ │ │ ├── package.json │ │ │ └── node_modules │ │ │ │ ├── submodule1 │ │ │ │ └── index.js │ │ │ │ ├── submodule3 │ │ │ │ └── index.js │ │ │ │ └── submodule2 │ │ │ │ └── index.js │ │ ├── library1 │ │ │ ├── lib │ │ │ │ ├── comp.js │ │ │ │ └── component.js │ │ │ └── node_modules │ │ │ │ ├── submodule1 │ │ │ │ └── index.js │ │ │ │ └── submodule2 │ │ │ │ └── index.js │ │ ├── submodule3 │ │ │ └── index.js │ │ ├── extra.loader.js │ │ └── library2b.js │ ├── web_modules │ │ └── subcontent │ │ │ └── index.js │ ├── package.json │ └── img │ │ ├── fail.png │ │ └── image.png ├── configCases │ ├── extract-text │ │ └── issue-14 │ │ │ ├── base.css │ │ │ ├── styleA.css │ │ │ ├── styleB.css │ │ │ ├── webpack.config.js │ │ │ └── index.js │ ├── async-commons-chunk │ │ ├── duplicate │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── e.js │ │ │ └── webpack.config.js │ │ ├── nested │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ │ └── simple │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ ├── context-replacement │ │ ├── b │ │ │ ├── only-this.js │ │ │ ├── error.js │ │ │ ├── warnings.js │ │ │ ├── index.js │ │ │ └── webpack.config.js │ │ └── a │ │ │ ├── new-context │ │ │ └── node_modules │ │ │ │ ├── replaced.js │ │ │ │ └── error.js │ │ │ ├── warnings.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ ├── dedupe │ │ └── in-chunk │ │ │ ├── a │ │ │ └── dedupe.js │ │ │ ├── b │ │ │ └── dedupe.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ ├── plugins │ │ ├── provide-plugin │ │ │ ├── aaa.js │ │ │ ├── bbbccc.js │ │ │ ├── env.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ │ ├── new-watching-plugin │ │ │ ├── index.js │ │ │ ├── warnings.js │ │ │ └── webpack.config.js │ │ ├── watch-ignore-plugin │ │ │ ├── index.js │ │ │ └── webpack.config.js │ │ ├── environment-plugin │ │ │ ├── warnings.js │ │ │ ├── errors.js │ │ │ ├── index.js │ │ │ └── webpack.config.js │ │ └── define-plugin │ │ │ └── webpack.config.js │ ├── library │ │ ├── a │ │ │ ├── index.js │ │ │ └── webpack.config.js │ │ └── b │ │ │ ├── webpack.config.js │ │ │ └── index.js │ ├── errors │ │ └── entry-not-found │ │ │ ├── webpack.config.js │ │ │ └── errors.js │ ├── hash-length │ │ └── output-filename │ │ │ ├── chunk.js │ │ │ ├── index.js │ │ │ ├── test.config.js │ │ │ └── webpack.config.js │ ├── parsing │ │ ├── require.main │ │ │ ├── webpack.config.js │ │ │ └── index.js │ │ ├── issue-336 │ │ │ ├── node_modules │ │ │ │ └── aaa.js │ │ │ ├── index.js │ │ │ └── webpack.config.js │ │ ├── relative-filedirname │ │ │ ├── dir │ │ │ │ └── file.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ │ └── extended-api │ │ │ ├── webpack.config.js │ │ │ └── index.js │ ├── simple │ │ ├── empty-config │ │ │ ├── webpack.config.js │ │ │ └── index.js │ │ └── multi-compiler │ │ │ ├── index.js │ │ │ └── webpack.config.js │ ├── target │ │ ├── web │ │ │ ├── node_modules │ │ │ │ └── process │ │ │ │ │ ├── in.js │ │ │ │ │ └── index.js │ │ │ └── webpack.config.js │ │ ├── buffer │ │ │ ├── warnings.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ │ ├── buffer-backward │ │ │ ├── warnings.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ │ └── buffer-backward2 │ │ │ ├── webpack.config.js │ │ │ └── index.js │ ├── source-map │ │ ├── sources-array-production │ │ │ ├── test.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ │ ├── exclude-chunks-source-map │ │ │ ├── test.js │ │ │ ├── vendors.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ │ ├── sources-array-production-cheap-map │ │ │ ├── test.js │ │ │ ├── index.js │ │ │ └── webpack.config.js │ │ └── relative-source-map-path │ │ │ ├── test.js │ │ │ ├── webpack.config.js │ │ │ └── index.js │ └── externals │ │ ├── optional-externals-root │ │ ├── webpack.config.js │ │ └── index.js │ │ ├── optional-externals-umd │ │ ├── webpack.config.js │ │ └── index.js │ │ ├── optional-externals-cjs │ │ ├── webpack.config.js │ │ └── index.js │ │ ├── optional-externals-umd2 │ │ ├── webpack.config.js │ │ └── index.js │ │ └── optional-externals-umd2-mixed │ │ ├── webpack.config.js │ │ └── index.js ├── hotPlayground │ ├── .gitignore │ ├── html.js │ ├── index.html │ ├── applyStyle2.js │ ├── element.js │ ├── style2.js │ ├── style.js │ ├── element-dependency.js │ ├── webpack.config.js │ └── addStyle.js └── Template.test.js ├── web_modules └── node-libs-browser.js ├── examples ├── loader │ ├── file.js │ ├── build.js │ ├── test.json │ ├── loader.js │ ├── webpack.config.js │ ├── enhanced-require.config.js │ ├── example.js │ └── template.md ├── multiple-commons-chunks │ ├── modules │ │ ├── a-b.js │ │ ├── a-c.js │ │ ├── b-c.js │ │ ├── a-b-c.js │ │ └── admin.js │ ├── common.js │ ├── adminPageA.js │ ├── adminPageB.js │ ├── adminPageC.js │ ├── build.js │ ├── pageA.js │ ├── pageB.js │ ├── pageC.js │ ├── pageA.html │ ├── adminPageA.html │ └── webpack.config.js ├── agressive-merging │ ├── a.js │ ├── b.js │ ├── build.js │ ├── pageA.js │ ├── pageB.js │ ├── pageC.js │ ├── webpack.config.js │ └── template.md ├── code-splitting │ ├── node_modules │ │ ├── a.js │ │ ├── b.js │ │ ├── c.js │ │ └── d.js │ ├── build.js │ └── example.js ├── commonjs │ ├── build.js │ ├── example.js │ ├── increment.js │ └── math.js ├── css-bundle │ ├── example.js │ ├── build.js │ ├── style.css │ ├── image.png │ ├── webpack.config.js │ └── template.md ├── dedupe │ ├── build.js │ ├── a │ │ ├── x.js │ │ ├── y.js │ │ └── index.js │ ├── b │ │ ├── x.js │ │ ├── y.js │ │ └── index.js │ ├── z.js │ ├── example.js │ └── webpack.config.js ├── extra-async-chunk │ ├── a.js │ ├── b.js │ ├── c.js │ ├── d.js │ ├── build.js │ ├── example.js │ └── webpack.config.js ├── mixed │ ├── build.js │ ├── webpack.config.js │ ├── commonjs.js │ ├── labeled.js │ ├── amd.js │ └── example.js ├── move-to-parent │ ├── a.js │ ├── b.js │ ├── c.js │ ├── d.js │ ├── build.js │ └── page.js ├── named-chunks │ ├── node_modules │ │ ├── a.js │ │ ├── b.js │ │ ├── c.js │ │ └── d.js │ ├── build.js │ ├── template.md │ └── example.js ├── coffee-script │ ├── build.js │ ├── example.js │ ├── cup2.coffee │ ├── cup1.coffee │ ├── webpack.config.js │ └── template.md ├── component │ ├── build.js │ ├── my-components │ │ └── b-component │ │ │ ├── main.js │ │ │ └── component.json │ ├── components │ │ ├── webpack-a-component │ │ │ ├── index.js │ │ │ ├── style.css │ │ │ ├── image.png │ │ │ └── component.json │ │ └── webpack-c-component │ │ │ ├── main.js │ │ │ └── component.json │ ├── example.js │ ├── webpack.config.js │ └── component.json ├── externals │ ├── build.js │ ├── example.js │ └── webpack.config.js ├── web-worker │ ├── build.js │ ├── webpack.config.js │ ├── worker.js │ ├── example.js │ └── template.md ├── extra-async-chunk-advanced │ ├── a.js │ ├── b.js │ ├── c.js │ ├── d.js │ ├── e.js │ ├── f.js │ ├── g.js │ ├── build.js │ ├── example.js │ ├── template.md │ └── webpack.config.js ├── i18n │ ├── de.json │ ├── build.js │ ├── example.js │ └── webpack.config.js ├── labeled-modules │ ├── build.js │ ├── example.js │ ├── increment.js │ ├── webpack.config.js │ ├── math.js │ └── template.md ├── multi-compiler │ ├── mobile-stuff.js │ ├── build.js │ ├── example.js │ ├── template.md │ └── webpack.config.js ├── multi-part-library │ ├── alpha.js │ ├── beta.js │ ├── build.js │ └── webpack.config.js ├── require.context │ ├── build.js │ ├── templates │ │ ├── a.js │ │ ├── b.js │ │ └── c.js │ ├── example.js │ └── template.md ├── require.resolve │ ├── a.js │ ├── build.js │ ├── example.js │ └── template.md ├── code-splitted-dedupe │ ├── build.js │ ├── webpack.config.js │ ├── example.js │ └── template.md ├── multiple-entry-points │ ├── common.js │ ├── build.js │ ├── shared.js │ ├── pageA.js │ ├── pageB.js │ ├── pageA.html │ ├── pageAB.html │ └── webpack.config.js ├── code-splitted-css-bundle │ ├── build.js │ ├── chunk.js │ ├── style.css │ ├── example.js │ ├── style2.css │ ├── image.png │ ├── image2.png │ ├── webpack.config.js │ └── template.md ├── code-splitting-bundle-loader │ ├── build.js │ ├── file.js │ └── example.js ├── code-splitted-require.context-amd │ ├── build.js │ ├── example.js │ └── template.md ├── code-splitted-require.context │ ├── build.js │ ├── example.js │ └── template.md ├── multiple-entry-points-commons-chunk-css-bundle │ ├── c.js │ ├── a.js │ ├── b.js │ ├── style.css │ ├── styleA.css │ ├── styleB.css │ ├── build.js │ ├── styleC.css │ ├── image.png │ ├── imageA.png │ ├── imageB.png │ ├── imageC.png │ └── webpack.config.js ├── hybrid-routing │ ├── build.js │ ├── aPage.js │ ├── bPage.js │ ├── render.js │ ├── aEntry.js │ ├── bEntry.js │ ├── pageA.html │ ├── pageB.html │ └── webpack.config.js └── buildAll.js ├── .editorconfig ├── .gitattributes ├── .npmignore ├── .gitignore ├── .travis.yml ├── lib ├── Source.js ├── MemoryOutputFileSystem.js ├── RawSource.js ├── ConcatSource.js ├── OriginalSource.js ├── SourceMapSource.js ├── optimize │ ├── OccurenceOrderPlugin.js │ └── RemoveEmptyChunksPlugin.js ├── ModuleReason.js ├── OptionsApply.js ├── NullFactory.js ├── dependencies │ ├── NullDependencyTemplate.js │ ├── LoaderDependency.js │ ├── PrefetchDependency.js │ ├── LocalModule.js │ ├── NullDependency.js │ ├── SingleEntryDependency.js │ ├── ContextElementDependency.js │ ├── MultiEntryDependency.js │ ├── RequireEnsureItemDependency.js │ ├── AMDRequireItemDependency.js │ ├── CommonJsRequireDependency.js │ ├── RequireResolveDependency.js │ ├── ModuleDependency.js │ ├── ModuleHotAcceptDependency.js │ ├── RequireIncludeDependencyParserPlugin.js │ ├── ModuleHotDeclineDependency.js │ ├── RequireContextDependency.js │ ├── LabeledExportsDependency.js │ ├── AMDRequireContextDependency.js │ └── RequireResolveContextDependency.js ├── removeAndDo.js ├── node │ ├── NodeTargetPlugin.js │ ├── NodeOutputFileSystem.js │ └── NodeChunkTemplatePlugin.js ├── NewWatchingPlugin.js ├── OldWatchingPlugin.js ├── UnsupportedFeatureWarning.js ├── LoaderTargetPlugin.js ├── Dependency.js ├── EntryModuleNotFoundError.js ├── ModuleNotFoundError.js ├── NoErrorsPlugin.js ├── ExternalsPlugin.js ├── MultiModuleFactory.js ├── AbstractPlugin.js ├── ModuleParserHelpers.js ├── webworker │ └── WebWorkerTemplatePlugin.js ├── EvalDevToolModulePlugin.js ├── web │ └── WebEnvironmentPlugin.js ├── CaseSensitiveModulesWarning.js └── FunctionModulePlugin.js └── appveyor.yml /test/fixtures/abc.txt: -------------------------------------------------------------------------------- 1 | abc -------------------------------------------------------------------------------- /test/fixtures/errors/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/watched-file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web_modules/node-libs-browser.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/parsing/empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/runtime/empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/resolving/query/empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/errors/entry-point.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/errors/entry-point2.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/subdir/watched-file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/loader/file.js: -------------------------------------------------------------------------------- 1 | exports.foo = "bar"; -------------------------------------------------------------------------------- /test/cases/chunks/named-chunks/empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/weak-dependencies/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/weak-dependencies/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/weak-dependencies/c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/weak-dependencies/d.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/loaders/_resources/abc.txt: -------------------------------------------------------------------------------- 1 | abc -------------------------------------------------------------------------------- /test/cases/parsing/inject-free-vars/x1.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/modules/a-b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/modules/a-c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/modules/b-c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/browsertest/lib/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; -------------------------------------------------------------------------------- /test/cases/runtime/module-caching/singluar2.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/agressive-merging/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /examples/agressive-merging/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /examples/code-splitting/node_modules/a.js: -------------------------------------------------------------------------------- 1 | // module a -------------------------------------------------------------------------------- /examples/code-splitting/node_modules/b.js: -------------------------------------------------------------------------------- 1 | // module b -------------------------------------------------------------------------------- /examples/code-splitting/node_modules/c.js: -------------------------------------------------------------------------------- 1 | // module c -------------------------------------------------------------------------------- /examples/code-splitting/node_modules/d.js: -------------------------------------------------------------------------------- 1 | // module d -------------------------------------------------------------------------------- /examples/commonjs/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/css-bundle/example.js: -------------------------------------------------------------------------------- 1 | require("./style.css"); -------------------------------------------------------------------------------- /examples/dedupe/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/extra-async-chunk/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /examples/extra-async-chunk/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /examples/extra-async-chunk/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /examples/extra-async-chunk/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; -------------------------------------------------------------------------------- /examples/loader/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/loader/test.json: -------------------------------------------------------------------------------- 1 | { 2 | "foobar": 1234 3 | } -------------------------------------------------------------------------------- /examples/mixed/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/move-to-parent/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /examples/move-to-parent/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /examples/move-to-parent/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /examples/move-to-parent/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/modules/a-b-c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/modules/admin.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/named-chunks/node_modules/a.js: -------------------------------------------------------------------------------- 1 | // module a -------------------------------------------------------------------------------- /examples/named-chunks/node_modules/b.js: -------------------------------------------------------------------------------- 1 | // module b -------------------------------------------------------------------------------- /examples/named-chunks/node_modules/c.js: -------------------------------------------------------------------------------- 1 | // module c -------------------------------------------------------------------------------- /examples/named-chunks/node_modules/d.js: -------------------------------------------------------------------------------- 1 | // module d -------------------------------------------------------------------------------- /test/cases/chunks/context/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; -------------------------------------------------------------------------------- /test/cases/chunks/runtime/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/cases/loaders/async/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/cases/loaders/less-loader/less/folder/url.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/loaders/query/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/cases/parsing/bom/bomfile.css: -------------------------------------------------------------------------------- 1 | body{color:#abc} -------------------------------------------------------------------------------- /test/cases/parsing/evaluate/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/fixtures/items/item (0).js: -------------------------------------------------------------------------------- 1 | module.exports = 0; -------------------------------------------------------------------------------- /test/fixtures/items/item (1).js: -------------------------------------------------------------------------------- 1 | module.exports = 1; -------------------------------------------------------------------------------- /test/fixtures/items/item (2).js: -------------------------------------------------------------------------------- 1 | module.exports = 2; -------------------------------------------------------------------------------- /test/fixtures/items/item (3).js: -------------------------------------------------------------------------------- 1 | module.exports = 3; -------------------------------------------------------------------------------- /test/fixtures/items/item (4).js: -------------------------------------------------------------------------------- 1 | module.exports = 4; -------------------------------------------------------------------------------- /test/fixtures/items/item (5).js: -------------------------------------------------------------------------------- 1 | module.exports = 5; -------------------------------------------------------------------------------- /test/fixtures/items/item (6).js: -------------------------------------------------------------------------------- 1 | module.exports = 6; -------------------------------------------------------------------------------- /test/fixtures/items/item (7).js: -------------------------------------------------------------------------------- 1 | module.exports = 7; -------------------------------------------------------------------------------- /test/fixtures/items/item (8).js: -------------------------------------------------------------------------------- 1 | module.exports = 8; -------------------------------------------------------------------------------- /test/fixtures/items/item (9).js: -------------------------------------------------------------------------------- 1 | module.exports = 9; -------------------------------------------------------------------------------- /examples/coffee-script/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/component/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/css-bundle/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/dedupe/a/x.js: -------------------------------------------------------------------------------- 1 | module.exports = {"this is": "x"}; -------------------------------------------------------------------------------- /examples/dedupe/b/x.js: -------------------------------------------------------------------------------- 1 | module.exports = {"this is": "x"}; -------------------------------------------------------------------------------- /examples/dedupe/z.js: -------------------------------------------------------------------------------- 1 | module.exports = {"this is": "z"}; -------------------------------------------------------------------------------- /examples/externals/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/named-chunks/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/web-worker/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /test/browsertest/node_modules/subcontent/test.jade: -------------------------------------------------------------------------------- 1 | xyz: abc -------------------------------------------------------------------------------- /test/cases/compile/deduplication/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; -------------------------------------------------------------------------------- /test/cases/loaders/_resources/included.jade: -------------------------------------------------------------------------------- 1 | h1 included -------------------------------------------------------------------------------- /test/cases/parsing/bom/bomfile.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/cases/parsing/chunks/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; -------------------------------------------------------------------------------- /test/cases/parsing/issue-387/file.js: -------------------------------------------------------------------------------- 1 | module.exports = 4321; -------------------------------------------------------------------------------- /test/cases/parsing/renaming/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/fixtures/nodetest/file456.js: -------------------------------------------------------------------------------- 1 | module.exports = 123; -------------------------------------------------------------------------------- /examples/code-splitting/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/extra-async-chunk-advanced/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /examples/extra-async-chunk-advanced/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /examples/extra-async-chunk-advanced/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /examples/extra-async-chunk-advanced/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; -------------------------------------------------------------------------------- /examples/extra-async-chunk-advanced/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; -------------------------------------------------------------------------------- /examples/extra-async-chunk-advanced/f.js: -------------------------------------------------------------------------------- 1 | module.exports = "f"; -------------------------------------------------------------------------------- /examples/extra-async-chunk-advanced/g.js: -------------------------------------------------------------------------------- 1 | module.exports = "g"; -------------------------------------------------------------------------------- /examples/extra-async-chunk/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/i18n/de.json: -------------------------------------------------------------------------------- 1 | { 2 | "Hello World": "Hallo Welt" 3 | } -------------------------------------------------------------------------------- /examples/labeled-modules/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/multi-compiler/mobile-stuff.js: -------------------------------------------------------------------------------- 1 | // mobile only stuff -------------------------------------------------------------------------------- /examples/multi-part-library/alpha.js: -------------------------------------------------------------------------------- 1 | module.exports = "alpha"; -------------------------------------------------------------------------------- /examples/multi-part-library/beta.js: -------------------------------------------------------------------------------- 1 | module.exports = "beta"; -------------------------------------------------------------------------------- /examples/require.context/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/require.resolve/a.js: -------------------------------------------------------------------------------- 1 | module.exports = Math.random(); -------------------------------------------------------------------------------- /examples/require.resolve/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /test/cases/chunks/runtime/b.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./a"); -------------------------------------------------------------------------------- /test/cases/loaders/query/context-query-test/test.js: -------------------------------------------------------------------------------- 1 | test content -------------------------------------------------------------------------------- /test/cases/parsing/local-modules/dep.js: -------------------------------------------------------------------------------- 1 | module.exports = "dep"; -------------------------------------------------------------------------------- /test/cases/runtime/module-caching/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; -------------------------------------------------------------------------------- /test/configCases/extract-text/issue-14/base.css: -------------------------------------------------------------------------------- 1 | body{base:0} -------------------------------------------------------------------------------- /test/fixtures/lib/complex1.js: -------------------------------------------------------------------------------- 1 | module.exports = "lib complex1"; -------------------------------------------------------------------------------- /test/fixtures/nodetest/file567.js: -------------------------------------------------------------------------------- 1 | define({ 2 | a: 1 3 | }); -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*.js] 4 | indent_style=tab 5 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | examples/* eol=lf 3 | bin/* eol=lf -------------------------------------------------------------------------------- /examples/code-splitted-dedupe/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/coffee-script/example.js: -------------------------------------------------------------------------------- 1 | console.log(require("./cup1")); -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/common.js: -------------------------------------------------------------------------------- 1 | module.exports = "Common"; -------------------------------------------------------------------------------- /examples/multiple-entry-points/common.js: -------------------------------------------------------------------------------- 1 | module.exports = "Common"; -------------------------------------------------------------------------------- /test/cases/parsing/bom/typeof.js: -------------------------------------------------------------------------------- 1 | module.exports = typeof require; -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/templates/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/templates/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/templates/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /test/cases/parsing/inject-free-vars/fail.js: -------------------------------------------------------------------------------- 1 | throw new Error("Fail"); -------------------------------------------------------------------------------- /test/cases/parsing/issue-345/abc/abcTest.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/cases/parsing/typeof/typeof.js: -------------------------------------------------------------------------------- 1 | module.exports = typeof require; -------------------------------------------------------------------------------- /test/cases/runtime/chunk-callback-order/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /examples/code-splitted-css-bundle/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/code-splitted-css-bundle/chunk.js: -------------------------------------------------------------------------------- 1 | require("./style2.css"); 2 | -------------------------------------------------------------------------------- /examples/code-splitting-bundle-loader/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/code-splitting-bundle-loader/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "It works"; -------------------------------------------------------------------------------- /examples/component/my-components/b-component/main.js: -------------------------------------------------------------------------------- 1 | module.exports = "B"; -------------------------------------------------------------------------------- /examples/dedupe/a/y.js: -------------------------------------------------------------------------------- 1 | module.exports = {"this is": "y", "but in": "a"}; -------------------------------------------------------------------------------- /examples/dedupe/b/y.js: -------------------------------------------------------------------------------- 1 | module.exports = {"this is": "y", "but in": "b"}; -------------------------------------------------------------------------------- /examples/extra-async-chunk-advanced/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /test/cases/resolving/context/node_modules/subcontent/test.jade: -------------------------------------------------------------------------------- 1 | xyz: abc -------------------------------------------------------------------------------- /test/cases/runtime/module-caching/singluar.js: -------------------------------------------------------------------------------- 1 | module.exports.value = 1; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/duplicate/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/duplicate/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/duplicate/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/duplicate/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/duplicate/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/nested/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/nested/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/nested/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/nested/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/simple/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/simple/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/simple/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /test/configCases/context-replacement/b/only-this.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/configCases/dedupe/in-chunk/a/dedupe.js: -------------------------------------------------------------------------------- 1 | module.exports = {ok: 1}; -------------------------------------------------------------------------------- /test/configCases/dedupe/in-chunk/b/dedupe.js: -------------------------------------------------------------------------------- 1 | module.exports = {ok: 1}; -------------------------------------------------------------------------------- /test/configCases/plugins/provide-plugin/aaa.js: -------------------------------------------------------------------------------- 1 | module.exports = "aaa"; -------------------------------------------------------------------------------- /test/fixtures/node_modules/complexm/step2.js: -------------------------------------------------------------------------------- 1 | module.exports = "Step2"; -------------------------------------------------------------------------------- /test/fixtures/node_modules/m2/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "This is m2/b"; 2 | -------------------------------------------------------------------------------- /examples/code-splitted-require.context-amd/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/code-splitted-require.context/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/css-bundle/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(image.png); 3 | } -------------------------------------------------------------------------------- /test/browsertest/node_modules/subcontent/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "error"; -------------------------------------------------------------------------------- /test/browsertest/node_modules/subcontent2/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "orginal"; -------------------------------------------------------------------------------- /test/browsertest/web_modules/subcontent/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "replaced"; -------------------------------------------------------------------------------- /test/cases/compile/deduplication/dedupe1/dupdep.js: -------------------------------------------------------------------------------- 1 | module.exports = "edupe1"; -------------------------------------------------------------------------------- /test/cases/compile/deduplication/dedupe2/dupdep.js: -------------------------------------------------------------------------------- 1 | module.exports = "edupe2"; -------------------------------------------------------------------------------- /test/cases/context/ignore-hidden-files/folder/.file.js: -------------------------------------------------------------------------------- 1 | module.exports = "fail"; -------------------------------------------------------------------------------- /test/cases/parsing/context/templates/tmpl.js: -------------------------------------------------------------------------------- 1 | module.exports = "test template"; -------------------------------------------------------------------------------- /test/cases/parsing/extract-require/folder/file1.js: -------------------------------------------------------------------------------- 1 | module.exports = "file1"; -------------------------------------------------------------------------------- /test/cases/parsing/extract-require/folder/file2.js: -------------------------------------------------------------------------------- 1 | module.exports = "file2"; -------------------------------------------------------------------------------- /test/cases/parsing/extract-require/folder/file3.js: -------------------------------------------------------------------------------- 1 | module.exports = "file3"; -------------------------------------------------------------------------------- /test/cases/runtime/chunk-callback-order/b.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./a"); -------------------------------------------------------------------------------- /test/cases/runtime/error-handling/folder/file1.js: -------------------------------------------------------------------------------- 1 | module.exports = "file1"; -------------------------------------------------------------------------------- /test/cases/runtime/error-handling/folder/file2.js: -------------------------------------------------------------------------------- 1 | module.exports = "file2"; -------------------------------------------------------------------------------- /test/cases/runtime/error-handling/folder/file3.js: -------------------------------------------------------------------------------- 1 | module.exports = "file3"; -------------------------------------------------------------------------------- /test/cases/runtime/require-function/fail.js: -------------------------------------------------------------------------------- 1 | This file should not load! 2 | }][{ -------------------------------------------------------------------------------- /test/configCases/extract-text/issue-14/styleA.css: -------------------------------------------------------------------------------- 1 | @import "base.css";body{a:1} -------------------------------------------------------------------------------- /test/configCases/extract-text/issue-14/styleB.css: -------------------------------------------------------------------------------- 1 | @import "base.css";body{b:2} -------------------------------------------------------------------------------- /test/configCases/library/a/index.js: -------------------------------------------------------------------------------- 1 | it("should run", function() { 2 | 3 | }); -------------------------------------------------------------------------------- /test/configCases/plugins/provide-plugin/bbbccc.js: -------------------------------------------------------------------------------- 1 | module.exports = "bbbccc"; -------------------------------------------------------------------------------- /test/configCases/plugins/provide-plugin/env.js: -------------------------------------------------------------------------------- 1 | module.exports = "development"; -------------------------------------------------------------------------------- /test/hotPlayground/.gitignore: -------------------------------------------------------------------------------- 1 | *bundle-update.js 2 | bundle.js 3 | records.json -------------------------------------------------------------------------------- /examples/component/components/webpack-a-component/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "A"; -------------------------------------------------------------------------------- /examples/i18n/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); -------------------------------------------------------------------------------- /test/browsertest/lib/testRequireMain.js: -------------------------------------------------------------------------------- 1 | module.exports = require.main === module; -------------------------------------------------------------------------------- /test/browsertest/node_modules/library2/lib/extra.js: -------------------------------------------------------------------------------- 1 | module.exports = "Lib2 extra"; -------------------------------------------------------------------------------- /test/browsertest/node_modules/library2/lib/extra2.js: -------------------------------------------------------------------------------- 1 | module.exports = "Lib2 extra2"; -------------------------------------------------------------------------------- /test/browsertest/node_modules/library2/lib/test.js: -------------------------------------------------------------------------------- 1 | module.exports = "test module"; -------------------------------------------------------------------------------- /test/cases/chunks/parsing/require.include.js: -------------------------------------------------------------------------------- 1 | module.exports = "require.include"; -------------------------------------------------------------------------------- /test/cases/parsing/context/templates/node_modules/xyz.js: -------------------------------------------------------------------------------- 1 | module.exports = "xyz"; -------------------------------------------------------------------------------- /test/configCases/errors/entry-not-found/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/output-filename/chunk.js: -------------------------------------------------------------------------------- 1 | module.exports = "chunk"; 2 | -------------------------------------------------------------------------------- /test/configCases/parsing/require.main/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | }; -------------------------------------------------------------------------------- /test/fixtures/a.js: -------------------------------------------------------------------------------- 1 | module.exports = function a() { 2 | return "This is a"; 3 | }; -------------------------------------------------------------------------------- /test/fixtures/b.js: -------------------------------------------------------------------------------- 1 | module.exports = function b() { 2 | return "This is b"; 3 | }; -------------------------------------------------------------------------------- /test/fixtures/errors/case-sensitive.js: -------------------------------------------------------------------------------- 1 | require("./file"); 2 | require("./FILE"); -------------------------------------------------------------------------------- /test/browsertest/lib/stylesheet.css: -------------------------------------------------------------------------------- 1 | .style-test.css-styles { 2 | background: #3F3; 3 | } -------------------------------------------------------------------------------- /test/browsertest/node_modules/library1/lib/comp.js: -------------------------------------------------------------------------------- 1 | module.exports = "lib1 component"; -------------------------------------------------------------------------------- /test/browsertest/node_modules/library2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "main": "lib/main.js" 3 | } -------------------------------------------------------------------------------- /test/cases/loaders/_resources/parent.jade: -------------------------------------------------------------------------------- 1 | p 2 | block content 3 | include included 4 | -------------------------------------------------------------------------------- /test/cases/parsing/evaluate/resourceQuery/returnRQ.js: -------------------------------------------------------------------------------- 1 | module.exports = __resourceQuery; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/recursive-file/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/recursive-file/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/recursive-file/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/recursive-file/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; -------------------------------------------------------------------------------- /test/cases/resolving/context/node_modules/subcontent/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "error"; -------------------------------------------------------------------------------- /test/configCases/plugins/new-watching-plugin/index.js: -------------------------------------------------------------------------------- 1 | it("should run", function() {}); -------------------------------------------------------------------------------- /test/configCases/simple/empty-config/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | 3 | }; -------------------------------------------------------------------------------- /test/fixtures/errors/require.extensions.js: -------------------------------------------------------------------------------- 1 | require.extensions[".js"] = function() {}; -------------------------------------------------------------------------------- /test/fixtures/main4.js: -------------------------------------------------------------------------------- 1 | var six = 6; 2 | require("bundle!./items/item (" + six + ")"); -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | examples/ 3 | coverage/ 4 | .travis.yml 5 | appveyor.yml 6 | bm.js 7 | -------------------------------------------------------------------------------- /examples/code-splitted-css-bundle/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(image.png); 3 | } 4 | -------------------------------------------------------------------------------- /examples/i18n/example.js: -------------------------------------------------------------------------------- 1 | console.log(__("Hello World")); 2 | console.log(__("Missing Text")); -------------------------------------------------------------------------------- /examples/multi-compiler/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/c.js: -------------------------------------------------------------------------------- 1 | require("./styleC.css"); 2 | -------------------------------------------------------------------------------- /test/browsertest/lib/stylesheet.less: -------------------------------------------------------------------------------- 1 | .style-test.less-styles { 2 | background: #3F3; 3 | } -------------------------------------------------------------------------------- /test/browsertest/node_modules/library1/lib/component.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./comp.js"); -------------------------------------------------------------------------------- /test/cases/parsing/context/templates/subdir/tmpl.js: -------------------------------------------------------------------------------- 1 | module.exports = "subdir test template"; -------------------------------------------------------------------------------- /test/cases/parsing/typeof/errorfile.js: -------------------------------------------------------------------------------- 1 | ))) This results in a syntax error loading this file. -------------------------------------------------------------------------------- /test/configCases/plugins/watch-ignore-plugin/index.js: -------------------------------------------------------------------------------- 1 | it("should run", function() {}); 2 | -------------------------------------------------------------------------------- /test/configCases/target/web/node_modules/process/in.js: -------------------------------------------------------------------------------- 1 | module.exports = "in process"; 2 | -------------------------------------------------------------------------------- /test/configCases/target/web/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: "web" 3 | }; -------------------------------------------------------------------------------- /test/fixtures/node_modules/complexm/step1.js: -------------------------------------------------------------------------------- 1 | module.exports = require("m1/a") + require("m1"); -------------------------------------------------------------------------------- /test/fixtures/node_modules/complexm/web_modules/m1/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "the correct a.js"; -------------------------------------------------------------------------------- /examples/code-splitted-css-bundle/example.js: -------------------------------------------------------------------------------- 1 | require("./style.css"); 2 | require(["./chunk"]); 3 | -------------------------------------------------------------------------------- /examples/code-splitted-css-bundle/style2.css: -------------------------------------------------------------------------------- 1 | .xyz { 2 | background: url(image2.png); 3 | } 4 | -------------------------------------------------------------------------------- /examples/coffee-script/cup2.coffee: -------------------------------------------------------------------------------- 1 | console.log "yeah coffee-script" 2 | 3 | module.exports = 42 -------------------------------------------------------------------------------- /examples/hybrid-routing/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); 3 | -------------------------------------------------------------------------------- /examples/labeled-modules/example.js: -------------------------------------------------------------------------------- 1 | require: "./increment"; 2 | var a = 1; 3 | increment(a); // 2 -------------------------------------------------------------------------------- /examples/multi-part-library/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); -------------------------------------------------------------------------------- /test/browsertest/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-webkit-tests", 3 | "main": "tests.html" 4 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/ignoring-module/file.js: -------------------------------------------------------------------------------- 1 | throw new Error("Fail"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/new-module/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "new-module"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file1/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "file"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file2/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "file"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file3/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "file"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/wrong-module.js: -------------------------------------------------------------------------------- 1 | module.exports = "wrong-module"; -------------------------------------------------------------------------------- /test/configCases/context-replacement/a/new-context/node_modules/replaced.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/configCases/parsing/issue-336/node_modules/aaa.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | test: "test" 3 | }; -------------------------------------------------------------------------------- /test/fixtures/chunks.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./a"], function(require) { 2 | require("./b"); 3 | }); -------------------------------------------------------------------------------- /examples/agressive-merging/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); 3 | -------------------------------------------------------------------------------- /examples/commonjs/example.js: -------------------------------------------------------------------------------- 1 | var inc = require('./increment').increment; 2 | var a = 1; 3 | inc(a); // 2 -------------------------------------------------------------------------------- /examples/hybrid-routing/aPage.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return "This is page A."; 3 | }; -------------------------------------------------------------------------------- /examples/hybrid-routing/bPage.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return "This is page B."; 3 | }; -------------------------------------------------------------------------------- /examples/hybrid-routing/render.js: -------------------------------------------------------------------------------- 1 | module.exports = function(page) { 2 | console.log(page()); 3 | }; -------------------------------------------------------------------------------- /test/browsertest/node_modules/library1/node_modules/submodule1/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "submodule1"; -------------------------------------------------------------------------------- /test/browsertest/node_modules/library2/node_modules/submodule1/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "submodule1"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/new-module/inner.js: -------------------------------------------------------------------------------- 1 | module.exports = "new-module/inner"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file1/new-file.js: -------------------------------------------------------------------------------- 1 | module.exports = "new-file"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file4/dir/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "file"; -------------------------------------------------------------------------------- /test/cases/resolving/single-file-module/node_modules/subfilemodule.js: -------------------------------------------------------------------------------- 1 | module.exports = "subfilemodule"; -------------------------------------------------------------------------------- /test/configCases/target/web/node_modules/process/index.js: -------------------------------------------------------------------------------- 1 | throw new Error("Should not be loaded"); 2 | -------------------------------------------------------------------------------- /test/fixtures/c.js: -------------------------------------------------------------------------------- 1 | module.exports = function b() { 2 | require("./a"); 3 | return "This is c"; 4 | }; -------------------------------------------------------------------------------- /test/fixtures/node_modules/m1/a.js: -------------------------------------------------------------------------------- 1 | module.exports = function a() { 2 | return "This is m1/a"; 3 | }; -------------------------------------------------------------------------------- /test/fixtures/node_modules/m1/b.js: -------------------------------------------------------------------------------- 1 | module.exports = function a() { 2 | return "This is m1/b"; 3 | }; -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /test/js 3 | /test/browsertest/js 4 | /examples/*/js 5 | /coverage 6 | .DS_Store -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/adminPageA.js: -------------------------------------------------------------------------------- 1 | require("./modules/a-b-c"); 2 | require("./modules/admin"); -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/adminPageB.js: -------------------------------------------------------------------------------- 1 | require("./modules/a-b-c"); 2 | require("./modules/admin"); -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/adminPageC.js: -------------------------------------------------------------------------------- 1 | require("./modules/a-b-c"); 2 | require("./modules/admin"); -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); 3 | -------------------------------------------------------------------------------- /examples/multiple-entry-points/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); 3 | -------------------------------------------------------------------------------- /test/cases/loaders/_css/folder/stylesheet-import3.css: -------------------------------------------------------------------------------- 1 | .rule-import2 { 2 | background: red !important; 3 | } -------------------------------------------------------------------------------- /test/cases/parsing/browserify/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/pre-built/], 3 | [/pre-built/] 4 | ]; -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/circular.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | module.exports = require("./circular"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file1/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./file"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file2/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./file"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file3/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./file"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file4/dir/new-file.js: -------------------------------------------------------------------------------- 1 | module.exports = "new-file"; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file4/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./dir"); -------------------------------------------------------------------------------- /test/configCases/context-replacement/b/error.js: -------------------------------------------------------------------------------- 1 | This 2 | should 3 | result 4 | in 5 | an 6 | error 7 | }]) -------------------------------------------------------------------------------- /test/configCases/simple/empty-config/index.js: -------------------------------------------------------------------------------- 1 | it("should compile and run the test", function() { 2 | 3 | }); -------------------------------------------------------------------------------- /test/configCases/simple/multi-compiler/index.js: -------------------------------------------------------------------------------- 1 | it("should run a multi compiler", function() { 2 | 3 | }); -------------------------------------------------------------------------------- /test/configCases/source-map/sources-array-production/test.js: -------------------------------------------------------------------------------- 1 | var foo = {}; 2 | 3 | module.exports = foo; -------------------------------------------------------------------------------- /test/fixtures/node_modules/complexm/web_modules/m1/index.js: -------------------------------------------------------------------------------- 1 | module.exports = " :) " + require("m2/b.js"); -------------------------------------------------------------------------------- /examples/agressive-merging/pageA.js: -------------------------------------------------------------------------------- 1 | require(["./common"], function(common) { 2 | common(require("./a")); 3 | }); -------------------------------------------------------------------------------- /examples/agressive-merging/pageB.js: -------------------------------------------------------------------------------- 1 | require(["./common"], function(common) { 2 | common(require("./b")); 3 | }); -------------------------------------------------------------------------------- /examples/agressive-merging/pageC.js: -------------------------------------------------------------------------------- 1 | require(["./a"], function(a) { 2 | console.log(a + require("./b")); 3 | }); -------------------------------------------------------------------------------- /examples/css-bundle/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/webpack/master/examples/css-bundle/image.png -------------------------------------------------------------------------------- /examples/dedupe/example.js: -------------------------------------------------------------------------------- 1 | var a = require("./a"); 2 | var b = require("./b"); 3 | a.x !== b.x; 4 | a.y !== b.y; -------------------------------------------------------------------------------- /test/browsertest/img/fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/webpack/master/test/browsertest/img/fail.png -------------------------------------------------------------------------------- /test/browsertest/node_modules/submodule3/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return "submodule3"; 3 | }; -------------------------------------------------------------------------------- /test/cases/loaders/async/loaders/syncloader.js: -------------------------------------------------------------------------------- 1 | module.exports = function(content) { 2 | return content; 3 | }; -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/constructor.js: -------------------------------------------------------------------------------- 1 | module.exports = function(value) { 2 | this.value = value; 3 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/recursive-module/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("new-module"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file4/dir/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./file"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-module3/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("new-module"); -------------------------------------------------------------------------------- /test/configCases/source-map/exclude-chunks-source-map/test.js: -------------------------------------------------------------------------------- 1 | var foo = {}; 2 | 3 | module.exports = foo; 4 | -------------------------------------------------------------------------------- /test/configCases/source-map/exclude-chunks-source-map/vendors.js: -------------------------------------------------------------------------------- 1 | var bar = {}; 2 | 3 | module.exports = bar; 4 | -------------------------------------------------------------------------------- /test/configCases/target/buffer/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Cannot resolve module 'buffer'/], 3 | ]; 4 | -------------------------------------------------------------------------------- /test/fixtures/abc.js: -------------------------------------------------------------------------------- 1 | exports.a = require("./a"); 2 | exports.b = require("./b"); 3 | exports.c = require("./c"); -------------------------------------------------------------------------------- /examples/loader/loader.js: -------------------------------------------------------------------------------- 1 | module.exports = function(content) { 2 | return "exports.answer = 42;\n" + content; 3 | } -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/a.js: -------------------------------------------------------------------------------- 1 | require("./style.css"); 2 | require("./styleA.css"); 3 | -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/b.js: -------------------------------------------------------------------------------- 1 | require("./style.css"); 2 | require("./styleB.css"); 3 | -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(image.png); 3 | } 4 | -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/styleA.css: -------------------------------------------------------------------------------- 1 | .a { 2 | background: url(imageA.png); 3 | } 4 | -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/styleB.css: -------------------------------------------------------------------------------- 1 | .b { 2 | background: url(imageB.png); 3 | } 4 | -------------------------------------------------------------------------------- /test/browsertest/img/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/webpack/master/test/browsertest/img/image.png -------------------------------------------------------------------------------- /test/cases/compile/error-hide-stack/errors.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Module build failed: Message\nStack/] 3 | ]; -------------------------------------------------------------------------------- /test/cases/parsing/extract-require/constructor.js: -------------------------------------------------------------------------------- 1 | module.exports = function(value) { 2 | this.value = value; 3 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-module1/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("wrong-module"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-module2/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("wrong-module"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-module4/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("wrong-module"); -------------------------------------------------------------------------------- /test/cases/runtime/circular-dependencies/circular.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | module.exports = require("./circular"); -------------------------------------------------------------------------------- /test/cases/runtime/circular-dependencies/circular2.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; 2 | module.exports = require("./circular2"); -------------------------------------------------------------------------------- /test/configCases/plugins/new-watching-plugin/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/no longer necessary/], 3 | ]; 4 | -------------------------------------------------------------------------------- /test/configCases/source-map/sources-array-production-cheap-map/test.js: -------------------------------------------------------------------------------- 1 | var foo = {}; 2 | 3 | module.exports = foo; -------------------------------------------------------------------------------- /examples/dedupe/a/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | x: require("./x"), 3 | y: require("./y"), 4 | z: require("../z") 5 | } -------------------------------------------------------------------------------- /examples/dedupe/b/index.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | x: require("./x"), 3 | y: require("./y"), 4 | z: require("../z") 5 | } -------------------------------------------------------------------------------- /test/cases/loaders/_css/node_modules/resources-module/import2.less: -------------------------------------------------------------------------------- 1 | .less-rule-import2 { 2 | background: lightgreen; 3 | } -------------------------------------------------------------------------------- /test/cases/parsing/context/templates/templateLoader.js: -------------------------------------------------------------------------------- 1 | module.exports = function(name) { 2 | return require(name); 3 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-module4/module.js: -------------------------------------------------------------------------------- 1 | module.exports = "replacing-module4/module"; -------------------------------------------------------------------------------- /test/configCases/context-replacement/a/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Critical dependencies/, /a\/index\.js/] 3 | ]; -------------------------------------------------------------------------------- /test/configCases/context-replacement/b/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Critical dependencies/, /b\/index\.js/] 3 | ]; -------------------------------------------------------------------------------- /test/configCases/errors/entry-not-found/errors.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/^Entry module not found/, /.\/index\.js/] 3 | ]; -------------------------------------------------------------------------------- /test/configCases/library/a/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | output: { 3 | libraryTarget: "this" 4 | } 5 | }; -------------------------------------------------------------------------------- /test/configCases/library/b/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | output: { 3 | libraryTarget: "global" 4 | } 5 | }; -------------------------------------------------------------------------------- /test/configCases/target/buffer-backward/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Cannot resolve module 'buffer'/], 3 | ]; 4 | -------------------------------------------------------------------------------- /test/fixtures/main3.js: -------------------------------------------------------------------------------- 1 | var a = require("./a"); 2 | require.ensure([], function(require) { 3 | require("./c.js"); 4 | }); -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - "0.10" 5 | - "0.12" 6 | env: 7 | - NO_WATCH_TESTS=1 8 | -------------------------------------------------------------------------------- /examples/hybrid-routing/aEntry.js: -------------------------------------------------------------------------------- 1 | // Just show the page "a" 2 | var render = require("./render"); 3 | render(require("./aPage")); -------------------------------------------------------------------------------- /examples/hybrid-routing/bEntry.js: -------------------------------------------------------------------------------- 1 | // Just show the page "b" 2 | var render = require("./render"); 3 | render(require("./bPage")); -------------------------------------------------------------------------------- /examples/move-to-parent/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | global.NO_REASONS = true; 3 | require("../build-common"); 4 | -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); -------------------------------------------------------------------------------- /examples/require.context/templates/a.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return "This text was generated by template A"; 3 | } -------------------------------------------------------------------------------- /examples/require.context/templates/b.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return "This text was generated by template B"; 3 | } -------------------------------------------------------------------------------- /examples/require.context/templates/c.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return "This text was generated by template C"; 3 | } -------------------------------------------------------------------------------- /test/cases/chunks/runtime/acircular.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./acircular2"], function(require) { 2 | require("./acircular2"); 3 | }) -------------------------------------------------------------------------------- /test/cases/chunks/runtime/acircular2.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./acircular"], function(require) { 2 | require("./acircular"); 3 | }) -------------------------------------------------------------------------------- /test/cases/chunks/runtime/duplicate.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./a"], function(require) { 2 | require("./a").should.be.eql("a"); 3 | }) -------------------------------------------------------------------------------- /test/cases/loaders/_css/node_modules/resources-module/stylesheet-import2.css: -------------------------------------------------------------------------------- 1 | .rule-import2 { 2 | background: lightgreen; 3 | } -------------------------------------------------------------------------------- /test/cases/loaders/less-loader/node_modules/resources-module/import2.less: -------------------------------------------------------------------------------- 1 | .less-rule-import2 { 2 | background: lightgreen; 3 | } -------------------------------------------------------------------------------- /test/cases/parsing/context/templates/dump-file.txt: -------------------------------------------------------------------------------- 1 | This is a file! 2 | 3 | with some content 4 | 5 | it should break webpack :) -------------------------------------------------------------------------------- /test/configCases/parsing/relative-filedirname/dir/file.js: -------------------------------------------------------------------------------- 1 | exports.filename = __filename; 2 | exports.dirname = __dirname; 3 | -------------------------------------------------------------------------------- /examples/labeled-modules/increment.js: -------------------------------------------------------------------------------- 1 | require: "./math"; 2 | exports: function increment(val) { 3 | return add(val, 1); 4 | }; -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/pageA.js: -------------------------------------------------------------------------------- 1 | require("./modules/a-b-c"); 2 | require("./modules/a-b"); 3 | require("./modules/a-c"); 4 | -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/pageB.js: -------------------------------------------------------------------------------- 1 | require("./modules/a-b-c"); 2 | require("./modules/a-b"); 3 | require("./modules/b-c"); 4 | -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/pageC.js: -------------------------------------------------------------------------------- 1 | require("./modules/a-b-c"); 2 | require("./modules/b-c"); 3 | require("./modules/a-c"); 4 | -------------------------------------------------------------------------------- /test/browsertest/node_modules/library2/node_modules/submodule3/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return "submodule3"; 3 | }; -------------------------------------------------------------------------------- /test/cases/chunks/runtime/duplicate2.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./b"], function(require) { 2 | require("./b").should.be.eql("a"); 3 | }) -------------------------------------------------------------------------------- /test/cases/loaders/less-loader/node_modules/resources-module/stylesheet-import2.css: -------------------------------------------------------------------------------- 1 | .rule-import2 { 2 | background: lightgreen; 3 | } -------------------------------------------------------------------------------- /test/configCases/context-replacement/a/new-context/node_modules/error.js: -------------------------------------------------------------------------------- 1 | This 2 | should 3 | result 4 | in 5 | an 6 | error 7 | }]) -------------------------------------------------------------------------------- /test/fixtures/node_modules/m2-loader/b.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | "module.exports = 'This is m2-loader/b';"; 3 | } 4 | -------------------------------------------------------------------------------- /examples/commonjs/increment.js: -------------------------------------------------------------------------------- 1 | var add = require('./math').add; 2 | exports.increment = function(val) { 3 | return add(val, 1); 4 | }; -------------------------------------------------------------------------------- /examples/component/components/webpack-c-component/main.js: -------------------------------------------------------------------------------- 1 | module.exports = "C" + require("a-component") + require("webpack-a-component"); -------------------------------------------------------------------------------- /test/browsertest/node_modules/library1/node_modules/submodule2/index.js: -------------------------------------------------------------------------------- 1 | module.exports = (function() { 2 | return "submodule2"; 3 | }()); -------------------------------------------------------------------------------- /test/browsertest/node_modules/library2/node_modules/submodule2/index.js: -------------------------------------------------------------------------------- 1 | module.exports = (function() { 2 | return "submodule2"; 3 | }()); -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Module not found/, /Cannot resolve/, / \.\/b /, /b\.js/] 3 | ]; 4 | -------------------------------------------------------------------------------- /test/cases/runtime/missing-module-exception/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Module not found/, /Cannot resolve/, / \.\/fail /] 3 | ]; -------------------------------------------------------------------------------- /test/fixtures/errors/require-entry-point.js: -------------------------------------------------------------------------------- 1 | require("./require-entry-point"); 2 | require("./entry-point"); 3 | require("./entry-point2"); -------------------------------------------------------------------------------- /examples/code-splitted-css-bundle/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/webpack/master/examples/code-splitted-css-bundle/image.png -------------------------------------------------------------------------------- /examples/code-splitted-css-bundle/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/webpack/master/examples/code-splitted-css-bundle/image2.png -------------------------------------------------------------------------------- /examples/code-splitting-bundle-loader/example.js: -------------------------------------------------------------------------------- 1 | require("bundle!./file.js")(function(fileJsExports) { 2 | console.log(fileJsExports); 3 | }); -------------------------------------------------------------------------------- /examples/component/components/webpack-a-component/style.css: -------------------------------------------------------------------------------- 1 | .a-component { 2 | display: inline; 3 | background: url(image.png) repeat; 4 | } -------------------------------------------------------------------------------- /examples/multi-compiler/example.js: -------------------------------------------------------------------------------- 1 | if(ENV === "mobile") { 2 | require("./mobile-stuff"); 3 | } 4 | console.log("Running " + ENV + " build"); -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/styleC.css: -------------------------------------------------------------------------------- 1 | @import "style.css"; 2 | .c { 3 | background: url(imageC.png); 4 | } 5 | -------------------------------------------------------------------------------- /examples/multiple-entry-points/shared.js: -------------------------------------------------------------------------------- 1 | var common = require("./common"); 2 | module.exports = function(msg) { 3 | console.log(msg); 4 | }; -------------------------------------------------------------------------------- /test/cases/loaders/_css/stylesheet.css: -------------------------------------------------------------------------------- 1 | @import url(folder/stylesheet-import1.css); 2 | 3 | .rule-direct { 4 | background: lightgreen; 5 | } -------------------------------------------------------------------------------- /test/cases/loaders/_resources/template.jade: -------------------------------------------------------------------------------- 1 | extends parent 2 | 3 | block content 4 | = typeof abc === "undefined" ? "self" + self.abc : abc -------------------------------------------------------------------------------- /test/cases/loaders/less-loader/less/stylesheet.less: -------------------------------------------------------------------------------- 1 | @import "folder/import1"; 2 | 3 | .less-rule-direct { 4 | background: lightgreen; 5 | } -------------------------------------------------------------------------------- /test/cases/parsing/extract-labeled/labeledModuleB.js: -------------------------------------------------------------------------------- 1 | exports: var x = "x", y = function() { return "y"; }; 2 | 3 | var z = "z"; 4 | exports: z; -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/recursive-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { 3 | "new-module": "new-module" 4 | } 5 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { 3 | "./file.js": "./new-file.js" 4 | } 5 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { 3 | "./file.js": "new-module" 4 | } 5 | } -------------------------------------------------------------------------------- /test/cases/runtime/chunk-callback-order/duplicate.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./a"], function(require) { 2 | require("./a").should.be.eql("a"); 3 | }) -------------------------------------------------------------------------------- /test/cases/runtime/chunk-callback-order/duplicate2.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./b"], function(require) { 2 | require("./b").should.be.eql("a"); 3 | }) -------------------------------------------------------------------------------- /test/configCases/plugins/environment-plugin/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/(ddd)/, /DDD environment variable is undefined./] 3 | ]; 4 | -------------------------------------------------------------------------------- /examples/loader/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | module: { 3 | loaders: [ 4 | { test: /\.json$/, loader: "json" } 5 | ] 6 | } 7 | } -------------------------------------------------------------------------------- /test/cases/loaders/_resources/script.coffee: -------------------------------------------------------------------------------- 1 | condition = true 2 | obj = 3 | text: "coffee test" 4 | 5 | module.exports = obj.text if condition? -------------------------------------------------------------------------------- /test/cases/loaders/module-description-file/node_modules/testloader/lib/loader-indirect.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./loader.webpack-loader.js"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file3/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { 3 | "./file.js": "new-module/inner" 4 | } 5 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-file4/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { 3 | "./dir/file.js": "./dir/new-file" 4 | } 5 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-module1/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { 3 | "wrong-module": "new-module" 4 | } 5 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-module4/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { 3 | "wrong-module": "./module.js" 4 | } 5 | } -------------------------------------------------------------------------------- /test/configCases/parsing/require.main/index.js: -------------------------------------------------------------------------------- 1 | it("should define require.main", function() { 2 | require.main.should.be.eql(module); 3 | }); 4 | -------------------------------------------------------------------------------- /test/configCases/target/buffer-backward/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: "web", 3 | node: { 4 | buffer: false 5 | } 6 | }; 7 | -------------------------------------------------------------------------------- /test/configCases/target/buffer-backward2/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: "web", 3 | node: { 4 | buffer: true 5 | } 6 | }; 7 | -------------------------------------------------------------------------------- /test/hotPlayground/html.js: -------------------------------------------------------------------------------- 1 | // This file can update, because 'index.js' accept it. 2 | 3 | module.exports = "This text comes from 'html.js'."; -------------------------------------------------------------------------------- /examples/coffee-script/cup1.coffee: -------------------------------------------------------------------------------- 1 | module.exports = 2 | cool: "stuff" 3 | answer: 42 4 | external: require "./cup2.coffee" 5 | again: require "./cup2" -------------------------------------------------------------------------------- /examples/component/example.js: -------------------------------------------------------------------------------- 1 | console.log(require("a-component")); 2 | console.log(require("b-component")); 3 | console.log(require("c-component")); 4 | -------------------------------------------------------------------------------- /examples/externals/example.js: -------------------------------------------------------------------------------- 1 | var add = require("add"); 2 | var subtract = require("subtract"); 3 | 4 | exports.exampleValue = subtract(add(42, 2), 2); -------------------------------------------------------------------------------- /test/browsertest/node_modules/extra.loader.js: -------------------------------------------------------------------------------- 1 | module.exports = function(string) { 2 | this.cacheable(); 3 | return string + " with post loader"; 4 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/ignoring-module/index.js: -------------------------------------------------------------------------------- 1 | exports.module = require("wrong-module"); 2 | exports.file = require("./file"); -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-module2/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { 3 | "wrong-module": "new-module/inner" 4 | } 5 | } -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/replacing-module3/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { 3 | "new-module": "new-module/inner" 4 | } 5 | } -------------------------------------------------------------------------------- /examples/loader/enhanced-require.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | module: { 3 | loaders: [ 4 | { test: /\.json$/, loader: "json" } 5 | ] 6 | } 7 | } -------------------------------------------------------------------------------- /examples/multiple-entry-points/pageA.js: -------------------------------------------------------------------------------- 1 | var common = require("./common"); 2 | require(["./shared"], function(shared) { 3 | shared("This is page A"); 4 | }); -------------------------------------------------------------------------------- /test/cases/compile/deduplication/dedupe1/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../d") + require("./dupdep"); 2 | var ep = "ep"; 3 | require("./dupd" + ep); 4 | -------------------------------------------------------------------------------- /test/cases/compile/deduplication/dedupe2/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require("../d") + require("./dupdep"); 2 | var ep = "ep"; 3 | require("./dupd" + ep); 4 | -------------------------------------------------------------------------------- /test/cases/loaders/module-description-file/reverseloader.js: -------------------------------------------------------------------------------- 1 | module.exports = function(content) { 2 | return content.split("").reverse().join(""); 3 | } 4 | -------------------------------------------------------------------------------- /test/configCases/parsing/relative-filedirname/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | node: { 3 | __filename: true, 4 | __dirname: true 5 | } 6 | }; -------------------------------------------------------------------------------- /test/configCases/target/buffer/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: "web", 3 | node: { 4 | Buffer: true, 5 | buffer: false 6 | } 7 | }; 8 | -------------------------------------------------------------------------------- /examples/dedupe/webpack.config.js: -------------------------------------------------------------------------------- 1 | var webpack = require("../../"); 2 | module.exports = { 3 | plugins: [ 4 | new webpack.optimize.DedupePlugin() 5 | ] 6 | } -------------------------------------------------------------------------------- /examples/move-to-parent/page.js: -------------------------------------------------------------------------------- 1 | require(["./a"]); 2 | require(["./a", "./b"]); 3 | require(["./a", "./b", "./c"]); 4 | require(["./a", "./b", "./c", "./d"]); 5 | -------------------------------------------------------------------------------- /test/cases/parsing/extract-labeled/labeledModuleA.js: -------------------------------------------------------------------------------- 1 | require: "./labeledModuleB"; 2 | 3 | exports: x, y, z; 4 | 5 | exports: function foo(){ return "foo"; }; 6 | -------------------------------------------------------------------------------- /test/cases/resolving/browser-field/node_modules/ignoring-module/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { 3 | "wrong-module": false, 4 | "./file.js": false 5 | } 6 | } -------------------------------------------------------------------------------- /test/cases/runtime/error-handling/errors.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Module not found/, /Cannot resolve/, / \.\/missingModule /, /error-handling\/index.js/] 3 | ]; -------------------------------------------------------------------------------- /test/hotPlayground/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/cases/loaders/module-description-file/node_modules/testloader/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "testloader", 3 | "webpackLoader": "lib/loader.webpack-loader.js" 4 | } -------------------------------------------------------------------------------- /test/cases/parsing/extract-require/errors.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Module not found/, /Cannot resolve/, / \.\/missingModule /, /extract-require\/index.js/] 3 | ]; -------------------------------------------------------------------------------- /test/cases/runtime/error-handling/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Module not found/, /Cannot resolve/, / \.\/missingModule2 /, /error-handling\/index.js/] 3 | ]; -------------------------------------------------------------------------------- /examples/code-splitted-dedupe/webpack.config.js: -------------------------------------------------------------------------------- 1 | var webpack = require("../../"); 2 | module.exports = { 3 | plugins: [ 4 | new webpack.optimize.DedupePlugin() 5 | ] 6 | } -------------------------------------------------------------------------------- /examples/component/components/webpack-a-component/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/webpack/master/examples/component/components/webpack-a-component/image.png -------------------------------------------------------------------------------- /examples/mixed/webpack.config.js: -------------------------------------------------------------------------------- 1 | var webpack = require("../../"); 2 | module.exports = { 3 | plugins: [ 4 | new webpack.dependencies.LabeledModulesPlugin() 5 | ] 6 | } -------------------------------------------------------------------------------- /test/browsertest/node_modules/library2b.js: -------------------------------------------------------------------------------- 1 | describe("library2b", function() { 2 | it("should load this library", function() { 3 | true.should.be.ok; 4 | }); 5 | }); 6 | -------------------------------------------------------------------------------- /test/cases/loaders/raw-loader/index.js: -------------------------------------------------------------------------------- 1 | it("should handle the raw loader correctly", function() { 2 | require("raw!../_resources/abc.txt").should.be.eql("abc"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/parsing/evaluate/resourceQuery/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require((__resourceQuery.substr(1) + "/resourceQuery/returnRQ?XXXQuery").replace(/XXX/g, "resource")); -------------------------------------------------------------------------------- /test/cases/resolving/single-file-module/index.js: -------------------------------------------------------------------------------- 1 | it("should load single file modules", function() { 2 | require("subfilemodule").should.be.eql("subfilemodule"); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/runtime/circular-dependencies/index.js: -------------------------------------------------------------------------------- 1 | it("should load circular dependencies correctly", function() { 2 | require("./circular").should.be.eql(1); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/compile/error-hide-stack/index.js: -------------------------------------------------------------------------------- 1 | it("should hide stack in details", function() { 2 | (function f() { 3 | require("./loader!"); 4 | }).should.throw(); 5 | }); 6 | -------------------------------------------------------------------------------- /test/configCases/parsing/issue-336/index.js: -------------------------------------------------------------------------------- 1 | it("should provide a module to a free var in a var decl", function() { 2 | var x = aaa.test; 3 | x.should.be.eql("test"); 4 | }); -------------------------------------------------------------------------------- /examples/labeled-modules/webpack.config.js: -------------------------------------------------------------------------------- 1 | var webpack = require("../../"); 2 | module.exports = { 3 | plugins: [ 4 | new webpack.dependencies.LabeledModulesPlugin() 5 | ] 6 | } -------------------------------------------------------------------------------- /lib/Source.js: -------------------------------------------------------------------------------- 1 | /* 2 | MIT License http://www.opensource.org/licenses/mit-license.php 3 | Author Tobias Koppers @sokra 4 | */ 5 | module.exports = require("webpack-core/lib/Source"); -------------------------------------------------------------------------------- /test/cases/parsing/javascript/index.js: -------------------------------------------------------------------------------- 1 | it("should parse sparse arrays", function() { // issue #136 2 | [,null].should.have.length(2); 3 | [0,,,0].should.have.length(4); 4 | }); 5 | -------------------------------------------------------------------------------- /test/configCases/simple/multi-compiler/webpack.config.js: -------------------------------------------------------------------------------- 1 | var path = require("path"); 2 | var webpack = require("../../../../"); 3 | 4 | module.exports = [ 5 | { 6 | 7 | } 8 | ]; -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/webpack/master/examples/multiple-entry-points-commons-chunk-css-bundle/image.png -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/imageA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/webpack/master/examples/multiple-entry-points-commons-chunk-css-bundle/imageA.png -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/imageB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/webpack/master/examples/multiple-entry-points-commons-chunk-css-bundle/imageB.png -------------------------------------------------------------------------------- /examples/multiple-entry-points-commons-chunk-css-bundle/imageC.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/functions/webpack/master/examples/multiple-entry-points-commons-chunk-css-bundle/imageC.png -------------------------------------------------------------------------------- /examples/web-worker/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | worker: { 3 | output: { 4 | filename: "hash.worker.js", 5 | chunkFilename: "[id].hash.worker.js" 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /lib/MemoryOutputFileSystem.js: -------------------------------------------------------------------------------- 1 | /* 2 | MIT License http://www.opensource.org/licenses/mit-license.php 3 | Author Tobias Koppers @sokra 4 | */ 5 | module.exports = require("memory-fs"); 6 | -------------------------------------------------------------------------------- /lib/RawSource.js: -------------------------------------------------------------------------------- 1 | /* 2 | MIT License http://www.opensource.org/licenses/mit-license.php 3 | Author Tobias Koppers @sokra 4 | */ 5 | module.exports = require("webpack-core/lib/RawSource"); -------------------------------------------------------------------------------- /test/cases/compile/error-hide-stack/loader.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | var err = new Error("Message"); 3 | err.stack = "Stack"; 4 | err.hideStack = true; 5 | throw err; 6 | }; -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/optional.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; 2 | try { module.exports.a = require("./a"); } catch (e) {}; 3 | try { module.exports.b = require("./b"); } catch (e) {}; 4 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-494/index.js: -------------------------------------------------------------------------------- 1 | it("should replace a free var in a IIFE", function() { 2 | (function(md) { 3 | md.should.be.type("function"); 4 | }(module.deprecate)); 5 | }); -------------------------------------------------------------------------------- /test/hotPlayground/applyStyle2.js: -------------------------------------------------------------------------------- 1 | // This file can update, because it accept itself. 2 | // A dispose handler removes the old