Commit Graph

107 Commits

Author SHA1 Message Date
Tobias Koppers fd4b3c503a pretty files 2019-06-09 11:23:42 +02:00
Tobias Koppers b6090b6943 delay prefetching until all initial code is evaluated
add test case
fix bug in Chunk.getChildIdsByOrdersMap
2019-05-10 23:10:32 +02:00
Tobias Koppers 9da00cdb42 fixes #8110 2018-10-02 14:52:52 +02:00
Tobias Koppers 13b2cdd5ae hash content of bootstrap code
instead of trying to calculate it
from inputs

fixes #8027
fixes #7984
2018-09-13 23:25:26 +02:00
Tobias Koppers 1ad71e01f9 add helpful error when importing wasm in initial chunk 2018-07-02 16:18:49 +02:00
Tobias Koppers 2ac6a85482 cleanup DependencyTemplates 2018-06-25 16:15:17 +02:00
Tobias Koppers 5b4547e0ac cleanup Hash types 2018-06-25 10:44:54 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Tobias Koppers 770847171d Merge branch 'master' into bugfix/namespace-object
# Conflicts:
#	lib/RuntimeTemplate.js
2018-05-28 22:42:21 +02:00
Tobias Koppers f903cd3ef9 mangle exports of wasm modules
mangle webpack init function
store WebAssembly.Instance.exports directly
connect wasm modules directly when already cached
2018-05-11 20:57:18 +02:00
Tobias Koppers d4a04b8934 Merge branch 'master' into bugfix/namespace-object
# Conflicts:
#	test/__snapshots__/StatsTestCases.test.js.snap
2018-05-09 10:27:23 +02:00
Tobias Koppers f2ad440de8 More strict linting of jsdocs
Use TODO over any when type is possible
2018-05-08 14:53:33 +02:00
Tobias Koppers a926a19715 create better namespace objects
avoid using Object.assign (fixes #7162)
2018-05-03 12:55:00 +02:00
Sean Larkin fdcafe6614 fix(types): fix typo, had type getRenderManifest to ensure proper call signatures for chunk and main templates 2018-05-01 10:47:14 -05:00
Sean Larkin 4c7861e7f8 update ts nightly and add Chunk and Module refs 2018-04-24 06:44:50 -07:00
Sean Larkin 0fcd5e5775 refactor(template): add type support to maint-template and template 2018-04-20 18:35:02 -06:00
Florent Cailhol f1092ad516 Update prettier toolchain 2018-03-26 16:56:10 +02:00
Florent Cailhol 3983803d30 Destructure 'require' to improve readability 2018-03-22 12:05:58 +01:00
Josh Soref 581069bb56 spelling: uncaught 2018-02-26 02:50:05 +00:00
Josh Soref 54d55ff9d6 spelling: property 2018-02-26 02:40:14 +00:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Tobias Koppers 66bd2eab83 make render manifest extensible
move JS and WASM specific template stuff into plugins
2018-01-24 09:39:49 +01:00
Tobias Koppers 0206949075 remove unused code 2018-01-21 11:12:36 +01:00
Tobias Koppers 18ae73dad4 Refactor chunk graph
Chunks are now always in ChunkGroups
ChunkGroups have parents and children, Chunks no longer have this
AsyncDependenciesBlocks point to a ChunkGroup instead of a list of chunks
Entrypoint is now a ChunkGroup (extends from it)
move stuff graph modification methods into GraphHelpers
Change chunk id recording to source-based
Chunks have parents, siblings and children in Stats
rename AutomaticCommonsChunksPlugin to SplitChunksPlugin
add request property to origin (ChunkGroup)
remove moveToParent from AggressiveMergingPlugin
fix issues with AggressiveSplittingPlugin
remove CommonsChunkPlugin
add optimization.runtimeChunk (RuntimeChunkPlugin)
fix a filename bug for initial chunks
remove extract-text-webpack-plugin from test suite
add DebugHash to help debugging hash issues
fix issues with entry modules in different chunk as runtime
redo optimization.splitChunks options
Compilation.entrypoints is now a Map
Compilation.chunkGroups has been added
remove some unittests
update examples
update tests with CommonsChunkPlugin
2018-01-19 19:21:30 +01:00
Tobias Koppers ca1c91c576 Merge branch 'master' into next
# Conflicts:
#	lib/Chunk.js
#	lib/MainTemplate.js
#	test/statsCases/commons-chunk-min-size-0/expected.txt
#	test/statsCases/commons-plugin-issue-4980/expected.txt
#	test/statsCases/named-chunks-plugin/expected.txt
2018-01-04 21:47:33 +01:00
nename0 d1e0bec48e Fix: the require-ensure only includes non-initial chunks 2018-01-04 19:25:03 +01:00
Florent Cailhol f737b26260 Remove some plugin calls 2017-12-14 14:42:49 +01:00
Tobias Koppers e8da5a94e8
Merge branch 'next' into refactor/static-template 2017-12-08 08:45:55 +01:00
Florent Cailhol dcfe3cc4df Remove `webpack/bootstrap` hash in source map
Before this change, a hash was appended to `webpack:///webpack/bootstrap`
and appeared in source maps' `sources`.

Before:

```js
{"version":3,"sources":["webpack:///webpack/bootstrap a0df2f8d793658baad72",…
```

Now:

```js
{"version":3,"sources":["webpack:///webpack/bootstrap",…
```

Quoting @sokra:

> Send a PR to remove this hash in the next branch. It's not needed anyway...

Fix #6082
2017-12-07 17:01:57 +01:00
Tobias Koppers 16ee68b5f9 make all methods on Template static 2017-12-07 09:49:50 +01:00
Tobias Koppers 56328a7cab upgrate tapable in Templates 2017-11-28 18:43:01 +01:00
Tobias Koppers 2201b860a5 Add mode option and choose defaults depending on mode
add optimization options
use development mode for watch/hot/config tests
use production mode for integration/stats tests
create output directory if not existing
move __esModule to runtime
fix dependency behavior for cases without usedExports
2017-11-24 08:17:17 +01:00
Tobias Koppers 41a1d602e1 added WebAssembly Proof of Concept 2017-11-10 09:17:11 +01:00
Tobias Koppers 6bd937d768 make things consitent 2017-09-22 14:07:28 +02:00
Tim Sebastian dbdc39d86e refactor maintemplate to handle set instead of array 2017-06-24 11:39:46 +10:00
Tim Sebastian 7972859640 refactor chunk.chunks usage to check for chunk existance 2017-06-24 11:39:46 +10:00
Tobias Koppers d967a4623c add `module.strictThisContextOnImports` option
to allow spec-comforming behavior this context on
called imported harmony functions
2017-05-21 09:23:35 +02:00
Tobias Koppers 5210230d4b Merge branch 'master' into master 2017-04-09 09:45:56 +02:00
con-ssc 8b3e587a0d Added {} around installedModules 2017-03-31 15:07:39 +02:00
Jeff Escalante b660b649a0 remove extra quote 2017-03-13 22:30:01 -04:00
Jeff Escalante ff5c28cc54 updates as requested 2017-03-13 22:29:05 -04:00
Jeff Escalante 5dc7c6f30e template strings in MainTemplate file 2017-03-13 22:29:05 -04:00
Tim Sebastian 9c9f2b89c9 use const where applicable in MainTemplate 2017-02-05 10:30:52 +11:00
Tejas Bubane c6af4ab3fa
Convert Template and its subclasses to ES2015
Subclasses include `MainTemplate`, `ChunkTemplate` and
`HotUpdateChunkTemplate`.
2017-01-13 12:34:21 +05:30
Kees Kluskens 644e3a009b Upgrade eslint (#3626)
* Upgrade eslint

* Pin down eslint version

* Temporary fix for difference between js-beautify and eslint

js-beautify suddenly requires a space between `while` here,
but everywhere else we use it without space.

* Remove redundant rules (present in eslint:recommended)

* Add rules comparable to js-beautify rules to eslint

* Add some forgotten files

* Ugh, fix some differences between eslint and js-beautify the nuclear way

* Add back variables
2016-12-29 10:10:41 -06:00
Johannes Ewald a59672a5e1
Fix spelling of "harmony" 2016-12-07 19:14:47 +01:00
Tobias Koppers bfc1359a86 improved tree shaking for star exports
fixes #3415
2016-12-04 23:50:52 +01:00
Luna Frank-Fischer 5a4e39fe71 added nonce capability
change expected outputs of stats cases so they match new output

added nonce test to browser tests
2016-11-23 12:53:56 -08:00
Tobias Koppers b87bfc0399 added strictModuleExceptionHandling option
fixes #1729
2016-11-16 13:09:38 +01:00
Tobias Koppers 25cab58eb3 fixed some standard linting issues 2016-09-20 00:19:39 +02:00