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
Tobias Koppers
8af4c0800c
update validation snapshot
2019-06-04 14:25:41 +02:00
Tobias Koppers
ad5a6d105b
Merge tag 'v4.32.2' into next
...
4.32.2
2019-05-23 01:19:34 +02:00
Tobias Koppers
a4406ff187
improve validation errors
2019-05-22 13:46:07 +02:00
Tobias Koppers
0963d744e9
add test case for enum validation
2019-05-22 13:45:53 +02:00
Tobias Koppers
f1df013150
refactor Validation test for snapshots
2019-05-22 13:45:36 +02:00
Tobias Koppers
9e630f3635
fixup Validation test for schema changes
2019-05-16 20:38:01 +02:00
Florent Cailhol
9caaa664f7
Refactor webpack main
2018-12-09 15:32:03 +01:00
Evyatar
5edea62e35
fix_contains_typo
2018-09-27 19:02:34 +03:00
Tobias Koppers
62b6142609
fix Validation test
2018-09-21 11:26:16 +02:00
Tobias Koppers
6023bb7a11
fix Validation test
2018-09-21 11:04:21 +02:00
Philipp Klein
d6efad856b
Allow serve property in webpack configuration
...
The server property is used to configure webpack-serve
(https://github.com/webpack-contrib/webpack-serve ).
Also adapt tests.
Fixes #7306
2018-05-15 16:12:54 +02:00
Bazyli Brzóska
75253e7154
Merge branch 'master' of https://github.com/webpack/webpack into jest
...
# Conflicts:
# .eslintrc.js
# package.json
# test/BenchmarkTestCases.benchmark.js
# test/ConfigTestCases.test.js
# test/NodeWatchFileSystem.unittest.js
# test/TestCases.test.js
# test/WatcherEvents.test.js
# test/cases/parsing/extract-require/index.js
# test/configCases/parsing/harmony-this/index.js
# test/statsCases/async-commons-chunk/expected.txt
# yarn.lock
2018-04-10 23:36:20 +02:00
Florent Cailhol
72786beee7
Use ellipsis instead of '...'
2018-03-22 10:54:18 +01:00
byzyk
f513065227
fix: throw validation error when exclamation mark was found in path
2018-03-15 12:24:40 +04:00
Bazyli Brzóska
b579658d22
Merge branch 'profiling-race' into jest
...
# Conflicts:
# lib/debug/ProfilingPlugin.js
# test/ConfigTestCases.test.js
# test/DependenciesBlockVariable.unittest.js
# test/Examples.test.js
# test/ExternalModule.unittest.js
# test/HotTestCases.test.js
# test/Schemas.lint.js
# test/WebEnvironmentPlugin.unittest.js
# test/cases/mjs/non-mjs-namespace-object-lazy/index.js
# test/cases/runtime/module-caching/index.js
# test/compareLocations.unittest.js
# test/configCases/library/1-use-library/index.js
# test/configCases/plugins/define-plugin/index.js
# yarn.lock
2018-03-07 21:56:06 +01:00
kvrlk
97c9a6d84b
fix
2018-02-27 22:41:31 +02:00
kvrlk
95adc93452
tests
2018-02-27 22:31:58 +02:00
Josh Soref
2c30ef37f8
spelling: passer
2018-02-26 02:39:15 +00:00
Bazyli Brzóska
36e8e30875
run prettier on existing code
2018-02-25 11:46:17 +01:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Florent Cailhol
cd419d0546
Migrate integration tests to Jest
2018-01-24 17:29:57 +01:00
Sean Larkin
4b381b1eaa
Merge branch 'next' into feature/add-entry-default-value
2017-12-30 18:23:53 -06:00
Tobias Koppers
1886b7a5cb
Merge branch 'master' into next
...
# Conflicts:
# bin/webpack.js
# lib/Compilation.js
# yarn.lock
2017-12-29 11:17:10 +01:00
jaketodaro
fb4070442a
support functions for templated string config properties
...
Any config property that accepts a templated string (e.g. '[name].js')
can now accept a function that returns a templated string.
```
{
output: {
filename: () => '[name].js'
}
}
```
Closes #6098
2017-12-22 07:28:16 -08:00
Sean Larkin
5e8700f5c5
feat(defaults): add fixed defaults
2017-12-18 12:18:07 -08:00
Tobias Koppers
5cbd6b20dd
allow to set sideEffects from rules
2017-12-14 13:08:57 +01:00
Tobias Koppers
9870165069
Merge pull request #6008 from EugeneHlushko/bugfix-issue-6003
...
Lookup the provided plugins on the options, throw for invalid arguments.
2017-11-27 07:48:07 +01:00
EugeneHlushko
89ef8e084d
Add options.plugins schema validation: Make beautifier happy again
2017-11-26 13:43:14 +02:00
EugeneHlushko
0c9707f832
Add options.plugins schema validation: CR changes on wording
2017-11-26 13:42:18 +02:00
EugeneHlushko
0677c6e411
Add options.plugins schema validatio: Move away from error parsing to comparing the whole message
2017-11-24 19:52:47 +02:00
EugeneHlushko
70c50ea8f1
Add options.plugins schema validation, ensure apply method is present. Add tests
2017-11-24 18:54:48 +02: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
5e39ec46ee
Allow to override resolve configuration
2017-11-18 08:12:35 +01:00
Tobias Koppers
a53672d1a2
Merge branch 'master' into next
...
# Conflicts:
# lib/EvalSourceMapDevToolModuleTemplatePlugin.js
# lib/dependencies/HarmonyDetectionParserPlugin.js
# lib/dependencies/HarmonyImportDependency.js
# package.json
# schemas/webpackOptionsSchema.json
# test/Validation.test.js
2017-11-17 16:03:46 +01:00
Tobias Koppers
a97b120e5a
Merge pull request #5963 from webpack/lint/add-missing-files
...
add linting for test/*.js too
2017-11-16 14:07:52 +01:00
Tobias Koppers
e481ea53fd
add linting for schemas
...
add missing descriptions in schema
2017-11-16 13:15:15 +01:00
Tobias Koppers
5941ab0d0c
fix linting errors
2017-11-15 14:08:11 +01:00
Tobias Koppers
65e855c636
fix deprecations
2017-11-11 11:27:02 +01:00
Michael Ciniawsky
a88fdc74bf
refactor(bin/webpack): use `err.name` for error handling
2017-11-07 10:37:09 +01:00
Joe Bottigliero
e0d4501fab
[fix] webpackOptionsSchema
...
- Updates webpackOptionsSchema "stats" object to include "additionalProperties: false"
- Adds missing stats options
- Adds test for ensuring new stats options fail the schema check (if not included)
2017-10-13 17:12:24 -05:00
Tobias Koppers
930c019bef
fix validation output test
2017-08-11 16:22:46 +02:00
Tobias Koppers
2fe82af05d
Suggest course of action
2017-03-24 22:29:55 +01:00
Tobias Koppers
10c44e5a94
fix extra newline in validation
2017-03-22 12:24:18 +01:00
Tobias Koppers
fbf84d51f2
allow to apply plugins to child compiler
...
allow to match on compiler name in rules
#4177
2017-02-22 11:49:49 +01:00
Tobias Koppers
2932a5aa00
Merge pull request #4051 from shubheksha/refactor-test-Validation
...
refactor(ES6): Validation.test.js
2017-02-09 23:36:21 +01:00
Tim Sebastian
b32054d4c0
rename `non-absolut` to `relative`
2017-02-10 07:47:46 +11:00
Tim Sebastian
8ecae31c67
clean up schema check output by adding absolutePath explicitly to WebpackOptionsValidationError
2017-02-08 22:54:55 +11:00
Tim Sebastian
7d0a442183
add two tests for non-absolute and absolute paths check
2017-02-04 00:49:38 +11:00
Shubheksha Jalan
83a084c43f
refactor(ES6): Validation.test.js
2017-02-03 14:21:25 +01:00
Tim Sebastian
8ccf068c59
fix linting issues of touched files
2017-02-02 22:56:41 +11:00
Tim Sebastian
3ba9ed99c0
fix existing tests that failed schema validaton
2017-02-02 22:36:15 +11:00
songawee
fe217ab7e7
refactor of ValidateSchema and Validation.test to es6
2017-01-21 10:43:22 -07:00
Naoyuki Kanezawa
a22b00e23d
Dynamic entry support ( #3634 )
...
* enable to set a function to entry option
* add tests for entry function
* fix style
* fix identifier and readableIdentifier of MultiModule
* use arrow functions
* use arrow function
* remove incorrect new operators
* fix Validation tests
2017-01-09 01:31:49 -06:00
Eduard Kyvenko
29a1b54564
Added better validation for entry in option schema ( #3567 )
...
Added better validation for entry in option schema (#3567 )
* Added better validation for entry in option schema
* Fixed option validation schema
* Improved error reporting for empty entry bundle
* Added a test for empty entry bundle
2017-01-03 23:23:57 -06:00
Tobias Koppers
9598f6484e
add another test case
2016-12-14 13:34:30 +01:00
Tobias Koppers
3c1086303f
Improve validation errors
2016-12-14 11:34:57 +01:00
Sean Larkin
000dae1889
fix(tests): Updated tests across the board to work with perf budgets
2016-12-07 17:22:13 +01:00
Tobias Koppers
efa3fc058b
added resourceQuery condition
...
added function use to schema
2016-11-23 12:12:32 +01:00
Kees Kluskens
9158378f44
... and update tests too
2016-11-04 00:31:49 +01:00
Kees Kluskens
c8fd638036
Fix validation schema accepting invalid values when `instanceof` is used
2016-11-03 23:52:59 +01:00
Kostas Manionis
36b7f21b92
Fix plugin typos in options validation
2016-09-28 13:54:46 +03:00