Commit Graph

118 Commits

Author SHA1 Message Date
Tobias Koppers 404a854c8b improve hmr error handling abilities
pass module and moduleId with self error handler
add error handlers for dependency accept handlers
pass moduleId and dependencyId with dependency accept error handler
add output.strictModuleErrorHandling to opt-in into strict module error handling
HotModuleReplacementPlugin enalbed output.strictModuleErrorHandling automatically

fixes #12826
2021-03-09 20:23:00 +01:00
Sergey Melyukov 654e4e1ba0 Merge remote-tracking branch 'upstream/master' into clean 2021-02-02 10:38:41 +03:00
Tobias Koppers 013ca3bdd7 add commonjsMagicComments options
move javascript related options from 'module' to 'module.parser.javascript'
2021-01-20 20:19:49 +01:00
Tobias Koppers 10aa3daede add experiments.layers
add layers to define different module layers
support module layers in stats

add layer support for NormalModules

fixes #11466
2021-01-05 20:50:59 +01:00
Tobias Koppers aac7f2e619 allow to configure parsers and generators globally
get plugin schemas from root schema
normalize module.parser/generator
add test case
2021-01-05 12:08:30 +01:00
Cronus1007 7f76c2d722 followSymLinks Options Added with the snapshots and typings updated 2020-10-22 19:57:07 +05:30
Sergey Melyukov 8c2e4f595b Merge remote-tracking branch 'upstream/master' into clean 2020-10-07 14:19:55 +03:00
Sergey Melyukov 18b0a23ba6 (fix): snapshots 2020-10-01 09:45:22 +03:00
Tobias Koppers 68f0dbe748 allow plugins to modify the default size types for splitChunks 2020-09-29 14:34:59 +02:00
Tobias Koppers 9c0b320fd4 add more breaking change info 2020-09-25 10:53:10 +02:00
Tobias Koppers ea075be453 add config.ignoreWarnings
deprecate stats.warningsFilter
2020-09-20 22:08:38 +02:00
Tobias Koppers 51c546bb99 fix test cases 2020-09-18 11:36:16 +02:00
Tobias Koppers 48010fb955 replace output.ecmaVersion with output.environment and more detailed flags 2020-09-10 11:12:28 +02:00
Tobias Koppers 817c1bf9c7 move default externals from target into externalsPresets option 2020-09-09 15:18:59 +02:00
Tobias Koppers 312e2ab587 Merge branch 'master' into feature/asset-url 2020-08-28 20:54:50 +02:00
Tobias Koppers d6e637f33c add "snapshot" configuration to allow to configure how snapshots are created
expose snapshot options for module, resolve, buildDependencies and resolveBuildDependencies
move managedPaths and immutablePaths from config.cache to config.snapshot
add timestamp + hash snapshotting mode
use timestamp + hash mode by default in production and for buildDependencies
2020-08-26 01:27:13 +02:00
Tobias Koppers 85b5f2dbc4 update configuration snapshots 2020-08-19 09:04:32 +02:00
Ivan Kopeykin 4f8bb44983 move matching target logic out of RuntimeModule 2020-08-06 20:58:37 +03:00
Tobias Koppers 6e7e145107 linting 2020-07-27 22:59:56 +02:00
Tobias Koppers 1179a3eaab
Merge pull request #11188 from webpack/feature/mjs
improve compatibly with node.js ESM
2020-07-20 12:18:21 +02:00
Tobias Koppers f65adade96 deprecate optimization.noEmitOnErrors in favor of optimization.emitOnErrors 2020-07-20 08:40:31 +02:00
Tobias Koppers 205bbb4c0d improve compatibly with node.js ESM
improve experiments.mjs to be more compatibly with node.js ESM
  - add support for `type: "module"` in package.json
  - add support for `*.cjs`
  - enable strict ESM for data uris with `text/javascript` or `application/javascript`
  - disallow not fully specified requests in imports `*.mjs` or `type: "module"`

add `descriptionData` rule condition to match package.json info
fix passing resolveOptions along context modules
2020-07-17 13:58:29 +02:00
Tobias Koppers f1d84bcdde update snapshots 2020-07-13 13:45:57 +02:00
Tobias Koppers 2cc3510f55 Update snapshots 2020-07-06 17:38:25 +02:00
goganchic 7fe8959fbe fix tests from Defaults.unittest.js 2020-06-05 15:15:11 +03:00
Tobias Koppers 25f2b4aabf get rid of helpers in schema
handle array + single items by default in cli args
sort schema one/any/allOf array by type
2020-03-26 09:48:21 +01:00
Tobias Koppers be1cac804f update snapshots 2020-03-21 14:04:20 +01:00
Tobias Koppers 87e6f58786 Ensure strict format of descriptions in schemas 2020-03-10 18:19:33 +01:00
Tobias Koppers e5b51235d7 add externalsType option
fix a few edge cases in ExternalModule
2020-02-26 17:22:42 +01:00
Tobias Koppers df9553b4a7 Add "did you mean" to schema validation for common errors 2020-02-18 22:55:34 +01:00
Tobias Koppers 03431d1113 from serve property from options 2020-02-18 22:55:31 +01:00
Tobias Koppers 6477ca56f8 Split options defaulting in normalization and defaults
Apply defaults after plugins are applied to allow plugins to feature their own defaults.
This allows to make preset plugins.
2020-02-17 19:12:54 +01:00
Tobias Koppers 794fe448fa fix validation snapshots 2020-02-05 08:28:49 +01:00
Tobias Koppers 2f4e370ee8 update snapshots for typo 2020-01-17 18:29:58 +01:00
Sergey Melyukov bdc61abf82 refactor: merge generators in asset modules 2019-11-26 15:42:37 +01:00
Tobias Koppers c1d1e91bd6 allow all possible combinations with pattern 2019-10-18 14:58:50 +02:00
evilebottnawi c81ffbef42 refactor: `devtool` option 2019-10-18 14:43:21 +02:00
Tobias Koppers 59c141d859 update snapshots for improved error format 2019-10-16 16:49:55 +02:00
evilebottnawi 8764f14794 feat: improve DX with `output.ecmaVersion` option 2019-10-11 00:43:27 +03:00
Tobias Koppers f7f408372f Merge tag 'v4.41.0' into next
4.41.0
2019-09-26 21:41:52 +02:00
Tobias Koppers 03b32d3765 disallow shorthand cache groups syntax with cache group named test
This is a potential config error

fixes #9722
2019-09-24 17:17:26 +02:00
evilebottnawi 6a99b5316d refactor: migrate on `schema-utils` 2019-08-07 18:10:40 +03:00
Tobias Koppers fe790eea65 update eslint and lint-staged 2019-08-06 10:57:37 +02:00
Tobias Koppers c17dfde7a8 Merge tag 'v4.37.0' into next
4.37.0
2019-07-24 10:51:04 +02:00
Tobias Koppers 85263af902 update snapshot 2019-07-22 09:44:20 +02:00
Tobias Koppers 5523a0a9ac
Merge pull request #9326 from vankop/add-real-resource-parameter
add realResource parameter to RuleSetRule
2019-06-30 22:04:39 +02:00
ikopeykin 68f794dbcb updated snapshots, rerun tooling scripts 2019-06-25 15:33:07 +03:00
Tobias Koppers ec88b7eddc Merge tag 'v4.35.0' into next
4.35.0
2019-06-21 09:15:49 +02:00
Tobias Koppers 226e8ce8fd add test case for holey array 2019-06-19 18:55:27 +02:00
Tobias Koppers fbff5f3c75 allow filename as function at more places
fixes #9296
2019-06-18 22:22:09 +02:00