Commit Graph

16 Commits

Author SHA1 Message Date
Tobias Koppers c7f93af138 refactor startup logic to better integrate with libraries
get rid of startupNoDefault and many custom logic regarding this in jsonp chunk loading
add onChunksLoaded runtime method to cover that for all chunk loading types
add `__webpack_runtime_id__` to access the current runtime
allow to use onChunksLoaded for other module types too
2021-03-08 20:25:09 +01:00
Tobias Koppers cc6f3d9113 fix regression when combining library + runtimeChunk + node target
related to https://github.com/vercel/next.js/pull/22187
2021-02-18 15:50:40 +01:00
Tobias Koppers 9f3950e571 add support for libraries combined with iife: false
fix missing runtime requirement for system.js context
fix inlining of modules when conflicting symbols are defined on top-level
2021-02-11 11:19:24 +01:00
Tobias Koppers 285b3565af add test case for nested bundles with eval-source-map 2021-01-04 15:36:30 +01:00
Tobias Koppers a874c81f46 avoid unnecessary replacement of `__webpack_require__` when nesting bundles
avoid wrapping externals in the eval() as this breaks nesting bundles

fixes #11277
fixes #12300
2021-01-04 15:33:25 +01:00
Tobias Koppers 659e8ab358 make ConfigTestCases templated to allow extending 2020-06-02 12:30:39 +02:00
Tobias Koppers cbb6ee6809 test more test cases for typings and fix typing bug 2020-04-21 09:25:55 +02:00
Tobias Koppers 88e6c5e2a7 add library option to entry description 2020-02-26 17:36:16 +01:00
Tobias Koppers f936aab240 add test case for "var" library type 2020-02-26 17:35:59 +01:00
Tobias Koppers b34da271a1 add sync mode for chunk dependency startup in sync node target
fixes #9154

allow nesting webpack bundles (rename inner __webpack_require__)
to allow testing this
2019-05-20 22:53:58 +02:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Tobias Koppers 32ebbfd7c7 Beautify webpack configs 2018-01-22 08:51:35 +01:00
Tobias Koppers de8fc51a6f allow to export any property/export of the bundle
fixes #3929
2017-06-02 14:52:41 +02:00
Tobias Koppers c123016b64 refactor library tests 2017-06-02 14:23:08 +02:00
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
Tobias Koppers 66edde657e added libraryTarget commonjs-module
for commonjs wrapped harmony modules via `__esModule`

fixes #2945
2016-09-08 22:26:43 +02:00