├── test ├── fixtures │ ├── abc.txt │ ├── errors │ │ ├── file.js │ │ ├── entry-point.js │ │ ├── no-errors-deprecate.js │ │ ├── case-sensitive.js │ │ └── require.extensions.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 │ ├── 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 │ ├── a.js │ ├── b.js │ ├── main4.js │ ├── chunks.js │ ├── c.js │ └── abc.js ├── statsCases │ ├── simple │ │ └── index.js │ ├── color-enabled │ │ └── index.js │ ├── preset-none │ │ ├── index.js │ │ └── expected.txt │ ├── color-disabled │ │ └── index.js │ ├── preset-errors-only │ │ ├── index.js │ │ └── expected.txt │ ├── preset-none-array │ │ ├── index.js │ │ └── expected.txt │ ├── simple-more-info │ │ └── index.js │ ├── tree-shaking │ │ ├── unknown.js │ │ ├── unknown2.js │ │ ├── a.js │ │ ├── b.js │ │ ├── edge.js │ │ ├── reexport-star-known.js │ │ └── reexport-known.js │ ├── color-enabled-custom │ │ └── index.js │ ├── optimize-chunks │ │ └── modules │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── e.js │ │ │ └── f.js │ ├── preset-minimal-simple │ │ ├── index.js │ │ └── expected.txt │ ├── preset-none-error │ │ ├── expected.txt │ │ └── index.js │ ├── chunks │ │ ├── a.js │ │ ├── b.js │ │ ├── d.js │ │ ├── e.js │ │ ├── c.js │ │ └── index.js │ ├── external │ │ └── index.js │ ├── preset-minimal │ │ ├── expected.txt │ │ ├── a.js │ │ ├── b.js │ │ ├── d.js │ │ ├── e.js │ │ ├── c.js │ │ └── index.js │ ├── preset-mixed-array │ │ └── index.js │ ├── async-commons-chunk │ │ ├── a.js │ │ ├── b.js │ │ └── c.js │ ├── preset-detailed │ │ ├── a.js │ │ ├── b.js │ │ ├── d.js │ │ ├── e.js │ │ ├── c.js │ │ └── index.js │ ├── preset-normal │ │ ├── a.js │ │ ├── b.js │ │ ├── d.js │ │ ├── e.js │ │ ├── c.js │ │ └── index.js │ ├── preset-verbose │ │ ├── a.js │ │ ├── b.js │ │ ├── d.js │ │ ├── e.js │ │ ├── c.js │ │ └── index.js │ ├── define-plugin │ │ └── index.js │ ├── exclude-with-loader │ │ ├── a.txt │ │ └── exclude │ │ │ ├── b.txt │ │ │ └── c.json │ ├── import-weak │ │ └── modules │ │ │ ├── b.js │ │ │ └── a.js │ ├── performance-disabled │ │ ├── b.js │ │ ├── d.js │ │ ├── e.js │ │ ├── c.js │ │ └── index.js │ ├── performance-error │ │ ├── b.js │ │ ├── d.js │ │ ├── e.js │ │ ├── c.js │ │ └── index.js │ ├── performance-no-hints │ │ ├── b.js │ │ ├── d.js │ │ ├── e.js │ │ ├── c.js │ │ └── index.js │ ├── resolve-plugin-context │ │ ├── node_modules │ │ │ ├── xyz │ │ │ │ └── index.js │ │ │ ├── abc │ │ │ │ ├── node_modules │ │ │ │ │ └── xyz │ │ │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ │ └── def │ │ │ │ ├── node_modules │ │ │ │ └── xyz │ │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ └── index.js │ ├── limit-chunk-count-plugin │ │ ├── a.js │ │ ├── b.js │ │ ├── d.js │ │ ├── e.js │ │ └── c.js │ ├── max-modules │ │ ├── a.js │ │ ├── b.js │ │ └── c.js │ ├── preset-normal-performance │ │ ├── b.js │ │ ├── d.js │ │ ├── e.js │ │ └── c.js │ ├── separate-css-bundle │ │ ├── a │ │ │ ├── index.js │ │ │ └── file.css │ │ └── b │ │ │ ├── index.js │ │ │ └── file.css │ ├── async-commons-chunk-all-selected │ │ ├── a.js │ │ ├── b.js │ │ └── c.js │ ├── max-modules-default │ │ ├── a.js │ │ ├── b.js │ │ └── c.js │ ├── named-chunks-plugin │ │ └── modules │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ ├── performance-oversize-limit-error │ │ ├── index.js │ │ └── index2.js │ ├── preset-errors-only-error │ │ └── index.js │ ├── reverse-sort-modules │ │ ├── a.js │ │ ├── c.js │ │ └── b.js │ ├── scope-hoisting-multi │ │ ├── common2.js │ │ ├── vendor.js │ │ ├── common_lazy.js │ │ ├── common.js │ │ ├── common_lazy_shared.js │ │ ├── lazy_shared.js │ │ ├── module_first.js │ │ └── lazy_first.js │ ├── commons-chunk-min-size-0 │ │ └── modules │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── e.js │ │ │ └── f.js │ ├── module-trace-disabled-in-error │ │ └── index.js │ ├── module-trace-enabled-in-error │ │ └── index.js │ ├── named-chunks-plugin-async │ │ ├── modules │ │ │ ├── b.js │ │ │ └── a.js │ │ └── entry.js │ ├── performance-no-async-chunks-shown │ │ ├── b.js │ │ ├── c.js │ │ ├── d.js │ │ ├── e.js │ │ └── index.js │ ├── commons-chunk-min-size-Infinity │ │ └── modules │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── e.js │ │ │ └── f.js │ └── preset-normal-performance-ensure-filter-sourcemaps │ │ ├── b.js │ │ ├── d.js │ │ └── e.js ├── binCases │ ├── watch │ │ ├── multi-config │ │ │ ├── async │ │ │ ├── index.js │ │ │ └── index2.js │ │ ├── single-config │ │ │ └── async │ │ ├── multi-config-watch-opt │ │ │ ├── async │ │ │ ├── index.js │ │ │ └── index2.js │ │ └── single-config-watch-opt │ │ │ └── async │ ├── errors │ │ └── parse │ │ │ └── index.js │ ├── config-name │ │ ├── found-many │ │ │ ├── index3.js │ │ │ ├── index.js │ │ │ └── index2.js │ │ ├── found-one │ │ │ ├── index.js │ │ │ └── index2.js │ │ └── not-found │ │ │ ├── test.opts │ │ │ └── webpack.config.js │ ├── help │ │ └── help-output │ │ │ └── test.opts │ ├── module │ │ └── module-bind │ │ │ ├── file.post │ │ │ └── file.pre │ ├── configFile │ │ └── profile │ │ │ ├── bar.js │ │ │ ├── index.js │ │ │ └── foo.js │ ├── entry │ │ ├── multi-file │ │ │ ├── a.js │ │ │ ├── index.js │ │ │ └── webpack.config.js │ │ ├── named-entry │ │ │ ├── a.js │ │ │ ├── index.js │ │ │ └── webpack.config.js │ │ └── non-hyphenated-args │ │ │ ├── a.js │ │ │ ├── index.js │ │ │ └── webpack.config.js │ ├── stats │ │ ├── none │ │ │ └── index.js │ │ ├── custom-preset │ │ │ └── index.js │ │ ├── multi-config │ │ │ ├── index.js │ │ │ └── index2.js │ │ └── single-config │ │ │ └── index.js │ └── plugins │ │ └── uglifyjsplugin-empty-args │ │ └── index.js ├── cases │ ├── chunks │ │ ├── parsing │ │ │ ├── empty.js │ │ │ └── require.include.js │ │ ├── runtime │ │ │ ├── empty.js │ │ │ ├── a.js │ │ │ └── b.js │ │ ├── named-chunks │ │ │ ├── empty.js │ │ │ ├── empty2.js │ │ │ ├── empty3.js │ │ │ └── empty4.js │ │ ├── weak-dependencies │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ └── d.js │ │ ├── weak-dependencies-context │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ │ ├── context │ │ │ └── two.js │ │ ├── import │ │ │ └── two.js │ │ ├── var-inject-error-handler │ │ │ └── empty.js │ │ ├── context-weak │ │ │ ├── three.js │ │ │ ├── two.js │ │ │ └── dir │ │ │ │ └── four.js │ │ ├── import-context │ │ │ ├── dir │ │ │ │ ├── one.js │ │ │ │ ├── two.js │ │ │ │ └── three.js │ │ │ └── dir2 │ │ │ │ ├── one.js │ │ │ │ ├── two.js │ │ │ │ └── three.js │ │ ├── inline-options │ │ │ ├── dir1 │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ ├── c.js │ │ │ │ └── d.js │ │ │ ├── dir10 │ │ │ │ └── a.js │ │ │ ├── dir11 │ │ │ │ └── a.js │ │ │ ├── dir2 │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ ├── c.js │ │ │ │ └── d.js │ │ │ ├── dir3 │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ ├── c.js │ │ │ │ └── d.js │ │ │ ├── dir4 │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ ├── c.js │ │ │ │ └── d.js │ │ │ ├── dir5 │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ ├── c.js │ │ │ │ └── d.js │ │ │ ├── dir6 │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ ├── c.js │ │ │ │ └── d.js │ │ │ ├── dir7 │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ ├── c.js │ │ │ │ └── d.js │ │ │ ├── dir8 │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ └── c.js │ │ │ └── dir9 │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ └── c.js │ │ └── issue-2443 │ │ │ └── dir │ │ │ ├── one │ │ │ └── file.js │ │ │ ├── two │ │ │ └── file.js │ │ │ └── three │ │ │ └── file.js │ ├── errors │ │ ├── case-sensistive │ │ │ ├── a.js │ │ │ └── b │ │ │ │ └── file.js │ │ └── loader-error-warning │ │ │ └── a.js │ ├── nonce │ │ └── set-nonce │ │ │ └── empty.js │ ├── parsing │ │ ├── requirejs │ │ │ └── file.js │ │ ├── harmony-info │ │ │ └── commonjs.js │ │ ├── inject-free-vars │ │ │ ├── x1.js │ │ │ └── fail.js │ │ ├── issue-4596 │ │ │ └── module.js │ │ ├── bom │ │ │ ├── bomfile.css │ │ │ ├── bomfile.js │ │ │ └── typeof.js │ │ ├── evaluate │ │ │ ├── a.js │ │ │ └── resourceQuery │ │ │ │ └── returnRQ.js │ │ ├── hot-api │ │ │ ├── a.js │ │ │ └── b.js │ │ ├── chunks │ │ │ └── file.js │ │ ├── class │ │ │ └── a.js │ │ ├── extract-amd │ │ │ ├── a.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── templates │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ └── c.js │ │ │ ├── circular.js │ │ │ └── constructor.js │ │ ├── issue-3769 │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── a.js │ │ │ ├── imported.js │ │ │ └── cjs.js │ │ ├── issue-387 │ │ │ └── file.js │ │ ├── issue-4357 │ │ │ ├── b.js │ │ │ └── a.js │ │ ├── renaming │ │ │ └── file.js │ │ ├── harmony-commonjs │ │ │ ├── d.js │ │ │ ├── c.js │ │ │ ├── c2.js │ │ │ ├── e.js │ │ │ ├── b.js │ │ │ ├── reexport.js │ │ │ └── a.js │ │ ├── harmony-edge-cases │ │ │ ├── c.js │ │ │ └── d.js │ │ ├── issue-3964 │ │ │ ├── x.js │ │ │ └── module.js │ │ ├── local-modules │ │ │ └── dep.js │ │ ├── es6.nominimize │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── async.js │ │ │ ├── array.js │ │ │ └── object.js │ │ ├── harmony │ │ │ └── node_modules │ │ │ │ ├── def.js │ │ │ │ ├── abc_c.js │ │ │ │ └── reexport2.js │ │ ├── issue-2050 │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ └── d.js │ │ ├── issue-2084 │ │ │ ├── file.js │ │ │ └── load.js │ │ ├── issue-3273 │ │ │ └── file.js │ │ ├── issue-345 │ │ │ └── abc │ │ │ │ └── abcTest.js │ │ ├── issue-4179 │ │ │ └── module.js │ │ ├── issue-4870 │ │ │ └── file.js │ │ ├── typeof │ │ │ ├── typeof.js │ │ │ └── errorfile.js │ │ ├── harmony-commonjs-mix │ │ │ └── module.js │ │ ├── harmony-duplicate-export │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── reexport.js │ │ │ ├── 1.js │ │ │ ├── 2.js │ │ │ ├── 3.js │ │ │ ├── 4.js │ │ │ └── 5.js │ │ ├── issue-2618 │ │ │ └── module2.js │ │ ├── context │ │ │ └── templates │ │ │ │ ├── tmpl.js │ │ │ │ ├── node_modules │ │ │ │ └── xyz.js │ │ │ │ └── subdir │ │ │ │ └── tmpl.js │ │ ├── extract-require │ │ │ ├── folder │ │ │ │ ├── file1.js │ │ │ │ ├── file2.js │ │ │ │ └── file3.js │ │ │ └── constructor.js │ │ ├── template-string │ │ │ ├── abc │ │ │ │ └── abcTest.js │ │ │ └── sync │ │ │ │ └── syncTest.js │ │ ├── harmony-export-precedence │ │ │ └── d.js │ │ ├── issue-2522 │ │ │ └── module.js │ │ ├── resolve-weak-context │ │ │ └── dir │ │ │ │ └── file.js │ │ ├── issue-2528 │ │ │ ├── helperA.js │ │ │ └── helperB.js │ │ ├── issue-2622 │ │ │ └── module.js │ │ ├── issue-758 │ │ │ ├── file.js │ │ │ └── throwing.js │ │ ├── issue-2006 │ │ │ ├── errors.js │ │ │ └── index.js │ │ ├── issue-2528-2 │ │ │ ├── index.js │ │ │ └── module.js │ │ ├── issue-2641 │ │ │ ├── file.js │ │ │ └── throwing.js │ │ ├── issue-2600 │ │ │ └── errors.js │ │ ├── issue-2895 │ │ │ └── a.js │ │ ├── issue-3116 │ │ │ ├── file.js │ │ │ └── file2.js │ │ ├── strict-mode │ │ │ └── abc.js │ │ ├── harmony-spec │ │ │ ├── order-a.js │ │ │ ├── order-b.js │ │ │ └── live.js │ │ ├── issue-2570 │ │ │ └── fn.js │ │ ├── issue-627 │ │ │ └── warnings.js │ │ ├── issue-2349 │ │ │ └── a.js │ │ ├── harmony-import-targets │ │ │ └── x.js │ │ ├── issue-1600 │ │ │ └── file.js │ │ └── issue-2523 │ │ │ └── module.js │ ├── resolving │ │ ├── query │ │ │ └── empty.js │ │ ├── context │ │ │ └── node_modules │ │ │ │ └── subcontent │ │ │ │ ├── test.jade │ │ │ │ └── index.js │ │ ├── browser-field │ │ │ └── node_modules │ │ │ │ ├── recursive-file │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ ├── c.js │ │ │ │ └── d.js │ │ │ │ ├── ignoring-module │ │ │ │ └── file.js │ │ │ │ ├── new-module │ │ │ │ ├── index.js │ │ │ │ └── inner.js │ │ │ │ ├── replacing-file1 │ │ │ │ ├── file.js │ │ │ │ ├── new-file.js │ │ │ │ └── index.js │ │ │ │ ├── replacing-file2 │ │ │ │ ├── file.js │ │ │ │ └── index.js │ │ │ │ ├── replacing-file3 │ │ │ │ ├── file.js │ │ │ │ └── index.js │ │ │ │ ├── wrong-module.js │ │ │ │ ├── replacing-file4 │ │ │ │ ├── dir │ │ │ │ │ ├── file.js │ │ │ │ │ ├── new-file.js │ │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ │ │ ├── recursive-module │ │ │ │ └── index.js │ │ │ │ ├── replacing-module3 │ │ │ │ └── index.js │ │ │ │ ├── replacing-module1 │ │ │ │ └── index.js │ │ │ │ ├── replacing-module2 │ │ │ │ └── index.js │ │ │ │ └── replacing-module4 │ │ │ │ └── index.js │ │ ├── single-file-module │ │ │ └── node_modules │ │ │ │ └── subfilemodule.js │ │ └── issue-2986 │ │ │ └── node_modules │ │ │ └── any-loader.js │ ├── context │ │ ├── issue-1769 │ │ │ └── folder │ │ │ │ └── 0.js │ │ ├── ignore-hidden-files │ │ │ └── folder │ │ │ │ └── .file.js │ │ └── issue-3873 │ │ │ └── module │ │ │ └── index.js │ ├── loaders │ │ ├── _resources │ │ │ ├── abc.txt │ │ │ ├── included.jade │ │ │ └── parent.jade │ │ ├── async │ │ │ ├── a.js │ │ │ └── loaders │ │ │ │ └── syncloader.js │ │ ├── less-loader │ │ │ └── less │ │ │ │ └── folder │ │ │ │ └── url.js │ │ ├── query │ │ │ ├── a.js │ │ │ └── context-query-test │ │ │ │ └── test.js │ │ ├── coffee-loader │ │ │ └── module-only.coffee │ │ ├── issue-2299 │ │ │ ├── subdir_1 │ │ │ │ └── b.json │ │ │ └── subdir_2 │ │ │ │ └── c.json │ │ ├── json-loader │ │ │ └── some.json │ │ └── _css │ │ │ └── folder │ │ │ └── stylesheet-import3.css │ ├── runtime │ │ ├── issue-2391-chunk │ │ │ └── file.js │ │ ├── module-caching │ │ │ ├── singluar2.js │ │ │ ├── two.js │ │ │ └── singluar.js │ │ ├── chunk-callback-order │ │ │ ├── a.js │ │ │ └── b.js │ │ ├── issue-1650 │ │ │ └── file.js │ │ ├── error-handling │ │ │ └── folder │ │ │ │ ├── file1.js │ │ │ │ ├── file2.js │ │ │ │ └── file3.js │ │ ├── require-function │ │ │ └── fail.js │ │ └── circular-dependencies │ │ │ ├── circular.js │ │ │ └── circular2.js │ ├── compile │ │ ├── deduplication │ │ │ ├── d.js │ │ │ ├── dedupe1 │ │ │ │ └── dupdep.js │ │ │ └── dedupe2 │ │ │ │ └── dupdep.js │ │ ├── issue2221 │ │ │ └── exportvar.js │ │ ├── deduplication-bundle-loader │ │ │ ├── a │ │ │ │ └── file.js │ │ │ └── b │ │ │ │ └── file.js │ │ └── error-hide-stack │ │ │ └── errors.js │ ├── optimize │ │ ├── tree-shaking-star │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ └── x.js │ │ ├── tree-shaking-commonjs │ │ │ ├── c.js │ │ │ ├── e.js │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── d.js │ │ └── tree-shaking-star2 │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── a.js │ │ │ ├── aa.js │ │ │ ├── bb.js │ │ │ ├── root3.js │ │ │ ├── root6.js │ │ │ ├── root5.js │ │ │ └── root4.js │ ├── scope-hoisting │ │ ├── chained-reexport │ │ │ ├── b.js │ │ │ ├── a.js │ │ │ └── c.js │ │ ├── intra-references │ │ │ ├── c.js │ │ │ ├── a.js │ │ │ └── b.js │ │ ├── reexport-cjs │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ │ ├── indirect-reexport │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ │ ├── name-conflicts │ │ │ └── module.js │ │ ├── reexport-exposed-cjs │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ │ ├── reexport-exposed-harmony │ │ │ ├── b.js │ │ │ ├── a.js │ │ │ └── c.js │ │ ├── issue-5020-minimal │ │ │ └── src │ │ │ │ └── icon │ │ │ │ └── svg │ │ │ │ ├── index.js │ │ │ │ └── svg1.js │ │ ├── issue-5020 │ │ │ └── src │ │ │ │ ├── icon │ │ │ │ └── svg │ │ │ │ │ ├── svg1.js │ │ │ │ │ └── svg2.js │ │ │ │ └── icon1 │ │ │ │ └── svg │ │ │ │ ├── svg1.js │ │ │ │ └── svg2.js │ │ ├── reexport-exposed-default-cjs │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ │ ├── renaming-shorthand-5027 │ │ │ ├── file1.js │ │ │ ├── file2.js │ │ │ └── file3.js │ │ ├── export-namespace │ │ │ ├── ns1.js │ │ │ ├── ns2.js │ │ │ ├── module1.js │ │ │ └── module2.js │ │ ├── issue-5096 │ │ │ └── b.js │ │ ├── issue-5443 │ │ │ └── module.js │ │ ├── simple │ │ │ └── module.js │ │ └── import-order │ │ │ └── module.js │ └── concord │ │ └── inner-modules-and-extensions │ │ ├── the-thing.js │ │ └── modules │ │ └── app │ │ ├── file.js │ │ ├── file2.js │ │ └── file2.my-js ├── configCases │ ├── delegated │ │ └── simple │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── dir │ │ │ └── c.js │ │ │ ├── loader.js │ │ │ └── bundle.js │ ├── delegated-hash │ │ └── simple │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── d.js │ │ │ ├── e.js │ │ │ ├── dir │ │ │ └── c.js │ │ │ ├── loader.js │ │ │ └── bundle2.js │ ├── loaders │ │ ├── issue-3320 │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── b2.js │ │ │ └── b3.js │ │ ├── generate-ident │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ │ └── remaining-request │ │ │ └── a.js │ ├── plugins │ │ ├── define-plugin │ │ │ └── a.js │ │ ├── loader-options-plugin │ │ │ └── txt.txt │ │ ├── min-chunk-size │ │ │ ├── a.js │ │ │ └── b.js │ │ ├── provide-plugin │ │ │ ├── aaa.js │ │ │ ├── bbbccc.js │ │ │ └── env.js │ │ ├── lib-manifest-plugin │ │ │ └── a.js │ │ ├── new-watching-plugin │ │ │ ├── index.js │ │ │ └── warnings.js │ │ ├── banner-plugin │ │ │ ├── test.js │ │ │ └── vendors.js │ │ └── banner-plugin-hashing │ │ │ ├── test.js │ │ │ └── vendors.js │ ├── rule-set │ │ ├── simple │ │ │ ├── c.js │ │ │ ├── a.js │ │ │ ├── ab.js │ │ │ └── b.js │ │ ├── simple-use-fn-array │ │ │ ├── c.js │ │ │ ├── a.js │ │ │ ├── ab.js │ │ │ └── b.js │ │ ├── custom │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── call-a.js │ │ ├── query │ │ │ └── a.js │ │ ├── chaining │ │ │ ├── abc.js │ │ │ └── def.js │ │ └── compiler │ │ │ ├── a.js │ │ │ └── b.js │ ├── entry │ │ ├── require-entry-point │ │ │ ├── entry-point.js │ │ │ └── entry-point2.js │ │ ├── issue-1068 │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── e.js │ │ │ ├── f.js │ │ │ ├── g.js │ │ │ ├── h.js │ │ │ ├── i.js │ │ │ ├── j.js │ │ │ └── k.js │ │ ├── function │ │ │ ├── a.js │ │ │ └── b.js │ │ └── function-promise │ │ │ ├── a.js │ │ │ └── b.js │ ├── records │ │ ├── issue-295 │ │ │ ├── file.js │ │ │ └── loader.js │ │ └── issue-2991 │ │ │ └── pkgs │ │ │ └── somepackage │ │ │ └── package.json │ ├── compiletime │ │ ├── warn-not-found │ │ │ ├── webpack.config.js │ │ │ ├── stub.js │ │ │ └── warnings.js │ │ └── error-not-found │ │ │ ├── errors.js │ │ │ └── stub.js │ ├── dll-plugin │ │ ├── 0-create-dll │ │ │ ├── _d.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ ├── f.jsx │ │ │ ├── a.js │ │ │ ├── e1.js │ │ │ ├── e2.js │ │ │ ├── test.config.js │ │ │ ├── g.abc.js │ │ │ ├── ee1.js │ │ │ ├── ee2.js │ │ │ ├── _e.js │ │ │ ├── e.js │ │ │ └── b.js │ │ ├── 1-use-dll │ │ │ └── e.js │ │ └── 3-use-dll-with-hashid │ │ │ └── e1.js │ ├── extract-text │ │ └── issue-14 │ │ │ ├── base.css │ │ │ ├── styleA.css │ │ │ └── styleB.css │ ├── async-commons-chunk │ │ ├── duplicate │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ ├── d.js │ │ │ └── e.js │ │ ├── nested │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ ├── c.js │ │ │ └── d.js │ │ ├── simple │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ │ ├── all-selected │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ │ └── existing-name │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ ├── context-replacement │ │ ├── b │ │ │ ├── only-this.js │ │ │ └── error.js │ │ ├── c │ │ │ ├── modules │ │ │ │ ├── a.js │ │ │ │ └── module-b.js │ │ │ └── node_modules │ │ │ │ └── d.js │ │ ├── System.import │ │ │ └── modules │ │ │ │ └── module-b.js │ │ └── a │ │ │ └── new-context │ │ │ └── node_modules │ │ │ └── replaced.js │ ├── library │ │ ├── 0-create-library │ │ │ ├── a.js │ │ │ ├── test.config.js │ │ │ └── non-external.js │ │ ├── a │ │ │ └── index.js │ │ ├── umd │ │ │ └── index.js │ │ └── 1-use-library │ │ │ └── node_modules │ │ │ └── external.js │ ├── parsing │ │ ├── harmony-global │ │ │ └── module.js │ │ ├── require.main │ │ │ └── webpack.config.js │ │ └── issue-336 │ │ │ └── node_modules │ │ │ └── aaa.js │ ├── target │ │ ├── node-dynamic-import │ │ │ ├── two.js │ │ │ ├── dir │ │ │ │ ├── one.js │ │ │ │ ├── two.js │ │ │ │ └── three.js │ │ │ └── dir2 │ │ │ │ ├── one.js │ │ │ │ ├── three.js │ │ │ │ └── two.js │ │ ├── web │ │ │ └── node_modules │ │ │ │ └── process │ │ │ │ ├── in.js │ │ │ │ └── index.js │ │ ├── webworker │ │ │ └── node_modules │ │ │ │ └── process │ │ │ │ ├── in.js │ │ │ │ └── index.js │ │ ├── buffer-default │ │ │ └── webpack.config.js │ │ └── strict-mode-global │ │ │ └── webpack.config.js │ ├── commons-chunk-plugin │ │ ├── simple │ │ │ └── a.js │ │ ├── move-entry │ │ │ └── a.js │ │ ├── move-to-parent │ │ │ └── a.js │ │ ├── hot-multi │ │ │ ├── common.js │ │ │ └── shared.js │ │ └── hot │ │ │ └── vendor.js │ ├── errors │ │ └── entry-not-found │ │ │ └── webpack.config.js │ ├── filename-template │ │ └── module-filename-template │ │ │ └── test.js │ ├── hash-length │ │ ├── output-filename │ │ │ └── chunk.js │ │ └── hashed-module-ids │ │ │ └── files │ │ │ ├── file1.js │ │ │ ├── file2.js │ │ │ ├── file3.js │ │ │ ├── file4.js │ │ │ ├── file5.js │ │ │ ├── file6.js │ │ │ ├── file7.js │ │ │ ├── file8.js │ │ │ ├── file9.js │ │ │ ├── file10.js │ │ │ ├── file11.js │ │ │ ├── file12.js │ │ │ ├── file13.js │ │ │ ├── file14.js │ │ │ └── file15.js │ ├── no-parse │ │ ├── module.exports │ │ │ └── not-parsed-a.js │ │ └── no-parse-function │ │ │ └── not-parsed-a.js │ ├── scope-hoisting │ │ └── named-modules │ │ │ └── module2.js │ ├── ignore │ │ ├── only-resource │ │ │ ├── ignored-module.js │ │ │ └── normal-module.js │ │ ├── only-resource-context │ │ │ └── src │ │ │ │ ├── normal-module.js │ │ │ │ └── ignored-module.js │ │ ├── resource-and-context │ │ │ ├── folder-a │ │ │ │ └── ignored-module.js │ │ │ └── folder-b │ │ │ │ └── ignored-module.js │ │ └── resource-and-context-contextmodule │ │ │ ├── folder-a │ │ │ └── ignored-module.js │ │ │ └── folder-b │ │ │ └── ignored-module.js │ ├── runtime │ │ └── opt-in-finally │ │ │ └── exception.js │ ├── code-generation │ │ ├── require-context-id │ │ │ └── folder │ │ │ │ ├── a.js │ │ │ │ └── b.js │ │ └── use-strict │ │ │ ├── harmony-without-strict.js │ │ │ ├── harmony-without-strict2.js │ │ │ ├── harmony-with-strict.js │ │ │ └── harmony-with-strict3.js │ ├── externals │ │ ├── externals-in-chunk │ │ │ └── chunk2.js │ │ └── externals-in-commons-chunk │ │ │ └── other.js │ ├── simple │ │ ├── empty-config │ │ │ ├── webpack.config.js │ │ │ └── index.js │ │ └── multi-compiler │ │ │ ├── index.js │ │ │ └── webpack.config.js │ ├── source-map │ │ ├── line-to-line │ │ │ └── test.js │ │ ├── module-names │ │ │ └── test.js │ │ ├── nosources │ │ │ └── test.js │ │ ├── sources-array-production │ │ │ └── test.js │ │ ├── exclude-chunks-source-map │ │ │ ├── test.js │ │ │ └── vendors.js │ │ └── sources-array-production-cheap-map │ │ │ └── test.js │ ├── issues │ │ └── issue-3596 │ │ │ └── index.js │ ├── devtools │ │ ├── harmony-eval │ │ │ ├── index.js │ │ │ └── webpack.config.js │ │ └── harmony-eval-source-map │ │ │ └── index.js │ └── additional-pass │ │ └── simple │ │ └── index.js ├── browsertest │ ├── lib │ │ ├── three.js │ │ ├── two.js │ │ ├── testRequireMain.js │ │ ├── stylesheet.css │ │ └── stylesheet.less │ ├── 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 │ │ ├── library1 │ │ │ ├── lib │ │ │ │ ├── comp.js │ │ │ │ └── component.js │ │ │ └── node_modules │ │ │ │ └── submodule1 │ │ │ │ └── index.js │ │ └── submodule3 │ │ │ └── index.js │ ├── web_modules │ │ └── subcontent │ │ │ └── index.js │ ├── package.json │ └── img │ │ ├── fail.png │ │ └── image.png ├── hotCases │ ├── runtime │ │ ├── dispose-removed-chunk │ │ │ ├── b.js │ │ │ └── a.js │ │ ├── dispose-removed-module │ │ │ └── b.js │ │ ├── accept │ │ │ └── file.js │ │ ├── bubble-update │ │ │ ├── parent-file.js │ │ │ └── file.js │ │ └── update-multiple-modules │ │ │ ├── fileA.js │ │ │ └── fileB.js │ ├── errors │ │ ├── unaccepted │ │ │ ├── a.js │ │ │ ├── b.js │ │ │ └── c.js │ │ ├── decline │ │ │ ├── b.js │ │ │ └── c.js │ │ ├── self-decline │ │ │ ├── b.js │ │ │ └── c.js │ │ └── events │ │ │ ├── a.js │ │ │ ├── c.js │ │ │ ├── e.js │ │ │ ├── g.js │ │ │ ├── d.js │ │ │ └── f.js │ ├── chunks │ │ ├── accept-system-import │ │ │ ├── chunk.js │ │ │ ├── chunk2.js │ │ │ └── file.js │ │ ├── system-import │ │ │ ├── file.js │ │ │ └── file2.js │ │ └── dynamic-system-import │ │ │ └── file.js │ ├── harmony │ │ ├── auto-import │ │ │ └── file.js │ │ └── auto-import-multiple │ │ │ ├── commonjs.js │ │ │ └── file.js │ └── recover │ │ ├── recover-after-loader-error │ │ └── errors1.js │ │ └── recover-after-parsing-error │ │ └── errors1.js ├── benchmarkCases │ ├── many-chunks │ │ ├── c.js │ │ └── webpack.config.js │ ├── many-modules │ │ ├── c.js │ │ └── webpack.config.js │ ├── many-modules-source-map │ │ └── c.js │ └── large-ast │ │ └── webpack.config.js ├── mocha.opts ├── watchCases │ ├── plugins │ │ ├── extract-text-plugin │ │ │ ├── 0 │ │ │ │ └── style.css │ │ │ └── 1 │ │ │ │ └── style.css │ │ ├── watch-ignore-plugin │ │ │ ├── 0 │ │ │ │ ├── a.js │ │ │ │ ├── file.js │ │ │ │ └── foo │ │ │ │ │ └── 0.js │ │ │ ├── 1 │ │ │ │ ├── a.js │ │ │ │ ├── file.js │ │ │ │ └── foo │ │ │ │ │ └── 1.js │ │ │ └── 2 │ │ │ │ ├── a.js │ │ │ │ ├── file.js │ │ │ │ └── foo │ │ │ │ └── 2.js │ │ ├── automatic-prefetch-plugin │ │ │ └── 0 │ │ │ │ └── foo │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ └── c.js │ │ └── module-concatenation-plugin │ │ │ ├── 0 │ │ │ └── bar │ │ │ │ ├── a.js │ │ │ │ ├── b.js │ │ │ │ └── c.js │ │ │ ├── 1 │ │ │ └── bar │ │ │ │ └── b.js │ │ │ └── 2 │ │ │ └── bar │ │ │ └── c.js │ ├── context │ │ └── delete-in-context │ │ │ ├── 0 │ │ │ └── directory │ │ │ │ └── .empty │ │ │ ├── 1 │ │ │ └── directory │ │ │ │ └── a.js │ │ │ ├── 2 │ │ │ └── directory │ │ │ │ └── b.js │ │ │ └── 3 │ │ │ └── directory │ │ │ ├── a.js │ │ │ └── b.js │ ├── parsing │ │ ├── switching-harmony │ │ │ ├── 0 │ │ │ │ ├── cc.js │ │ │ │ ├── ch.js │ │ │ │ ├── hc.js │ │ │ │ └── hh.js │ │ │ └── 1 │ │ │ │ ├── cc.js │ │ │ │ ├── ch.js │ │ │ │ ├── hc.js │ │ │ │ └── hh.js │ │ └── caching-harmony │ │ │ ├── 0 │ │ │ ├── changing-module.js │ │ │ └── module.js │ │ │ └── 1 │ │ │ └── changing-module.js │ ├── simple │ │ ├── simple │ │ │ ├── 0 │ │ │ │ └── changing-file.js │ │ │ ├── 1 │ │ │ │ └── changing-file.js │ │ │ └── 2 │ │ │ │ └── changing-file.js │ │ └── multi-compiler │ │ │ ├── 0 │ │ │ ├── changing-file.js │ │ │ └── static-file.js │ │ │ └── 1 │ │ │ └── changing-file.js │ └── recover-from-error │ │ └── missing-module │ │ ├── 0 │ │ └── node_modules │ │ │ └── module │ │ │ └── index.js │ │ └── 1 │ │ └── node_modules │ │ └── some-module │ │ └── index.js └── hotPlayground │ └── .gitignore ├── web_modules └── node-libs-browser.js ├── examples ├── dll │ ├── a.js │ ├── b.js │ ├── c.jsx │ ├── alpha.js │ ├── beta.js │ └── build.js ├── loader │ ├── file.js │ ├── build.js │ ├── test.css │ └── loader.js ├── 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 ├── aggressive-merging │ ├── a.js │ ├── b.js │ ├── build.js │ ├── pageA.js │ ├── pageB.js │ └── pageC.js ├── code-splitting │ ├── node_modules │ │ ├── a.js │ │ ├── b.js │ │ ├── c.js │ │ └── d.js │ └── build.js ├── commonjs │ ├── build.js │ └── example.js ├── css-bundle │ ├── example.js │ ├── build.js │ ├── style.css │ └── image.png ├── dll-user │ └── build.js ├── extra-async-chunk │ ├── a.js │ ├── b.js │ ├── c.js │ ├── d.js │ └── build.js ├── harmony │ ├── build.js │ └── async-loaded.js ├── mixed │ └── build.js ├── move-to-parent │ ├── a.js │ ├── b.js │ ├── c.js │ └── d.js ├── named-chunks │ ├── node_modules │ │ ├── a.js │ │ ├── b.js │ │ ├── c.js │ │ └── d.js │ └── build.js ├── coffee-script │ ├── build.js │ ├── example.js │ └── cup2.coffee ├── externals │ └── build.js ├── node_modules │ └── module.js ├── web-worker │ └── build.js ├── chunkhash │ ├── async1.js │ ├── async2.js │ ├── build.js │ └── vendor.js ├── code-splitting-harmony │ ├── node_modules │ │ ├── a.js │ │ ├── b.js │ │ └── c │ │ │ ├── 1.js │ │ │ └── 2.js │ └── build.js ├── extra-async-chunk-advanced │ ├── a.js │ ├── b.js │ ├── c.js │ ├── d.js │ ├── e.js │ ├── f.js │ ├── g.js │ └── build.js ├── harmony-interop │ └── build.js ├── harmony-unused │ └── build.js ├── i18n │ ├── de.json │ ├── build.js │ └── example.js ├── multi-compiler │ ├── mobile-stuff.js │ └── build.js ├── multi-part-library │ ├── alpha.js │ ├── beta.js │ └── build.js ├── require.context │ └── build.js ├── require.resolve │ ├── a.js │ └── build.js ├── scope-hoisting │ ├── build.js │ ├── node_modules │ │ ├── d.js │ │ ├── cjs.js │ │ ├── shared2.js │ │ ├── b.js │ │ └── a.js │ └── lazy.js ├── explicit-vendor-chunk │ ├── pageC.js │ ├── vendor.js │ ├── vendor2.js │ ├── pageA.js │ ├── pageB.js │ └── build.js ├── multiple-entry-points │ ├── common.js │ └── build.js ├── code-splitted-css-bundle │ ├── build.js │ ├── chunk.js │ ├── style.css │ ├── example.js │ └── style2.css ├── code-splitting-bundle-loader │ ├── build.js │ └── file.js ├── two-explicit-vendor-chunks │ ├── pageB.js │ ├── pageC.js │ ├── vendor1.js │ ├── vendor2.js │ └── build.js ├── code-splitted-require.context-amd │ └── build.js ├── code-splitted-require.context │ └── build.js ├── common-chunk-and-vendor-chunk │ ├── utility1.js │ ├── utility2.js │ ├── utility3.js │ ├── vendor1.js │ ├── vendor2.js │ └── build.js ├── code-splitting-native-import-context │ ├── build.js │ └── templates │ │ ├── bar.js │ │ ├── baz.js │ │ └── foo.js ├── code-splitting-specify-chunk-name │ ├── build.js │ └── templates │ │ ├── bar.js │ │ ├── baz.js │ │ └── foo.js ├── multiple-entry-points-commons-chunk-css-bundle │ ├── c.js │ ├── a.js │ ├── b.js │ ├── style.css │ ├── styleA.css │ └── styleB.css ├── harmony-library │ └── build.js ├── http2-aggressive-splitting │ └── example.js ├── hybrid-routing │ ├── build.js │ ├── aPage.js │ ├── bPage.js │ └── render.js ├── source-map │ └── build.js └── dll-app-and-vendor │ ├── 1-app │ └── build.js │ ├── 0-vendor │ └── build.js │ └── node_modules │ └── example-vendor.js ├── .gitattributes └── hot └── emitter.js /test/fixtures/abc.txt: -------------------------------------------------------------------------------- 1 | abc -------------------------------------------------------------------------------- /test/fixtures/errors/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/watched-file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/simple/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web_modules/node-libs-browser.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/dll/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /examples/dll/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/binCases/watch/multi-config/async: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/parsing/empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/runtime/empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/errors/case-sensistive/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/nonce/set-nonce/empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/parsing/requirejs/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/resolving/query/empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/delegated/simple/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/delegated/simple/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/errors/entry-point.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/subdir/watched-file.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/color-enabled/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/preset-none/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/dll/c.jsx: -------------------------------------------------------------------------------- 1 | module.exports = "jsx"; -------------------------------------------------------------------------------- /examples/loader/file.js: -------------------------------------------------------------------------------- 1 | exports.foo = "bar"; -------------------------------------------------------------------------------- /test/binCases/errors/parse/index.js: -------------------------------------------------------------------------------- 1 | } 2 | -------------------------------------------------------------------------------- /test/binCases/watch/single-config/async: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/named-chunks/empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/named-chunks/empty2.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/named-chunks/empty3.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/named-chunks/empty4.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/context/issue-1769/folder/0.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/errors/case-sensistive/b/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/errors/loader-error-warning/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/loaders/_resources/abc.txt: -------------------------------------------------------------------------------- 1 | abc -------------------------------------------------------------------------------- /test/cases/parsing/harmony-info/commonjs.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/parsing/inject-free-vars/x1.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-4596/module.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/runtime/issue-2391-chunk/file.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/delegated-hash/simple/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/delegated-hash/simple/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/delegated-hash/simple/d.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/delegated-hash/simple/e.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/delegated/simple/dir/c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/delegated/simple/loader.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/loaders/issue-3320/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/loaders/issue-3320/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/loaders/issue-3320/b2.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/loaders/issue-3320/b3.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/plugins/define-plugin/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/color-disabled/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/preset-errors-only/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/preset-none-array/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/preset-none/expected.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/simple-more-info/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/tree-shaking/unknown.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/tree-shaking/unknown2.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/dll/alpha.js: -------------------------------------------------------------------------------- 1 | module.exports = "alpha"; -------------------------------------------------------------------------------- /examples/dll/beta.js: -------------------------------------------------------------------------------- 1 | module.exports = "beta"; -------------------------------------------------------------------------------- /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/binCases/config-name/found-many/index3.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/binCases/watch/multi-config-watch-opt/async: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/browsertest/lib/three.js: -------------------------------------------------------------------------------- 1 | module.exports = 3; -------------------------------------------------------------------------------- /test/browsertest/lib/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; -------------------------------------------------------------------------------- /test/cases/chunks/weak-dependencies-context/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/weak-dependencies-context/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/weak-dependencies-context/c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/runtime/module-caching/singluar2.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/delegated-hash/simple/dir/c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/delegated-hash/simple/loader.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/loaders/generate-ident/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/loaders/generate-ident/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/loaders/generate-ident/c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/loaders/remaining-request/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/hotCases/runtime/dispose-removed-chunk/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/color-enabled-custom/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/optimize-chunks/modules/a.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/optimize-chunks/modules/b.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/optimize-chunks/modules/c.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/optimize-chunks/modules/d.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/optimize-chunks/modules/e.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/optimize-chunks/modules/f.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/preset-errors-only/expected.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/preset-minimal-simple/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/preset-none-array/expected.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/preset-none-error/expected.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/tree-shaking/a.js: -------------------------------------------------------------------------------- 1 | export var a; -------------------------------------------------------------------------------- /test/statsCases/tree-shaking/b.js: -------------------------------------------------------------------------------- 1 | export var b; -------------------------------------------------------------------------------- /examples/aggressive-merging/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /examples/aggressive-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/dll-user/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/harmony/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/loader/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /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/benchmarkCases/many-chunks/c.js: -------------------------------------------------------------------------------- 1 | // content 2 | -------------------------------------------------------------------------------- /test/benchmarkCases/many-modules/c.js: -------------------------------------------------------------------------------- 1 | // content 2 | -------------------------------------------------------------------------------- /test/binCases/help/help-output/test.opts: -------------------------------------------------------------------------------- 1 | --help 2 | -------------------------------------------------------------------------------- /test/binCases/module/module-bind/file.post: -------------------------------------------------------------------------------- 1 | post 2 | -------------------------------------------------------------------------------- /test/binCases/module/module-bind/file.pre: -------------------------------------------------------------------------------- 1 | pre 2 | -------------------------------------------------------------------------------- /test/binCases/watch/single-config-watch-opt/async: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/cases/chunks/context/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; -------------------------------------------------------------------------------- /test/cases/chunks/import/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; -------------------------------------------------------------------------------- /test/cases/chunks/runtime/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/cases/chunks/var-inject-error-handler/empty.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /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/cases/parsing/hot-api/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/cases/parsing/hot-api/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/configCases/rule-set/simple/c.js: -------------------------------------------------------------------------------- 1 | // never used -------------------------------------------------------------------------------- /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; -------------------------------------------------------------------------------- /test/hotCases/errors/unaccepted/a.js: -------------------------------------------------------------------------------- 1 | export default 2; -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | --full-trace 2 | --reporter dot 3 | -------------------------------------------------------------------------------- /test/statsCases/chunks/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/statsCases/chunks/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/chunks/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/chunks/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /examples/coffee-script/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/css-bundle/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/externals/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/named-chunks/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/node_modules/module.js: -------------------------------------------------------------------------------- 1 | module.exports = "module"; -------------------------------------------------------------------------------- /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/loaders/coffee-loader/module-only.coffee: -------------------------------------------------------------------------------- 1 | module -------------------------------------------------------------------------------- /test/cases/parsing/bom/bomfile.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/cases/parsing/chunks/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/cases/parsing/class/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; 2 | -------------------------------------------------------------------------------- /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-3769/b.js: -------------------------------------------------------------------------------- 1 | export default 123; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-3769/c.js: -------------------------------------------------------------------------------- 1 | export default 123; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-3769/d.js: -------------------------------------------------------------------------------- 1 | export default 123; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-387/file.js: -------------------------------------------------------------------------------- 1 | module.exports = 4321; -------------------------------------------------------------------------------- /test/cases/parsing/issue-4357/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/renaming/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/configCases/entry/require-entry-point/entry-point.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/entry/require-entry-point/entry-point2.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/plugins/loader-options-plugin/txt.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/records/issue-295/file.js: -------------------------------------------------------------------------------- 1 | // just a file -------------------------------------------------------------------------------- /test/fixtures/nodetest/file456.js: -------------------------------------------------------------------------------- 1 | module.exports = 123; -------------------------------------------------------------------------------- /test/statsCases/external/index.js: -------------------------------------------------------------------------------- 1 | require("test"); 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-minimal/expected.txt: -------------------------------------------------------------------------------- 1 | 6 modules -------------------------------------------------------------------------------- /test/statsCases/preset-mixed-array/index.js: -------------------------------------------------------------------------------- 1 | // huh? 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/extract-text-plugin/0/style.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/chunkhash/async1.js: -------------------------------------------------------------------------------- 1 | // some async loaded module 2 | -------------------------------------------------------------------------------- /examples/chunkhash/async2.js: -------------------------------------------------------------------------------- 1 | // some async loaded module 2 | -------------------------------------------------------------------------------- /examples/code-splitting-harmony/node_modules/a.js: -------------------------------------------------------------------------------- 1 | // module a -------------------------------------------------------------------------------- /examples/code-splitting-harmony/node_modules/b.js: -------------------------------------------------------------------------------- 1 | // module b -------------------------------------------------------------------------------- /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/harmony-interop/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/harmony-unused/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/harmony/async-loaded.js: -------------------------------------------------------------------------------- 1 | export var answer = 42; 2 | -------------------------------------------------------------------------------- /examples/i18n/de.json: -------------------------------------------------------------------------------- 1 | { 2 | "Hello World": "Hallo Welt" 3 | } -------------------------------------------------------------------------------- /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"); -------------------------------------------------------------------------------- /examples/scope-hoisting/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /test/benchmarkCases/many-modules-source-map/c.js: -------------------------------------------------------------------------------- 1 | // content 2 | -------------------------------------------------------------------------------- /test/binCases/configFile/profile/bar.js: -------------------------------------------------------------------------------- 1 | console.log('bar'); 2 | -------------------------------------------------------------------------------- /test/binCases/entry/multi-file/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "fileA"; -------------------------------------------------------------------------------- /test/binCases/entry/named-entry/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "fileA"; -------------------------------------------------------------------------------- /test/binCases/stats/none/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "foo"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/context-weak/three.js: -------------------------------------------------------------------------------- 1 | module.exports = 3; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/context-weak/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; 2 | -------------------------------------------------------------------------------- /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/optimize/tree-shaking-star/a.js: -------------------------------------------------------------------------------- 1 | export * from "./b"; -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star/b.js: -------------------------------------------------------------------------------- 1 | export * from "./c"; -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star/c.js: -------------------------------------------------------------------------------- 1 | export * from "./d"; -------------------------------------------------------------------------------- /test/cases/parsing/harmony-commonjs/d.js: -------------------------------------------------------------------------------- 1 | exports.y = "y"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-edge-cases/c.js: -------------------------------------------------------------------------------- 1 | export var c = "ok"; -------------------------------------------------------------------------------- /test/cases/parsing/issue-3964/x.js: -------------------------------------------------------------------------------- 1 | export default 1234; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-4357/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/local-modules/dep.js: -------------------------------------------------------------------------------- 1 | module.exports = "dep"; -------------------------------------------------------------------------------- /test/cases/runtime/module-caching/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; -------------------------------------------------------------------------------- /test/configCases/compiletime/warn-not-found/webpack.config.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/_d.js: -------------------------------------------------------------------------------- 1 | import "./d"; -------------------------------------------------------------------------------- /test/configCases/extract-text/issue-14/base.css: -------------------------------------------------------------------------------- 1 | body{base:0} -------------------------------------------------------------------------------- /test/configCases/rule-set/simple-use-fn-array/c.js: -------------------------------------------------------------------------------- 1 | // never used -------------------------------------------------------------------------------- /test/fixtures/lib/complex1.js: -------------------------------------------------------------------------------- 1 | module.exports = "lib complex1"; -------------------------------------------------------------------------------- /test/fixtures/nodetest/file567.js: -------------------------------------------------------------------------------- 1 | define({ 2 | a: 1 3 | }); -------------------------------------------------------------------------------- /test/statsCases/async-commons-chunk/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/statsCases/async-commons-chunk/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/statsCases/async-commons-chunk/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /test/statsCases/preset-detailed/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-detailed/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-detailed/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-detailed/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-minimal-simple/expected.txt: -------------------------------------------------------------------------------- 1 | 1 module -------------------------------------------------------------------------------- /test/statsCases/preset-minimal/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-minimal/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-minimal/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-minimal/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-verbose/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-verbose/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-verbose/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-verbose/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/watchCases/context/delete-in-context/0/directory/.empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/code-splitting-harmony/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/code-splitting-harmony/node_modules/c/1.js: -------------------------------------------------------------------------------- 1 | // module c/1 -------------------------------------------------------------------------------- /examples/code-splitting-harmony/node_modules/c/2.js: -------------------------------------------------------------------------------- 1 | // module c/2 -------------------------------------------------------------------------------- /examples/coffee-script/example.js: -------------------------------------------------------------------------------- 1 | console.log(require("./cup1")); -------------------------------------------------------------------------------- /examples/explicit-vendor-chunk/pageC.js: -------------------------------------------------------------------------------- 1 | module.exports = "pageC"; -------------------------------------------------------------------------------- /examples/explicit-vendor-chunk/vendor.js: -------------------------------------------------------------------------------- 1 | module.exports = "Vendor"; -------------------------------------------------------------------------------- /examples/explicit-vendor-chunk/vendor2.js: -------------------------------------------------------------------------------- 1 | module.exports = "Vendor2"; -------------------------------------------------------------------------------- /examples/multiple-commons-chunks/common.js: -------------------------------------------------------------------------------- 1 | module.exports = "Common"; -------------------------------------------------------------------------------- /examples/multiple-entry-points/common.js: -------------------------------------------------------------------------------- 1 | module.exports = "Common"; -------------------------------------------------------------------------------- /test/binCases/entry/multi-file/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "index"; -------------------------------------------------------------------------------- /test/binCases/entry/named-entry/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "index"; -------------------------------------------------------------------------------- /test/cases/chunks/context-weak/dir/four.js: -------------------------------------------------------------------------------- 1 | module.exports = 4; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/import-context/dir/one.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/import-context/dir/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/import-context/dir2/one.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/import-context/dir2/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir1/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir1/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir1/c.js: -------------------------------------------------------------------------------- 1 | export default "c"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir1/d.js: -------------------------------------------------------------------------------- 1 | export default "d"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir10/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir11/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir2/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir2/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir2/c.js: -------------------------------------------------------------------------------- 1 | export default "c"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir2/d.js: -------------------------------------------------------------------------------- 1 | export default "d"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir3/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir3/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir3/c.js: -------------------------------------------------------------------------------- 1 | export default "c"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir3/d.js: -------------------------------------------------------------------------------- 1 | export default "d"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir4/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir4/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir4/c.js: -------------------------------------------------------------------------------- 1 | export default "c"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir4/d.js: -------------------------------------------------------------------------------- 1 | export default "d"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir5/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir5/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir5/c.js: -------------------------------------------------------------------------------- 1 | export default "c"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir5/d.js: -------------------------------------------------------------------------------- 1 | export default "d"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir6/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir6/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir6/c.js: -------------------------------------------------------------------------------- 1 | export default "c"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir6/d.js: -------------------------------------------------------------------------------- 1 | export default "d"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir7/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir7/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir7/c.js: -------------------------------------------------------------------------------- 1 | export default "c"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir7/d.js: -------------------------------------------------------------------------------- 1 | export default "d"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir8/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir8/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir8/c.js: -------------------------------------------------------------------------------- 1 | export default "c"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir9/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir9/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/inline-options/dir9/c.js: -------------------------------------------------------------------------------- 1 | export default "c"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/issue-2443/dir/one/file.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/issue-2443/dir/two/file.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; 2 | -------------------------------------------------------------------------------- /test/cases/compile/issue2221/exportvar.js: -------------------------------------------------------------------------------- 1 | export var foo = "bar" 2 | -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-commonjs/c.js: -------------------------------------------------------------------------------- 1 | export * from "./d"; -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-commonjs/e.js: -------------------------------------------------------------------------------- 1 | export var test = 123; -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star/d.js: -------------------------------------------------------------------------------- 1 | export var test = 123; -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star2/b.js: -------------------------------------------------------------------------------- 1 | export * from "./bb"; -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star2/c.js: -------------------------------------------------------------------------------- 1 | export var c = "c"; 2 | -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star2/d.js: -------------------------------------------------------------------------------- 1 | exports.d = "d"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/bom/typeof.js: -------------------------------------------------------------------------------- 1 | module.exports = typeof require; -------------------------------------------------------------------------------- /test/cases/parsing/es6.nominimize/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/es6.nominimize/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/es6.nominimize/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; 2 | -------------------------------------------------------------------------------- /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/harmony-commonjs/c.js: -------------------------------------------------------------------------------- 1 | export * from "./d"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-commonjs/c2.js: -------------------------------------------------------------------------------- 1 | export var x = "x"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-edge-cases/d.js: -------------------------------------------------------------------------------- 1 | export default "ok"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony/node_modules/def.js: -------------------------------------------------------------------------------- 1 | export default "def"; -------------------------------------------------------------------------------- /test/cases/parsing/inject-free-vars/fail.js: -------------------------------------------------------------------------------- 1 | throw new Error("Fail"); -------------------------------------------------------------------------------- /test/cases/parsing/issue-2050/a.js: -------------------------------------------------------------------------------- 1 | var xa = "a"; 2 | export { xa }; -------------------------------------------------------------------------------- /test/cases/parsing/issue-2050/b.js: -------------------------------------------------------------------------------- 1 | var xb = "b"; 2 | export { xb }; -------------------------------------------------------------------------------- /test/cases/parsing/issue-2050/c.js: -------------------------------------------------------------------------------- 1 | var xc = "c"; 2 | export { xc }; -------------------------------------------------------------------------------- /test/cases/parsing/issue-2050/d.js: -------------------------------------------------------------------------------- 1 | var xd = "d"; 2 | exports.xd = xd; -------------------------------------------------------------------------------- /test/cases/parsing/issue-2084/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "file"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2084/load.js: -------------------------------------------------------------------------------- 1 | module.exports = "load"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-3273/file.js: -------------------------------------------------------------------------------- 1 | export var test = "test"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-345/abc/abcTest.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/cases/parsing/issue-3769/a.js: -------------------------------------------------------------------------------- 1 | export const thing = 123; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-3769/imported.js: -------------------------------------------------------------------------------- 1 | exports.test = "test"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-4179/module.js: -------------------------------------------------------------------------------- 1 | export default (1, 2); 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-4870/file.js: -------------------------------------------------------------------------------- 1 | export var test = "test"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/typeof/typeof.js: -------------------------------------------------------------------------------- 1 | module.exports = typeof require; -------------------------------------------------------------------------------- /test/cases/runtime/chunk-callback-order/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/c.js: -------------------------------------------------------------------------------- 1 | export default "c"; -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/d.js: -------------------------------------------------------------------------------- 1 | export default "d"; -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/f.jsx: -------------------------------------------------------------------------------- 1 | module.exports = 'f'; -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/a.js: -------------------------------------------------------------------------------- 1 | global.order = ["a"]; 2 | -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/b.js: -------------------------------------------------------------------------------- 1 | global.order.push("b"); 2 | -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/c.js: -------------------------------------------------------------------------------- 1 | global.order.push("c"); 2 | -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/d.js: -------------------------------------------------------------------------------- 1 | global.order.push("d"); 2 | -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/e.js: -------------------------------------------------------------------------------- 1 | global.order.push("e"); 2 | -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/f.js: -------------------------------------------------------------------------------- 1 | global.order.push("f"); 2 | -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/g.js: -------------------------------------------------------------------------------- 1 | global.order.push("g"); 2 | -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/h.js: -------------------------------------------------------------------------------- 1 | global.order.push("h"); 2 | -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/i.js: -------------------------------------------------------------------------------- 1 | global.order.push("i"); 2 | -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/j.js: -------------------------------------------------------------------------------- 1 | global.order.push("j"); 2 | -------------------------------------------------------------------------------- /test/configCases/entry/issue-1068/k.js: -------------------------------------------------------------------------------- 1 | global.order.push("k"); 2 | -------------------------------------------------------------------------------- /test/configCases/plugins/min-chunk-size/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/configCases/plugins/min-chunk-size/b.js: -------------------------------------------------------------------------------- 1 | export default "b"; 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/custom/a.js: -------------------------------------------------------------------------------- 1 | module.exports = ["a"]; 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/custom/b.js: -------------------------------------------------------------------------------- 1 | module.exports = ["b"]; 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/query/a.js: -------------------------------------------------------------------------------- 1 | module.exports = ["a"]; 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/simple/a.js: -------------------------------------------------------------------------------- 1 | module.exports = ["a"]; 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/simple/ab.js: -------------------------------------------------------------------------------- 1 | module.exports = ["ab"]; 2 | -------------------------------------------------------------------------------- /test/fixtures/errors/no-errors-deprecate.js: -------------------------------------------------------------------------------- 1 | require('./file'); 2 | -------------------------------------------------------------------------------- /test/hotCases/errors/decline/b.js: -------------------------------------------------------------------------------- 1 | export { default } from "./c" 2 | -------------------------------------------------------------------------------- /test/hotCases/runtime/dispose-removed-module/b.js: -------------------------------------------------------------------------------- 1 | export default 1; -------------------------------------------------------------------------------- /test/statsCases/define-plugin/index.js: -------------------------------------------------------------------------------- 1 | module.exports = VALUE; 2 | -------------------------------------------------------------------------------- /test/statsCases/exclude-with-loader/a.txt: -------------------------------------------------------------------------------- 1 | module.exports = "a" 2 | -------------------------------------------------------------------------------- /test/statsCases/import-weak/modules/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-disabled/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-disabled/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-disabled/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-error/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-error/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-error/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-no-hints/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-no-hints/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-no-hints/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-none-error/index.js: -------------------------------------------------------------------------------- 1 | require('does-not-exist') -------------------------------------------------------------------------------- /test/statsCases/resolve-plugin-context/node_modules/xyz/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/watchCases/context/delete-in-context/1/directory/a.js: -------------------------------------------------------------------------------- 1 | // a 2 | -------------------------------------------------------------------------------- /test/watchCases/context/delete-in-context/2/directory/b.js: -------------------------------------------------------------------------------- 1 | // b 2 | -------------------------------------------------------------------------------- /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/extra-async-chunk-advanced/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/loader/test.css: -------------------------------------------------------------------------------- 1 | .some-class { 2 | color: hotpink; 3 | } 4 | -------------------------------------------------------------------------------- /examples/two-explicit-vendor-chunks/pageB.js: -------------------------------------------------------------------------------- 1 | module.exports = "pageB"; -------------------------------------------------------------------------------- /examples/two-explicit-vendor-chunks/pageC.js: -------------------------------------------------------------------------------- 1 | module.exports = "pageC"; -------------------------------------------------------------------------------- /examples/two-explicit-vendor-chunks/vendor1.js: -------------------------------------------------------------------------------- 1 | module.exports = "Vendor1"; -------------------------------------------------------------------------------- /test/binCases/config-name/found-many/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "foo"; 2 | -------------------------------------------------------------------------------- /test/binCases/config-name/found-one/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "foo"; 2 | -------------------------------------------------------------------------------- /test/binCases/config-name/found-one/index2.js: -------------------------------------------------------------------------------- 1 | module.exports = "bar"; 2 | -------------------------------------------------------------------------------- /test/binCases/configFile/profile/index.js: -------------------------------------------------------------------------------- 1 | const foo = require('./foo'); -------------------------------------------------------------------------------- /test/binCases/entry/multi-file/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/binCases/entry/non-hyphenated-args/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "fileA"; -------------------------------------------------------------------------------- /test/binCases/entry/non-hyphenated-args/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "index"; -------------------------------------------------------------------------------- /test/binCases/stats/custom-preset/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "foo"; 2 | -------------------------------------------------------------------------------- /test/binCases/stats/multi-config/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "foo"; 2 | -------------------------------------------------------------------------------- /test/binCases/stats/multi-config/index2.js: -------------------------------------------------------------------------------- 1 | module.exports = "bar"; 2 | -------------------------------------------------------------------------------- /test/binCases/stats/single-config/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "foo"; 2 | -------------------------------------------------------------------------------- /test/binCases/watch/multi-config/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "foo"; 2 | -------------------------------------------------------------------------------- /test/binCases/watch/multi-config/index2.js: -------------------------------------------------------------------------------- 1 | module.exports = "bar"; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/import-context/dir/three.js: -------------------------------------------------------------------------------- 1 | module.exports = 3; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/import-context/dir2/three.js: -------------------------------------------------------------------------------- 1 | module.exports = 3; 2 | -------------------------------------------------------------------------------- /test/cases/chunks/issue-2443/dir/three/file.js: -------------------------------------------------------------------------------- 1 | module.exports = 3; 2 | -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-commonjs/a.js: -------------------------------------------------------------------------------- 1 | export {test} from "./b"; -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star2/a.js: -------------------------------------------------------------------------------- 1 | export * from "./aa"; 2 | -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star2/aa.js: -------------------------------------------------------------------------------- 1 | export var aa = "aa"; 2 | -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star2/bb.js: -------------------------------------------------------------------------------- 1 | export var bb = "bb"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/es6.nominimize/async.js: -------------------------------------------------------------------------------- 1 | module.exports = "async"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-commonjs-mix/module.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-duplicate-export/a.js: -------------------------------------------------------------------------------- 1 | export var x = "a"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-duplicate-export/b.js: -------------------------------------------------------------------------------- 1 | export var x = "b"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-duplicate-export/c.js: -------------------------------------------------------------------------------- 1 | exports.x = "c"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-duplicate-export/d.js: -------------------------------------------------------------------------------- 1 | exports.x = "d"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony/node_modules/abc_c.js: -------------------------------------------------------------------------------- 1 | export var c = "c"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2618/module2.js: -------------------------------------------------------------------------------- 1 | export var value3 = 123; 2 | -------------------------------------------------------------------------------- /test/cases/resolving/context/node_modules/subcontent/test.jade: -------------------------------------------------------------------------------- 1 | xyz: abc -------------------------------------------------------------------------------- /test/cases/runtime/issue-1650/file.js: -------------------------------------------------------------------------------- 1 | __webpack_public_path__ = "ok"; 2 | -------------------------------------------------------------------------------- /test/cases/runtime/module-caching/singluar.js: -------------------------------------------------------------------------------- 1 | module.exports.value = 1; -------------------------------------------------------------------------------- /test/cases/scope-hoisting/chained-reexport/b.js: -------------------------------------------------------------------------------- 1 | export * from "./a"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/intra-references/c.js: -------------------------------------------------------------------------------- 1 | export default "ok"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-cjs/a.js: -------------------------------------------------------------------------------- 1 | exports.named = "named"; 2 | -------------------------------------------------------------------------------- /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/dll-plugin/0-create-dll/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/e1.js: -------------------------------------------------------------------------------- 1 | export * from "./ee1"; 2 | -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/e2.js: -------------------------------------------------------------------------------- 1 | export * from "./ee2"; 2 | -------------------------------------------------------------------------------- /test/configCases/library/0-create-library/a.js: -------------------------------------------------------------------------------- 1 | export var a = "a"; 2 | -------------------------------------------------------------------------------- /test/configCases/parsing/harmony-global/module.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | -------------------------------------------------------------------------------- /test/configCases/plugins/provide-plugin/aaa.js: -------------------------------------------------------------------------------- 1 | module.exports = "aaa"; -------------------------------------------------------------------------------- /test/configCases/rule-set/chaining/abc.js: -------------------------------------------------------------------------------- 1 | module.exports = ["abc"]; 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/chaining/def.js: -------------------------------------------------------------------------------- 1 | module.exports = ["def"]; 2 | -------------------------------------------------------------------------------- /test/configCases/target/node-dynamic-import/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /test/hotCases/errors/self-decline/b.js: -------------------------------------------------------------------------------- 1 | export { default } from "./c" 2 | -------------------------------------------------------------------------------- /test/hotCases/errors/unaccepted/b.js: -------------------------------------------------------------------------------- 1 | export { default } from "./c" 2 | -------------------------------------------------------------------------------- /test/statsCases/limit-chunk-count-plugin/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/statsCases/limit-chunk-count-plugin/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/limit-chunk-count-plugin/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/limit-chunk-count-plugin/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/max-modules/a.js: -------------------------------------------------------------------------------- 1 | require("./c" + __resourceQuery) 2 | -------------------------------------------------------------------------------- /test/statsCases/max-modules/b.js: -------------------------------------------------------------------------------- 1 | require("./a" + __resourceQuery); 2 | -------------------------------------------------------------------------------- /test/statsCases/max-modules/c.js: -------------------------------------------------------------------------------- 1 | require("./b" + __resourceQuery) 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal-performance/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal-performance/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal-performance/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/separate-css-bundle/a/index.js: -------------------------------------------------------------------------------- 1 | require("./file.css"); 2 | -------------------------------------------------------------------------------- /test/statsCases/separate-css-bundle/b/index.js: -------------------------------------------------------------------------------- 1 | require("./file.css"); 2 | -------------------------------------------------------------------------------- /test/watchCases/context/delete-in-context/3/directory/a.js: -------------------------------------------------------------------------------- 1 | DELETE 2 | -------------------------------------------------------------------------------- /test/watchCases/context/delete-in-context/3/directory/b.js: -------------------------------------------------------------------------------- 1 | DELETE 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/watch-ignore-plugin/0/a.js: -------------------------------------------------------------------------------- 1 | export default 0; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/watch-ignore-plugin/1/a.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/watch-ignore-plugin/2/a.js: -------------------------------------------------------------------------------- 1 | export default 2; 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/common-chunk-and-vendor-chunk/utility1.js: -------------------------------------------------------------------------------- 1 | module.exports = "utility1"; -------------------------------------------------------------------------------- /examples/common-chunk-and-vendor-chunk/utility2.js: -------------------------------------------------------------------------------- 1 | module.exports = "utility2"; -------------------------------------------------------------------------------- /examples/common-chunk-and-vendor-chunk/utility3.js: -------------------------------------------------------------------------------- 1 | module.exports = "utility3"; -------------------------------------------------------------------------------- /examples/common-chunk-and-vendor-chunk/vendor1.js: -------------------------------------------------------------------------------- 1 | module.exports = "vendor1"; -------------------------------------------------------------------------------- /examples/common-chunk-and-vendor-chunk/vendor2.js: -------------------------------------------------------------------------------- 1 | module.exports = "vendor2"; -------------------------------------------------------------------------------- /examples/css-bundle/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | background: url(image.png); 3 | } -------------------------------------------------------------------------------- /test/binCases/config-name/found-many/index2.js: -------------------------------------------------------------------------------- 1 | module.exports = "bar"; 2 | -------------------------------------------------------------------------------- /test/binCases/entry/named-entry/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /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-bundle-loader/a/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/cases/compile/deduplication-bundle-loader/b/file.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /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/context/issue-3873/module/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "module"; 2 | -------------------------------------------------------------------------------- /test/cases/loaders/issue-2299/subdir_1/b.json: -------------------------------------------------------------------------------- 1 | { 2 | "b": true 3 | } 4 | -------------------------------------------------------------------------------- /test/cases/loaders/issue-2299/subdir_2/c.json: -------------------------------------------------------------------------------- 1 | { 2 | "c": true 3 | } 4 | -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-commonjs/b.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./c"); -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-commonjs/d.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./e"); -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star2/root3.js: -------------------------------------------------------------------------------- 1 | export * from "./root2"; 2 | -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star2/root6.js: -------------------------------------------------------------------------------- 1 | export * from "./root5"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/context/templates/tmpl.js: -------------------------------------------------------------------------------- 1 | module.exports = "test template"; -------------------------------------------------------------------------------- /test/cases/parsing/es6.nominimize/array.js: -------------------------------------------------------------------------------- 1 | module.exports = [1, 2, 3]; 2 | -------------------------------------------------------------------------------- /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/parsing/template-string/abc/abcTest.js: -------------------------------------------------------------------------------- 1 | export default "ok"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/template-string/sync/syncTest.js: -------------------------------------------------------------------------------- 1 | export default "sync"; 2 | -------------------------------------------------------------------------------- /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/cases/scope-hoisting/indirect-reexport/a.js: -------------------------------------------------------------------------------- 1 | export default "named"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/name-conflicts/module.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-cjs/b.js: -------------------------------------------------------------------------------- 1 | export { named } from "./a"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-cjs/c.js: -------------------------------------------------------------------------------- 1 | export { named } from "./b"; 2 | -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/all-selected/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/all-selected/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/all-selected/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/existing-name/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/existing-name/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/configCases/async-commons-chunk/existing-name/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /test/configCases/commons-chunk-plugin/simple/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/configCases/context-replacement/c/modules/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 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/lib-manifest-plugin/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/configCases/plugins/provide-plugin/bbbccc.js: -------------------------------------------------------------------------------- 1 | module.exports = "bbbccc"; -------------------------------------------------------------------------------- /test/configCases/plugins/provide-plugin/env.js: -------------------------------------------------------------------------------- 1 | module.exports = "development"; -------------------------------------------------------------------------------- /test/configCases/rule-set/simple-use-fn-array/a.js: -------------------------------------------------------------------------------- 1 | module.exports = ["a"]; 2 | -------------------------------------------------------------------------------- /test/configCases/target/node-dynamic-import/dir/one.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/configCases/target/node-dynamic-import/dir/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; 2 | -------------------------------------------------------------------------------- /test/hotCases/runtime/dispose-removed-chunk/a.js: -------------------------------------------------------------------------------- 1 | export default Date.now(); -------------------------------------------------------------------------------- /test/hotPlayground/.gitignore: -------------------------------------------------------------------------------- 1 | *bundle-update.js 2 | bundle.js 3 | records.json -------------------------------------------------------------------------------- /test/statsCases/async-commons-chunk-all-selected/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; -------------------------------------------------------------------------------- /test/statsCases/async-commons-chunk-all-selected/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; -------------------------------------------------------------------------------- /test/statsCases/async-commons-chunk-all-selected/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; -------------------------------------------------------------------------------- /test/statsCases/exclude-with-loader/exclude/b.txt: -------------------------------------------------------------------------------- 1 | module.exports = "b" 2 | -------------------------------------------------------------------------------- /test/statsCases/max-modules-default/a.js: -------------------------------------------------------------------------------- 1 | require("./c" + __resourceQuery) 2 | -------------------------------------------------------------------------------- /test/statsCases/max-modules-default/b.js: -------------------------------------------------------------------------------- 1 | require("./a" + __resourceQuery); 2 | -------------------------------------------------------------------------------- /test/statsCases/max-modules-default/c.js: -------------------------------------------------------------------------------- 1 | require("./b" + __resourceQuery) 2 | -------------------------------------------------------------------------------- /test/statsCases/named-chunks-plugin/modules/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/statsCases/named-chunks-plugin/modules/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/named-chunks-plugin/modules/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-oversize-limit-error/index.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-oversize-limit-error/index2.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-errors-only-error/index.js: -------------------------------------------------------------------------------- 1 | require('does-not-exist') -------------------------------------------------------------------------------- /test/statsCases/reverse-sort-modules/a.js: -------------------------------------------------------------------------------- 1 | require("./c" + __resourceQuery) 2 | -------------------------------------------------------------------------------- /test/statsCases/reverse-sort-modules/c.js: -------------------------------------------------------------------------------- 1 | require("./b" + __resourceQuery) 2 | -------------------------------------------------------------------------------- /test/statsCases/scope-hoisting-multi/common2.js: -------------------------------------------------------------------------------- 1 | export default "common"; 2 | -------------------------------------------------------------------------------- /test/statsCases/scope-hoisting-multi/vendor.js: -------------------------------------------------------------------------------- 1 | export default "vendor"; 2 | -------------------------------------------------------------------------------- /test/statsCases/separate-css-bundle/a/file.css: -------------------------------------------------------------------------------- 1 | body { background: red; } 2 | -------------------------------------------------------------------------------- /test/statsCases/separate-css-bundle/b/file.css: -------------------------------------------------------------------------------- 1 | body { background: green; } 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/switching-harmony/0/cc.js: -------------------------------------------------------------------------------- 1 | module.exports = "cc0"; 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/switching-harmony/0/ch.js: -------------------------------------------------------------------------------- 1 | module.exports = "ch0"; 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/switching-harmony/0/hc.js: -------------------------------------------------------------------------------- 1 | export default "hc0"; 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/switching-harmony/0/hh.js: -------------------------------------------------------------------------------- 1 | export default "hh0"; 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/switching-harmony/1/cc.js: -------------------------------------------------------------------------------- 1 | module.exports = "cc1"; 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/switching-harmony/1/ch.js: -------------------------------------------------------------------------------- 1 | export default "ch1"; 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/switching-harmony/1/hc.js: -------------------------------------------------------------------------------- 1 | module.exports = "hc1"; 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/switching-harmony/1/hh.js: -------------------------------------------------------------------------------- 1 | export default "hh1"; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/watch-ignore-plugin/0/file.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/watch-ignore-plugin/0/foo/0.js: -------------------------------------------------------------------------------- 1 | export default 0; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/watch-ignore-plugin/1/file.js: -------------------------------------------------------------------------------- 1 | export default 2; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/watch-ignore-plugin/1/foo/1.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/watch-ignore-plugin/2/file.js: -------------------------------------------------------------------------------- 1 | export default 3; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/watch-ignore-plugin/2/foo/2.js: -------------------------------------------------------------------------------- 1 | export default 2; 2 | -------------------------------------------------------------------------------- /test/watchCases/simple/simple/0/changing-file.js: -------------------------------------------------------------------------------- 1 | module.exports = "0"; 2 | -------------------------------------------------------------------------------- /test/watchCases/simple/simple/1/changing-file.js: -------------------------------------------------------------------------------- 1 | module.exports = "1"; 2 | -------------------------------------------------------------------------------- /test/watchCases/simple/simple/2/changing-file.js: -------------------------------------------------------------------------------- 1 | module.exports = "2"; 2 | -------------------------------------------------------------------------------- /examples/code-splitting-native-import-context/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); -------------------------------------------------------------------------------- /examples/code-splitting-specify-chunk-name/build.js: -------------------------------------------------------------------------------- 1 | require("../build-common"); 2 | -------------------------------------------------------------------------------- /examples/dll/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); -------------------------------------------------------------------------------- /examples/i18n/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); -------------------------------------------------------------------------------- /examples/scope-hoisting/node_modules/d.js: -------------------------------------------------------------------------------- 1 | // module d 2 | export var a = "d"; 3 | -------------------------------------------------------------------------------- /test/binCases/entry/non-hyphenated-args/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/binCases/watch/multi-config-watch-opt/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "foo"; 2 | -------------------------------------------------------------------------------- /test/binCases/watch/multi-config-watch-opt/index2.js: -------------------------------------------------------------------------------- 1 | module.exports = "bar"; 2 | -------------------------------------------------------------------------------- /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/optimize/tree-shaking-star2/root5.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./root4"); -------------------------------------------------------------------------------- /test/cases/parsing/context/templates/node_modules/xyz.js: -------------------------------------------------------------------------------- 1 | module.exports = "xyz"; -------------------------------------------------------------------------------- /test/cases/parsing/harmony-commonjs/e.js: -------------------------------------------------------------------------------- 1 | exports.a = "a"; 2 | exports.b = "b"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-duplicate-export/reexport.js: -------------------------------------------------------------------------------- 1 | export * from "./a"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-export-precedence/d.js: -------------------------------------------------------------------------------- 1 | export default "default"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2522/module.js: -------------------------------------------------------------------------------- 1 | export var a = 123; 2 | export default 456; -------------------------------------------------------------------------------- /test/cases/parsing/resolve-weak-context/dir/file.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/chained-reexport/a.js: -------------------------------------------------------------------------------- 1 | export var named = "named"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/chained-reexport/c.js: -------------------------------------------------------------------------------- 1 | export { named } from "./b"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/intra-references/a.js: -------------------------------------------------------------------------------- 1 | export { default } from "./b"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/intra-references/b.js: -------------------------------------------------------------------------------- 1 | export { default } from "./c"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-exposed-cjs/a.js: -------------------------------------------------------------------------------- 1 | exports.named = "named"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-exposed-harmony/b.js: -------------------------------------------------------------------------------- 1 | export * from "./a"; 2 | -------------------------------------------------------------------------------- /test/configCases/commons-chunk-plugin/move-entry/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/configCases/commons-chunk-plugin/move-to-parent/a.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/configCases/context-replacement/c/node_modules/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/test.config.js: -------------------------------------------------------------------------------- 1 | exports.noTests = true; 2 | -------------------------------------------------------------------------------- /test/configCases/errors/entry-not-found/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {}; 2 | -------------------------------------------------------------------------------- /test/configCases/filename-template/module-filename-template/test.js: -------------------------------------------------------------------------------- 1 | // empty 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/output-filename/chunk.js: -------------------------------------------------------------------------------- 1 | module.exports = "chunk"; 2 | -------------------------------------------------------------------------------- /test/configCases/library/umd/index.js: -------------------------------------------------------------------------------- 1 | it("should run", function() { 2 | 3 | }); -------------------------------------------------------------------------------- /test/configCases/no-parse/module.exports/not-parsed-a.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/compiler/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "loader not matched"; 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/compiler/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "loader not matched"; 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/simple-use-fn-array/ab.js: -------------------------------------------------------------------------------- 1 | module.exports = ["ab"]; 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/simple/b.js: -------------------------------------------------------------------------------- 1 | module.exports = [require("./a")]; 2 | 3 | -------------------------------------------------------------------------------- /test/configCases/scope-hoisting/named-modules/module2.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; 2 | -------------------------------------------------------------------------------- /test/configCases/target/node-dynamic-import/dir/three.js: -------------------------------------------------------------------------------- 1 | module.exports = 3; 2 | -------------------------------------------------------------------------------- /test/configCases/target/node-dynamic-import/dir2/one.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | -------------------------------------------------------------------------------- /test/configCases/target/node-dynamic-import/dir2/three.js: -------------------------------------------------------------------------------- 1 | module.exports = 3; 2 | -------------------------------------------------------------------------------- /test/configCases/target/node-dynamic-import/dir2/two.js: -------------------------------------------------------------------------------- 1 | module.exports = 2; 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/statsCases/commons-chunk-min-size-0/modules/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-0/modules/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-0/modules/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-0/modules/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-0/modules/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-0/modules/f.js: -------------------------------------------------------------------------------- 1 | module.exports = "f"; 2 | -------------------------------------------------------------------------------- /test/statsCases/limit-chunk-count-plugin/c.js: -------------------------------------------------------------------------------- 1 | import("./d"); 2 | import("./e"); 3 | -------------------------------------------------------------------------------- /test/statsCases/module-trace-disabled-in-error/index.js: -------------------------------------------------------------------------------- 1 | require('does-not-exist') -------------------------------------------------------------------------------- /test/statsCases/module-trace-enabled-in-error/index.js: -------------------------------------------------------------------------------- 1 | require('does-not-exist') -------------------------------------------------------------------------------- /test/statsCases/named-chunks-plugin-async/modules/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-no-async-chunks-shown/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-no-async-chunks-shown/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-no-async-chunks-shown/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-no-async-chunks-shown/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/resolve-plugin-context/node_modules/abc/node_modules/xyz/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/resolve-plugin-context/node_modules/def/node_modules/xyz/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/statsCases/reverse-sort-modules/b.js: -------------------------------------------------------------------------------- 1 | require("./a" + __resourceQuery); 2 | -------------------------------------------------------------------------------- /test/statsCases/scope-hoisting-multi/common_lazy.js: -------------------------------------------------------------------------------- 1 | export default "common"; 2 | -------------------------------------------------------------------------------- /test/watchCases/recover-from-error/missing-module/0/node_modules/module/index.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/watchCases/simple/multi-compiler/0/changing-file.js: -------------------------------------------------------------------------------- 1 | module.exports = "0"; 2 | -------------------------------------------------------------------------------- /test/watchCases/simple/multi-compiler/0/static-file.js: -------------------------------------------------------------------------------- 1 | module.exports = "0"; 2 | -------------------------------------------------------------------------------- /test/watchCases/simple/multi-compiler/1/changing-file.js: -------------------------------------------------------------------------------- 1 | module.exports = "1"; 2 | -------------------------------------------------------------------------------- /examples/chunkhash/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); -------------------------------------------------------------------------------- /test/binCases/plugins/uglifyjsplugin-empty-args/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "foo"; 2 | -------------------------------------------------------------------------------- /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/concord/inner-modules-and-extensions/the-thing.js: -------------------------------------------------------------------------------- 1 | export default "the thing"; -------------------------------------------------------------------------------- /test/cases/loaders/_resources/parent.jade: -------------------------------------------------------------------------------- 1 | p 2 | block content 3 | include included 4 | -------------------------------------------------------------------------------- /test/cases/parsing/es6.nominimize/object.js: -------------------------------------------------------------------------------- 1 | module.exports = {a: 1, b: 2, c: 3}; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/evaluate/resourceQuery/returnRQ.js: -------------------------------------------------------------------------------- 1 | module.exports = __resourceQuery; -------------------------------------------------------------------------------- /test/cases/parsing/issue-2528/helperA.js: -------------------------------------------------------------------------------- 1 | module.exports = function(a) { return a; } 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2622/module.js: -------------------------------------------------------------------------------- 1 | export var a = "a"; 2 | export var b = "b"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-3964/module.js: -------------------------------------------------------------------------------- 1 | import X from "./x" 2 | export default X 3 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-758/file.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return "file"; 3 | }); 4 | -------------------------------------------------------------------------------- /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/cases/scope-hoisting/issue-5020-minimal/src/icon/svg/index.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/issue-5020/src/icon/svg/svg1.js: -------------------------------------------------------------------------------- 1 | export const svg1 = 1; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/issue-5020/src/icon/svg/svg2.js: -------------------------------------------------------------------------------- 1 | export const svg2 = 2; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/issue-5020/src/icon1/svg/svg1.js: -------------------------------------------------------------------------------- 1 | export const svg1 = 10; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/issue-5020/src/icon1/svg/svg2.js: -------------------------------------------------------------------------------- 1 | export const svg2 = 20; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-exposed-cjs/b.js: -------------------------------------------------------------------------------- 1 | export { named } from "./a"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-exposed-cjs/c.js: -------------------------------------------------------------------------------- 1 | export { named } from "./b"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-exposed-harmony/a.js: -------------------------------------------------------------------------------- 1 | export var named = "named"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-exposed-harmony/c.js: -------------------------------------------------------------------------------- 1 | export { named } from "./b"; 2 | -------------------------------------------------------------------------------- /test/configCases/commons-chunk-plugin/hot-multi/common.js: -------------------------------------------------------------------------------- 1 | module.exports = "common"; 2 | -------------------------------------------------------------------------------- /test/configCases/commons-chunk-plugin/hot-multi/shared.js: -------------------------------------------------------------------------------- 1 | module.exports = "shared"; 2 | -------------------------------------------------------------------------------- /test/configCases/commons-chunk-plugin/hot/vendor.js: -------------------------------------------------------------------------------- 1 | module.exports = module.hot; 2 | -------------------------------------------------------------------------------- /test/configCases/context-replacement/c/modules/module-b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/g.abc.js: -------------------------------------------------------------------------------- 1 | module.exports = typeof module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/ignore/only-resource/ignored-module.js: -------------------------------------------------------------------------------- 1 | module.exports = "ignored"; 2 | -------------------------------------------------------------------------------- /test/configCases/ignore/only-resource/normal-module.js: -------------------------------------------------------------------------------- 1 | module.exports = "normal"; 2 | -------------------------------------------------------------------------------- /test/configCases/library/0-create-library/test.config.js: -------------------------------------------------------------------------------- 1 | exports.noTests = true; 2 | -------------------------------------------------------------------------------- /test/configCases/no-parse/no-parse-function/not-parsed-a.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; 2 | -------------------------------------------------------------------------------- /test/configCases/parsing/require.main/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | }; 3 | -------------------------------------------------------------------------------- /test/configCases/plugins/new-watching-plugin/index.js: -------------------------------------------------------------------------------- 1 | it("should run", function() {}); -------------------------------------------------------------------------------- /test/configCases/runtime/opt-in-finally/exception.js: -------------------------------------------------------------------------------- 1 | throw new Error("Exception"); 2 | -------------------------------------------------------------------------------- /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 + ")"); -------------------------------------------------------------------------------- /test/hotCases/chunks/accept-system-import/chunk.js: -------------------------------------------------------------------------------- 1 | export { value } from "./file"; 2 | -------------------------------------------------------------------------------- /test/hotCases/chunks/accept-system-import/chunk2.js: -------------------------------------------------------------------------------- 1 | export { value } from "./file"; 2 | -------------------------------------------------------------------------------- /test/hotCases/errors/decline/c.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | --- 3 | export default 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/errors/events/a.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | --- 3 | export default 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/errors/events/c.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | --- 3 | export default 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/errors/events/e.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | --- 3 | export default 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/errors/events/g.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | --- 3 | export default 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/errors/unaccepted/c.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | --- 3 | export default 2; 4 | -------------------------------------------------------------------------------- /test/statsCases/chunks/c.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./d", "./e"], function(require) {}); 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-Infinity/modules/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-Infinity/modules/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-Infinity/modules/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "c"; 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-Infinity/modules/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-Infinity/modules/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/commons-chunk-min-size-Infinity/modules/f.js: -------------------------------------------------------------------------------- 1 | module.exports = "f"; 2 | -------------------------------------------------------------------------------- /test/statsCases/import-weak/modules/a.js: -------------------------------------------------------------------------------- 1 | import("./b"); 2 | module.exports = "a"; 3 | -------------------------------------------------------------------------------- /test/statsCases/resolve-plugin-context/node_modules/abc/index.js: -------------------------------------------------------------------------------- 1 | require("xyz"); 2 | -------------------------------------------------------------------------------- /test/statsCases/resolve-plugin-context/node_modules/def/index.js: -------------------------------------------------------------------------------- 1 | require("xyz"); 2 | -------------------------------------------------------------------------------- /test/statsCases/scope-hoisting-multi/common.js: -------------------------------------------------------------------------------- 1 | export { default } from "./common2"; 2 | -------------------------------------------------------------------------------- /test/statsCases/scope-hoisting-multi/common_lazy_shared.js: -------------------------------------------------------------------------------- 1 | export default "common"; 2 | -------------------------------------------------------------------------------- /test/statsCases/scope-hoisting-multi/lazy_shared.js: -------------------------------------------------------------------------------- 1 | import "./common_lazy_shared"; 2 | -------------------------------------------------------------------------------- /test/statsCases/scope-hoisting-multi/module_first.js: -------------------------------------------------------------------------------- 1 | export default "module first"; 2 | -------------------------------------------------------------------------------- /test/statsCases/tree-shaking/edge.js: -------------------------------------------------------------------------------- 1 | export var x = 1; 2 | export * from "./unknown2"; -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | test/statsCases/* eol=lf 3 | examples/* eol=lf 4 | bin/* eol=lf -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /examples/scope-hoisting/node_modules/cjs.js: -------------------------------------------------------------------------------- 1 | // module cjs (commonjs) 2 | exports.c = "e"; 3 | -------------------------------------------------------------------------------- /examples/scope-hoisting/node_modules/shared2.js: -------------------------------------------------------------------------------- 1 | // shared2 module 2 | export var y = "y"; 3 | -------------------------------------------------------------------------------- /test/binCases/configFile/profile/foo.js: -------------------------------------------------------------------------------- 1 | require('./bar'); 2 | 3 | console.log('foo'); 4 | -------------------------------------------------------------------------------- /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/loaders/json-loader/some.json: -------------------------------------------------------------------------------- 1 | { 2 | "it": "works", 3 | "number": 42 4 | } 5 | -------------------------------------------------------------------------------- /test/cases/parsing/context/templates/subdir/tmpl.js: -------------------------------------------------------------------------------- 1 | module.exports = "subdir test template"; -------------------------------------------------------------------------------- /test/cases/parsing/harmony-commonjs/b.js: -------------------------------------------------------------------------------- 1 | export * from "./c"; 2 | export * from "./c2"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-commonjs/reexport.js: -------------------------------------------------------------------------------- 1 | export * from "./e"; 2 | import "./e"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony/node_modules/reexport2.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | export * from "abc"; -------------------------------------------------------------------------------- /test/cases/parsing/issue-2006/errors.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Empty dependency/] 3 | ]; -------------------------------------------------------------------------------- /test/cases/parsing/issue-2528-2/index.js: -------------------------------------------------------------------------------- 1 | foo(); 2 | 3 | import { foo } from './module'; 4 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2641/file.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | return "file"; 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-3769/cjs.js: -------------------------------------------------------------------------------- 1 | exports.__esModule = true; 2 | exports.test = 123; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/typeof/errorfile.js: -------------------------------------------------------------------------------- 1 | ))) This results in a syntax error loading this file. -------------------------------------------------------------------------------- /test/cases/scope-hoisting/issue-5020-minimal/src/icon/svg/svg1.js: -------------------------------------------------------------------------------- 1 | export const svg1 = 1; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-exposed-default-cjs/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "default"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/renaming-shorthand-5027/file1.js: -------------------------------------------------------------------------------- 1 | export var test = "test1"; 2 | -------------------------------------------------------------------------------- /test/configCases/code-generation/require-context-id/folder/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "a"; 2 | -------------------------------------------------------------------------------- /test/configCases/code-generation/require-context-id/folder/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/configCases/code-generation/use-strict/harmony-without-strict.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/ee1.js: -------------------------------------------------------------------------------- 1 | export var x1 = 123; 2 | export var y1 = 456; -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/ee2.js: -------------------------------------------------------------------------------- 1 | export var x2 = 123; 2 | export var y2 = 456; -------------------------------------------------------------------------------- /test/configCases/entry/function/a.js: -------------------------------------------------------------------------------- 1 | it("should compile", (done) => { 2 | done() 3 | }); 4 | -------------------------------------------------------------------------------- /test/configCases/entry/function/b.js: -------------------------------------------------------------------------------- 1 | it("should compile", (done) => { 2 | done() 3 | }); 4 | -------------------------------------------------------------------------------- /test/configCases/externals/externals-in-chunk/chunk2.js: -------------------------------------------------------------------------------- 1 | module.exports = require("external2"); -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file1.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file2.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file3.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file4.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file5.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file6.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file7.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file8.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file9.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/library/0-create-library/non-external.js: -------------------------------------------------------------------------------- 1 | export default "non-external"; 2 | -------------------------------------------------------------------------------- /test/configCases/simple/empty-config/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | 3 | }; 4 | -------------------------------------------------------------------------------- /test/configCases/source-map/line-to-line/test.js: -------------------------------------------------------------------------------- 1 | var foo = {}; 2 | 3 | module.exports = foo; -------------------------------------------------------------------------------- /test/configCases/source-map/module-names/test.js: -------------------------------------------------------------------------------- 1 | var foo = {}; 2 | 3 | module.exports = foo; -------------------------------------------------------------------------------- /test/configCases/target/web/node_modules/process/in.js: -------------------------------------------------------------------------------- 1 | module.exports = "in process"; 2 | -------------------------------------------------------------------------------- /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"; -------------------------------------------------------------------------------- /test/hotCases/errors/self-decline/c.js: -------------------------------------------------------------------------------- 1 | export default 1; 2 | --- 3 | export default 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/runtime/accept/file.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | --- 3 | module.exports = 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/runtime/bubble-update/parent-file.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./file"); 2 | -------------------------------------------------------------------------------- /test/statsCases/chunks/index.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | require(["./b"]); 3 | require(["./c"]); -------------------------------------------------------------------------------- /test/statsCases/exclude-with-loader/exclude/c.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": "i will be copied" 3 | } -------------------------------------------------------------------------------- /test/statsCases/preset-minimal/c.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./d", "./e"], function(require) {}); 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal/c.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./d", "./e"], function(require) {}); 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-verbose/c.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./d", "./e"], function(require) {}); 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/caching-harmony/0/changing-module.js: -------------------------------------------------------------------------------- 1 | export default "original"; 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/caching-harmony/0/module.js: -------------------------------------------------------------------------------- 1 | export default "module" + WATCH_STEP; 2 | -------------------------------------------------------------------------------- /test/watchCases/parsing/caching-harmony/1/changing-module.js: -------------------------------------------------------------------------------- 1 | export default "change"; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/automatic-prefetch-plugin/0/foo/a.js: -------------------------------------------------------------------------------- 1 | module.exports = "This "; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/automatic-prefetch-plugin/0/foo/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "is only "; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/automatic-prefetch-plugin/0/foo/c.js: -------------------------------------------------------------------------------- 1 | module.exports = "a test"; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/extract-text-plugin/1/style.css: -------------------------------------------------------------------------------- 1 | .x { 2 | background: red; 3 | } 4 | -------------------------------------------------------------------------------- /test/watchCases/plugins/module-concatenation-plugin/0/bar/a.js: -------------------------------------------------------------------------------- 1 | export default 'This '; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/module-concatenation-plugin/0/bar/b.js: -------------------------------------------------------------------------------- 1 | export default 'is only'; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/module-concatenation-plugin/0/bar/c.js: -------------------------------------------------------------------------------- 1 | export default ' a test'; 2 | -------------------------------------------------------------------------------- /test/watchCases/plugins/module-concatenation-plugin/2/bar/c.js: -------------------------------------------------------------------------------- 1 | export default ' working'; 2 | -------------------------------------------------------------------------------- /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/harmony-library/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); -------------------------------------------------------------------------------- /examples/http2-aggressive-splitting/example.js: -------------------------------------------------------------------------------- 1 | require("react"); 2 | require(["react-dom"]); 3 | -------------------------------------------------------------------------------- /examples/hybrid-routing/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); 3 | -------------------------------------------------------------------------------- /examples/multi-part-library/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); -------------------------------------------------------------------------------- /examples/source-map/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); 3 | -------------------------------------------------------------------------------- /hot/emitter.js: -------------------------------------------------------------------------------- 1 | var EventEmitter = require("events"); 2 | module.exports = new EventEmitter(); 3 | -------------------------------------------------------------------------------- /test/browsertest/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "node-webkit-tests", 3 | "main": "tests.html" 4 | } -------------------------------------------------------------------------------- /test/cases/concord/inner-modules-and-extensions/modules/app/file.js: -------------------------------------------------------------------------------- 1 | export default "file"; 2 | -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star/x.js: -------------------------------------------------------------------------------- 1 | export * from "./x1"; 2 | export * from "./x2"; 3 | -------------------------------------------------------------------------------- /test/cases/optimize/tree-shaking-star2/root4.js: -------------------------------------------------------------------------------- 1 | export * from "./a"; 2 | export * from "./c"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-duplicate-export/1.js: -------------------------------------------------------------------------------- 1 | export var x = "1"; 2 | export * from "./a"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-duplicate-export/2.js: -------------------------------------------------------------------------------- 1 | export * from "./a"; 2 | export var x = "1"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-duplicate-export/3.js: -------------------------------------------------------------------------------- 1 | export * from "./a"; 2 | export * from "./b"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-duplicate-export/4.js: -------------------------------------------------------------------------------- 1 | export * from "./b"; 2 | export * from "./a"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-duplicate-export/5.js: -------------------------------------------------------------------------------- 1 | export * from "./c"; 2 | export * from "./d"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2600/errors.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Can't resolve 'missing'/] 3 | ]; -------------------------------------------------------------------------------- /test/cases/parsing/issue-2895/a.js: -------------------------------------------------------------------------------- 1 | export const a = { 2 | x: 1 3 | }, b = { 4 | x: 2 5 | } 6 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-3116/file.js: -------------------------------------------------------------------------------- 1 | export default "default"; 2 | export var abc = "abc"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-3116/file2.js: -------------------------------------------------------------------------------- 1 | export default "default"; 2 | export var abc = "abc"; 3 | -------------------------------------------------------------------------------- /test/cases/parsing/strict-mode/abc.js: -------------------------------------------------------------------------------- 1 | export default function() { 2 | return typeof this; 3 | }; -------------------------------------------------------------------------------- /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/cases/scope-hoisting/export-namespace/ns1.js: -------------------------------------------------------------------------------- 1 | export var a = "a"; 2 | export var b = "b"; 3 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/export-namespace/ns2.js: -------------------------------------------------------------------------------- 1 | export var a = "a"; 2 | export var b = "b"; 3 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/indirect-reexport/b.js: -------------------------------------------------------------------------------- 1 | import named from "./a"; 2 | export { named } 3 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-exposed-default-cjs/b.js: -------------------------------------------------------------------------------- 1 | export { default } from "./a"; 2 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/reexport-exposed-default-cjs/c.js: -------------------------------------------------------------------------------- 1 | export { default } from "./b"; 2 | -------------------------------------------------------------------------------- /test/configCases/code-generation/use-strict/harmony-without-strict2.js: -------------------------------------------------------------------------------- 1 | export default "a"; 2 | -------------------------------------------------------------------------------- /test/configCases/context-replacement/System.import/modules/module-b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/configCases/context-replacement/a/new-context/node_modules/replaced.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; -------------------------------------------------------------------------------- /test/configCases/delegated-hash/simple/bundle2.js: -------------------------------------------------------------------------------- 1 | module.exports = ["a", "b", "c", "d", "e"]; 2 | -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/_e.js: -------------------------------------------------------------------------------- 1 | import "./e1"; 2 | import "./e2"; 3 | import "./e"; -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/e.js: -------------------------------------------------------------------------------- 1 | export * from "./e1"; 2 | export * from "./ee2"; 3 | -------------------------------------------------------------------------------- /test/configCases/dll-plugin/1-use-dll/e.js: -------------------------------------------------------------------------------- 1 | export * from "dll/e1"; 2 | export * from "dll/e2"; 3 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file10.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file11.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file12.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file13.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file14.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/hash-length/hashed-module-ids/files/file15.js: -------------------------------------------------------------------------------- 1 | module.exports = module.id; 2 | -------------------------------------------------------------------------------- /test/configCases/ignore/only-resource-context/src/normal-module.js: -------------------------------------------------------------------------------- 1 | module.exports = "normal"; 2 | -------------------------------------------------------------------------------- /test/configCases/issues/issue-3596/index.js: -------------------------------------------------------------------------------- 1 | it("should compile correctly", function() {}); 2 | -------------------------------------------------------------------------------- /test/configCases/library/1-use-library/node_modules/external.js: -------------------------------------------------------------------------------- 1 | module.exports = ["external"]; 2 | -------------------------------------------------------------------------------- /test/configCases/parsing/issue-336/node_modules/aaa.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | test: "test" 3 | }; -------------------------------------------------------------------------------- /test/configCases/plugins/banner-plugin/test.js: -------------------------------------------------------------------------------- 1 | var foo = {}; 2 | 3 | module.exports = foo; 4 | -------------------------------------------------------------------------------- /test/configCases/plugins/banner-plugin/vendors.js: -------------------------------------------------------------------------------- 1 | var bar = {}; 2 | 3 | module.exports = bar; 4 | -------------------------------------------------------------------------------- /test/configCases/rule-set/custom/call-a.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./a" + __resourceQuery); 2 | -------------------------------------------------------------------------------- /test/configCases/rule-set/simple-use-fn-array/b.js: -------------------------------------------------------------------------------- 1 | module.exports = [require("./a")]; 2 | 3 | -------------------------------------------------------------------------------- /test/configCases/source-map/nosources/test.js: -------------------------------------------------------------------------------- 1 | var foo = {}; 2 | 3 | module.exports = foo; 4 | -------------------------------------------------------------------------------- /test/configCases/target/webworker/node_modules/process/in.js: -------------------------------------------------------------------------------- 1 | module.exports = "in process"; 2 | -------------------------------------------------------------------------------- /test/fixtures/chunks.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./a"], function(require) { 2 | require("./b"); 3 | }); -------------------------------------------------------------------------------- /test/statsCases/performance-error/c.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./d", "./e"], function(require) {}); 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-no-async-chunks-shown/index.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | require("./b"); 3 | -------------------------------------------------------------------------------- /test/statsCases/preset-detailed/c.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./d", "./e"], function(require) {}); 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-minimal/index.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | require(["./b"]); 3 | require(["./c"]); -------------------------------------------------------------------------------- /test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/b.js: -------------------------------------------------------------------------------- 1 | module.exports = "b"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/d.js: -------------------------------------------------------------------------------- 1 | module.exports = "d"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/e.js: -------------------------------------------------------------------------------- 1 | module.exports = "e"; 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal/index.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | require(["./b"]); 3 | require(["./c"]); -------------------------------------------------------------------------------- /test/statsCases/preset-verbose/index.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | require(["./b"]); 3 | require(["./c"]); -------------------------------------------------------------------------------- /test/statsCases/tree-shaking/reexport-star-known.js: -------------------------------------------------------------------------------- 1 | export * from "./a"; 2 | export * from "./b"; -------------------------------------------------------------------------------- /test/watchCases/plugins/module-concatenation-plugin/1/bar/b.js: -------------------------------------------------------------------------------- 1 | export default 'should be'; 2 | -------------------------------------------------------------------------------- /examples/aggressive-merging/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); 3 | -------------------------------------------------------------------------------- /examples/chunkhash/vendor.js: -------------------------------------------------------------------------------- 1 | // some vendor lib (should be in common chunk) 2 | export default 123; 3 | -------------------------------------------------------------------------------- /examples/coffee-script/cup2.coffee: -------------------------------------------------------------------------------- 1 | console.log "yeah coffee-script" 2 | 3 | module.exports = 42 4 | -------------------------------------------------------------------------------- /examples/commonjs/example.js: -------------------------------------------------------------------------------- 1 | var inc = require('./increment').increment; 2 | var a = 1; 3 | inc(a); // 2 -------------------------------------------------------------------------------- /examples/explicit-vendor-chunk/pageA.js: -------------------------------------------------------------------------------- 1 | console.log(require("./vendor")); 2 | module.exports = "pageA"; -------------------------------------------------------------------------------- /examples/explicit-vendor-chunk/pageB.js: -------------------------------------------------------------------------------- 1 | console.log(require("./vendor2")); 2 | module.exports = "pageB"; -------------------------------------------------------------------------------- /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 | }; -------------------------------------------------------------------------------- /examples/scope-hoisting/lazy.js: -------------------------------------------------------------------------------- 1 | export * from "c"; 2 | import * as d from "d"; 3 | export { d }; 4 | -------------------------------------------------------------------------------- /test/benchmarkCases/many-chunks/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | entry: "./index" 3 | }; 4 | -------------------------------------------------------------------------------- /test/benchmarkCases/many-modules/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | entry: "./index" 3 | }; 4 | -------------------------------------------------------------------------------- /test/binCases/config-name/not-found/test.opts: -------------------------------------------------------------------------------- 1 | --config ./webpack.config.js 2 | --config-name foo 3 | -------------------------------------------------------------------------------- /test/binCases/config-name/not-found/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = [{ 2 | name: "bar" 3 | }]; 4 | -------------------------------------------------------------------------------- /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/concord/inner-modules-and-extensions/modules/app/file2.js: -------------------------------------------------------------------------------- 1 | export default "wrong file2"; 2 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-commonjs/a.js: -------------------------------------------------------------------------------- 1 | export default function test() { 2 | return "OK"; 3 | } 4 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-spec/order-a.js: -------------------------------------------------------------------------------- 1 | import { log } from "./order-tracker"; 2 | log("a"); 3 | -------------------------------------------------------------------------------- /test/cases/parsing/harmony-spec/order-b.js: -------------------------------------------------------------------------------- 1 | import { log } from "./order-tracker"; 2 | log("b"); 3 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2570/fn.js: -------------------------------------------------------------------------------- 1 | export default function() { return [].slice.call(arguments); } 2 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-627/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Critical dependency/] 3 | ]; 4 | -------------------------------------------------------------------------------- /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/cases/scope-hoisting/indirect-reexport/c.js: -------------------------------------------------------------------------------- 1 | import { named } from "./b"; 2 | export { named } 3 | -------------------------------------------------------------------------------- /test/configCases/compiletime/error-not-found/errors.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | /not found/ 3 | ]; 4 | -------------------------------------------------------------------------------- /test/configCases/compiletime/error-not-found/stub.js: -------------------------------------------------------------------------------- 1 | const foo = 'bar' 2 | 3 | export default foo 4 | -------------------------------------------------------------------------------- /test/configCases/compiletime/warn-not-found/stub.js: -------------------------------------------------------------------------------- 1 | const foo = 'bar' 2 | 3 | export default foo 4 | -------------------------------------------------------------------------------- /test/configCases/compiletime/warn-not-found/warnings.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | /not found/ 3 | ]; 4 | -------------------------------------------------------------------------------- /test/configCases/devtools/harmony-eval/index.js: -------------------------------------------------------------------------------- 1 | export {} 2 | it("should run fine", function() {}); 3 | -------------------------------------------------------------------------------- /test/configCases/entry/function-promise/a.js: -------------------------------------------------------------------------------- 1 | it("should compile", (done) => { 2 | done() 3 | }); 4 | -------------------------------------------------------------------------------- /test/configCases/entry/function-promise/b.js: -------------------------------------------------------------------------------- 1 | it("should compile", (done) => { 2 | done() 3 | }); 4 | -------------------------------------------------------------------------------- /test/configCases/ignore/only-resource-context/src/ignored-module.js: -------------------------------------------------------------------------------- 1 | module.exports = "ignored"; 2 | -------------------------------------------------------------------------------- /test/configCases/ignore/resource-and-context/folder-a/ignored-module.js: -------------------------------------------------------------------------------- 1 | module.exports = "ignored"; 2 | -------------------------------------------------------------------------------- /test/configCases/ignore/resource-and-context/folder-b/ignored-module.js: -------------------------------------------------------------------------------- 1 | module.exports = "ignored"; 2 | -------------------------------------------------------------------------------- /test/configCases/plugins/banner-plugin-hashing/test.js: -------------------------------------------------------------------------------- 1 | var foo = {}; 2 | 3 | module.exports = foo; 4 | -------------------------------------------------------------------------------- /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 | }; -------------------------------------------------------------------------------- /test/hotCases/chunks/system-import/file.js: -------------------------------------------------------------------------------- 1 | export var value = 1; 2 | --- 3 | export var value = 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/chunks/system-import/file2.js: -------------------------------------------------------------------------------- 1 | export var value = 3; 2 | --- 3 | export var value = 4; 4 | -------------------------------------------------------------------------------- /test/hotCases/harmony/auto-import/file.js: -------------------------------------------------------------------------------- 1 | export var value = 1; 2 | --- 3 | export var value = 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/runtime/bubble-update/file.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | --- 3 | module.exports = 2; 4 | -------------------------------------------------------------------------------- /test/statsCases/named-chunks-plugin-async/modules/a.js: -------------------------------------------------------------------------------- 1 | import("./b"); 2 | module.exports = "a"; 3 | -------------------------------------------------------------------------------- /test/statsCases/performance-disabled/c.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./d", "./e"], function(require) {}); 2 | -------------------------------------------------------------------------------- /test/statsCases/performance-no-hints/c.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./d", "./e"], function(require) {}); 2 | -------------------------------------------------------------------------------- /test/statsCases/preset-detailed/index.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | require(["./b"]); 3 | require(["./c"]); -------------------------------------------------------------------------------- /test/statsCases/tree-shaking/reexport-known.js: -------------------------------------------------------------------------------- 1 | export { a } from "./a"; 2 | export { b } from "./b"; -------------------------------------------------------------------------------- /examples/explicit-vendor-chunk/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /examples/scope-hoisting/node_modules/b.js: -------------------------------------------------------------------------------- 1 | // module b 2 | export function a() { 3 | return "b"; 4 | }; 5 | -------------------------------------------------------------------------------- /examples/two-explicit-vendor-chunks/vendor2.js: -------------------------------------------------------------------------------- 1 | module.exports = "Vendor2"; 2 | require("./vendor1"); 3 | -------------------------------------------------------------------------------- /test/cases/concord/inner-modules-and-extensions/modules/app/file2.my-js: -------------------------------------------------------------------------------- 1 | export default "correct file2"; 2 | -------------------------------------------------------------------------------- /test/cases/loaders/_css/folder/stylesheet-import3.css: -------------------------------------------------------------------------------- 1 | .rule-import2 { 2 | background: red !important; 3 | } -------------------------------------------------------------------------------- /test/cases/parsing/extract-amd/circular.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | module.exports = require("./circular"); -------------------------------------------------------------------------------- /test/cases/parsing/issue-2349/a.js: -------------------------------------------------------------------------------- 1 | export var x = 1 // named export 2 | export default 0 // default export -------------------------------------------------------------------------------- /test/cases/parsing/issue-2528/helperB.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | mark: function(a) { return a(); } 3 | } 4 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2641/throwing.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | throw new Error('message'); 3 | }); 4 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-758/throwing.js: -------------------------------------------------------------------------------- 1 | define(function() { 2 | throw new Error('message'); 3 | }); 4 | -------------------------------------------------------------------------------- /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/cases/scope-hoisting/export-namespace/module1.js: -------------------------------------------------------------------------------- 1 | import * as ns from "./ns1"; 2 | export { ns }; 3 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/export-namespace/module2.js: -------------------------------------------------------------------------------- 1 | import * as ns from "./ns2"; 2 | export { ns }; 3 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/issue-5096/b.js: -------------------------------------------------------------------------------- 1 | import { a } from './index'; 2 | 3 | export const b = a(); 4 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/issue-5443/module.js: -------------------------------------------------------------------------------- 1 | export default "default"; 2 | export var named = "named"; 3 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/simple/module.js: -------------------------------------------------------------------------------- 1 | export default "default"; 2 | export var named = "named"; 3 | -------------------------------------------------------------------------------- /test/configCases/code-generation/use-strict/harmony-with-strict.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | export default "a"; 3 | -------------------------------------------------------------------------------- /test/configCases/context-replacement/b/error.js: -------------------------------------------------------------------------------- 1 | This 2 | should 3 | result 4 | in 5 | an 6 | error 7 | }]) -------------------------------------------------------------------------------- /test/configCases/devtools/harmony-eval/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | devtool: "eval" 3 | }; 4 | -------------------------------------------------------------------------------- /test/configCases/plugins/banner-plugin-hashing/vendors.js: -------------------------------------------------------------------------------- 1 | var bar = {}; 2 | 3 | module.exports = bar; 4 | -------------------------------------------------------------------------------- /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/simple/multi-compiler/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | { 3 | 4 | } 5 | ]; 6 | -------------------------------------------------------------------------------- /test/configCases/source-map/sources-array-production/test.js: -------------------------------------------------------------------------------- 1 | var foo = {}; 2 | 3 | module.exports = foo; -------------------------------------------------------------------------------- /test/configCases/target/buffer-default/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: "web", 3 | }; 4 | -------------------------------------------------------------------------------- /test/configCases/target/webworker/node_modules/process/index.js: -------------------------------------------------------------------------------- 1 | throw new Error("Should not be loaded"); 2 | -------------------------------------------------------------------------------- /test/fixtures/node_modules/complexm/web_modules/m1/index.js: -------------------------------------------------------------------------------- 1 | module.exports = " :) " + require("m2/b.js"); -------------------------------------------------------------------------------- /test/statsCases/performance-error/index.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | require(["./b"]); 3 | require(["./c"]); 4 | -------------------------------------------------------------------------------- /test/statsCases/preset-normal-performance/c.js: -------------------------------------------------------------------------------- 1 | require.ensure(["./d", "./e"], function(require) {}); 2 | -------------------------------------------------------------------------------- /test/statsCases/resolve-plugin-context/index.js: -------------------------------------------------------------------------------- 1 | require("abc"); 2 | require("def"); 3 | require("xyz"); 4 | -------------------------------------------------------------------------------- /examples/aggressive-merging/pageA.js: -------------------------------------------------------------------------------- 1 | require(["./common"], function(common) { 2 | common(require("./a")); 3 | }); -------------------------------------------------------------------------------- /examples/aggressive-merging/pageB.js: -------------------------------------------------------------------------------- 1 | require(["./common"], function(common) { 2 | common(require("./b")); 3 | }); -------------------------------------------------------------------------------- /examples/aggressive-merging/pageC.js: -------------------------------------------------------------------------------- 1 | require(["./a"], function(a) { 2 | console.log(a + require("./b")); 3 | }); -------------------------------------------------------------------------------- /examples/code-splitting-native-import-context/templates/bar.js: -------------------------------------------------------------------------------- 1 | var bar = "bar"; 2 | 3 | export default bar; 4 | -------------------------------------------------------------------------------- /examples/code-splitting-native-import-context/templates/baz.js: -------------------------------------------------------------------------------- 1 | var baz = "baz"; 2 | 3 | export default baz; 4 | -------------------------------------------------------------------------------- /examples/code-splitting-native-import-context/templates/foo.js: -------------------------------------------------------------------------------- 1 | var foo = "foo"; 2 | 3 | export default foo; 4 | -------------------------------------------------------------------------------- /examples/code-splitting-specify-chunk-name/templates/bar.js: -------------------------------------------------------------------------------- 1 | var bar = "bar"; 2 | 3 | export default bar; 4 | -------------------------------------------------------------------------------- /examples/code-splitting-specify-chunk-name/templates/baz.js: -------------------------------------------------------------------------------- 1 | var baz = "baz"; 2 | 3 | export default baz; 4 | -------------------------------------------------------------------------------- /examples/code-splitting-specify-chunk-name/templates/foo.js: -------------------------------------------------------------------------------- 1 | var foo = "foo"; 2 | 3 | export default foo; 4 | -------------------------------------------------------------------------------- /examples/common-chunk-and-vendor-chunk/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); 3 | -------------------------------------------------------------------------------- /examples/dll-app-and-vendor/1-app/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../../build-common"); 3 | -------------------------------------------------------------------------------- /examples/scope-hoisting/node_modules/a.js: -------------------------------------------------------------------------------- 1 | // module a 2 | export var a = "a"; 3 | export * from "shared"; 4 | -------------------------------------------------------------------------------- /examples/two-explicit-vendor-chunks/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../build-common"); 3 | -------------------------------------------------------------------------------- /test/benchmarkCases/large-ast/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | entry: ["./index", "./index2"] 3 | }; 4 | -------------------------------------------------------------------------------- /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/parsing/harmony-import-targets/x.js: -------------------------------------------------------------------------------- 1 | export var x = 1; 2 | export function f(x) { 3 | return x; 4 | } -------------------------------------------------------------------------------- /test/cases/parsing/issue-1600/file.js: -------------------------------------------------------------------------------- 1 | // module.js 2 | export default(function () { 3 | return 1; 4 | }); 5 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2528-2/module.js: -------------------------------------------------------------------------------- 1 | export function foo() { 2 | it("should run", function() {}); 3 | } 4 | -------------------------------------------------------------------------------- /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/cases/scope-hoisting/import-order/module.js: -------------------------------------------------------------------------------- 1 | import { track } from "./tracker"; 2 | 3 | track("module"); 4 | -------------------------------------------------------------------------------- /test/cases/scope-hoisting/renaming-shorthand-5027/file2.js: -------------------------------------------------------------------------------- 1 | var [ test ] = [ "test2" ]; 2 | export { test } 3 | -------------------------------------------------------------------------------- /test/configCases/additional-pass/simple/index.js: -------------------------------------------------------------------------------- 1 | it("should compile", function(done) { 2 | done(); 3 | }); 4 | -------------------------------------------------------------------------------- /test/configCases/code-generation/use-strict/harmony-with-strict3.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | export default "a"; 3 | -------------------------------------------------------------------------------- /test/configCases/dll-plugin/0-create-dll/b.js: -------------------------------------------------------------------------------- 1 | module.exports = function() { 2 | return import("./c"); 3 | } 4 | -------------------------------------------------------------------------------- /test/configCases/dll-plugin/3-use-dll-with-hashid/e1.js: -------------------------------------------------------------------------------- 1 | export * from "dll/e1"; 2 | export * from "dll/e2"; 3 | -------------------------------------------------------------------------------- /test/configCases/externals/externals-in-commons-chunk/other.js: -------------------------------------------------------------------------------- 1 | require("external"); 2 | require("external3"); 3 | -------------------------------------------------------------------------------- /test/configCases/records/issue-295/loader.js: -------------------------------------------------------------------------------- 1 | module.exports = function(source) { 2 | return source; 3 | }; 4 | -------------------------------------------------------------------------------- /test/configCases/records/issue-2991/pkgs/somepackage/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "browser": { "foo": false } 3 | } 4 | -------------------------------------------------------------------------------- /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/strict-mode-global/webpack.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | target: "web" 3 | }; 4 | -------------------------------------------------------------------------------- /test/fixtures/abc.js: -------------------------------------------------------------------------------- 1 | exports.a = require("./a"); 2 | exports.b = require("./b"); 3 | exports.c = require("./c"); -------------------------------------------------------------------------------- /test/hotCases/chunks/accept-system-import/file.js: -------------------------------------------------------------------------------- 1 | export var value = 1; 2 | --- 3 | export var value = 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/chunks/dynamic-system-import/file.js: -------------------------------------------------------------------------------- 1 | export var value = 1; 2 | --- 3 | export var value = 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/harmony/auto-import-multiple/commonjs.js: -------------------------------------------------------------------------------- 1 | module.exports = 10; 2 | --- 3 | module.exports = 20; 4 | -------------------------------------------------------------------------------- /test/hotCases/harmony/auto-import-multiple/file.js: -------------------------------------------------------------------------------- 1 | export var value = 1; 2 | --- 3 | export var value = 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/recover/recover-after-loader-error/errors1.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Loader error/] 3 | ] 4 | -------------------------------------------------------------------------------- /test/hotCases/recover/recover-after-parsing-error/errors1.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | [/Module parse failed/] 3 | ] -------------------------------------------------------------------------------- /test/hotCases/runtime/update-multiple-modules/fileA.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | --- 3 | module.exports = 2; 4 | -------------------------------------------------------------------------------- /test/hotCases/runtime/update-multiple-modules/fileB.js: -------------------------------------------------------------------------------- 1 | module.exports = 1; 2 | --- 3 | module.exports = 2; 4 | -------------------------------------------------------------------------------- /test/statsCases/named-chunks-plugin-async/entry.js: -------------------------------------------------------------------------------- 1 | import("./modules/a"); 2 | import("./modules/b"); 3 | 4 | -------------------------------------------------------------------------------- /test/statsCases/performance-disabled/index.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | require(["./b"]); 3 | require(["./c"]); 4 | -------------------------------------------------------------------------------- /test/statsCases/performance-no-hints/index.js: -------------------------------------------------------------------------------- 1 | require("./a"); 2 | require(["./b"]); 3 | require(["./c"]); 4 | -------------------------------------------------------------------------------- /test/statsCases/scope-hoisting-multi/lazy_first.js: -------------------------------------------------------------------------------- 1 | import "./common_lazy"; 2 | import "./common_lazy_shared"; 3 | -------------------------------------------------------------------------------- /test/watchCases/recover-from-error/missing-module/1/node_modules/some-module/index.js: -------------------------------------------------------------------------------- 1 | module.exports = "ok"; 2 | -------------------------------------------------------------------------------- /examples/css-bundle/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/webpack/master/examples/css-bundle/image.png -------------------------------------------------------------------------------- /examples/dll-app-and-vendor/0-vendor/build.js: -------------------------------------------------------------------------------- 1 | global.NO_TARGET_ARGS = true; 2 | require("../../build-common"); 3 | -------------------------------------------------------------------------------- /examples/dll-app-and-vendor/node_modules/example-vendor.js: -------------------------------------------------------------------------------- 1 | export function square(n) { 2 | return n * n; 3 | } 4 | -------------------------------------------------------------------------------- /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/fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/webpack/master/test/browsertest/img/fail.png -------------------------------------------------------------------------------- /test/browsertest/img/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/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/parsing/harmony-spec/live.js: -------------------------------------------------------------------------------- 1 | export var value = 0; 2 | export function add(x) { 3 | value += x; 4 | }; 5 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2006/index.js: -------------------------------------------------------------------------------- 1 | it("should compile", function() {}); 2 | if(/./.test("")) 3 | require(""); 4 | -------------------------------------------------------------------------------- /test/cases/parsing/issue-2523/module.js: -------------------------------------------------------------------------------- 1 | export default class A {} 2 | export class B {} 3 | 4 | export const c = 'c'; -------------------------------------------------------------------------------- /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/resolving/issue-2986/node_modules/any-loader.js: -------------------------------------------------------------------------------- 1 | module.exports = function(source) { return source; } 2 | -------------------------------------------------------------------------------- /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/cases/scope-hoisting/renaming-shorthand-5027/file3.js: -------------------------------------------------------------------------------- 1 | var { test } = { test: "test3" }; 2 | export { test } 3 | -------------------------------------------------------------------------------- /test/configCases/delegated/simple/bundle.js: -------------------------------------------------------------------------------- 1 | module.exports = function(req) { 2 | return ["a", "b", "c"][req]; 3 | } -------------------------------------------------------------------------------- /test/configCases/devtools/harmony-eval-source-map/index.js: -------------------------------------------------------------------------------- 1 | export {} 2 | it("should run fine", function() {}); 3 | -------------------------------------------------------------------------------- /test/configCases/ignore/resource-and-context-contextmodule/folder-a/ignored-module.js: -------------------------------------------------------------------------------- 1 | module.exports = "ignored"; 2 | -------------------------------------------------------------------------------- /test/configCases/ignore/resource-and-context-contextmodule/folder-b/ignored-module.js: -------------------------------------------------------------------------------- 1 | module.exports = "ignored"; 2 | -------------------------------------------------------------------------------- /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; -------------------------------------------------------------------------------- /test/hotCases/errors/events/d.js: -------------------------------------------------------------------------------- 1 | import e from "./e"; 2 | 3 | if(module.hot) { 4 | module.hot.decline(); 5 | } 6 | -------------------------------------------------------------------------------- /test/hotCases/errors/events/f.js: -------------------------------------------------------------------------------- 1 | import g from "./g"; 2 | 3 | if(module.hot) { 4 | module.hot.decline("./g"); 5 | } --------------------------------------------------------------------------------