Commit Graph

50 Commits

Author SHA1 Message Date
Alexander Akait d8690f3d4b
chore: resolve "use strict" TODO (#19705) 2025-07-16 17:29:28 +03:00
Alexander Akait 87f648ebf0
chore: eslint more rules (#19648) 2025-07-03 12:06:45 +03:00
Meheret Egzerab 598767ed85
chore: fix typo in comment
Github Actions / lint (push) Waiting to run Details
Github Actions / validate-legacy-node (push) Waiting to run Details
Github Actions / benchmark (1/4) (push) Waiting to run Details
Github Actions / benchmark (2/4) (push) Waiting to run Details
Github Actions / benchmark (3/4) (push) Waiting to run Details
Github Actions / benchmark (4/4) (push) Waiting to run Details
Github Actions / basic (push) Waiting to run Details
Github Actions / unit (push) Waiting to run Details
Github Actions / integration (10.x, macos-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (10.x, macos-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (10.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (10.x, ubuntu-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (10.x, windows-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (10.x, windows-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (12.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (14.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (16.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (18.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (20.x, macos-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (20.x, macos-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (20.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (20.x, ubuntu-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (20.x, windows-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (20.x, windows-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (22.x, macos-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (22.x, macos-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (22.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (22.x, ubuntu-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (22.x, windows-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (22.x, windows-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (24.x, macos-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (24.x, macos-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (24.x, ubuntu-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (24.x, ubuntu-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (24.x, windows-latest, a) (push) Blocked by required conditions Details
Github Actions / integration (24.x, windows-latest, b) (push) Blocked by required conditions Details
Github Actions / integration (lts/*, ubuntu-latest, a, 1) (push) Blocked by required conditions Details
Github Actions / integration (lts/*, ubuntu-latest, b, 1) (push) Blocked by required conditions Details
Co-authored-by: Meheret Egzerab <meheret.egzerab@capitalone.com>
2025-05-20 04:47:17 +03:00
alexander-akait e333fe9adf chore: no `no-var` for tests 2025-04-22 13:49:30 +03:00
alexander.akait 1e685046c4 test: avoid extra output 2024-03-13 18:29:53 +03:00
David Michon 83aabe89b6 Update test cases 2024-02-01 11:23:05 -08:00
David Michon 05f44125e5 Update test cases 2024-01-31 18:02:32 -08:00
Ben Worline d4e8485462 initial 2023-09-30 22:13:01 -07:00
Ben Worline c8dc5fac9b Handle barrel imports (#17305) 2023-06-02 15:16:53 -07:00
Ben Worline b834303d83 add more error handling and json import support 2023-05-26 12:04:57 -07:00
Ben Worline b40c05e398 add test filter 2023-05-24 07:46:45 -07:00
Ben Worline afde59f5e9 add and handle another test case 2023-05-23 20:01:44 -07:00
Ben Worline 6f43ce3bfb checkpoint 2023-05-23 15:29:25 -07:00
Ben Worline 6a9f79b047 Merge branch 'main' of https://github.com/webpack/webpack into ns 2023-05-20 21:09:41 -07:00
alexander.akait cba05da34e test: added 2023-05-17 22:30:08 +03:00
Ben Worline 4a0b9a0788 property accessors, create failing test 2023-05-16 16:30:50 -07:00
Ben Worline f7d83a4a66 move expectSourceToContain, expectSourceToMatch, regexEscape to helper files 2023-05-09 12:01:55 -07:00
Ben Worline c6f518eb5b remove testing code 2023-05-04 21:18:20 -07:00
Ben Worline 2b2fed5880 Initial take 2023-05-04 20:41:15 -07:00
alexander.akait 1cab8f4fd6 chore: fix eslint 2023-04-14 19:34:10 +03:00
Tobias Koppers 4505a47e61 update snapshots and deprecations 2020-08-04 13:58:10 +02:00
Tobias Koppers fd9b399ae9 Create Cache facade to make it easier to use
add missing serializers for classes used in test suite
2020-07-15 11:14:28 +02:00
evilebottnawi 7852c25657 chore: update terser-webpack-plugin 2020-05-23 16:42:57 +03:00
Tobias Koppers 49752a06a8 cleanup asset processing
deprecate writing to compilation.assets after sealing.
merge all asset processing into single hook with stages.
Deprecate additionalChunkAssets and optimizeChunkAssets.
Redirect additionalAssets, optimizeAssets to processAssets for backward-compat.
Remove finishAssets hook without deprecation as it was not in v4.
2020-05-22 10:39:21 +02:00
Tobias Koppers 6178aea763 improve typings and test them in CI
lazy load all webpack exports
2020-04-21 09:25:43 +02:00
Tobias Koppers 80bc311d72 remove "use strict" from runtime things for bundle size reasons 2019-10-09 00:20:58 +02:00
Tobias Koppers ddc3dae0e6 refactor Module.source() and Module.getRuntimeRequirements() into Module.codeGeneration
add code generation phase to Compilation
add `output.iife` options to remove iife wrapper
add `experiments.outputModule` which enabled `output.module`
add `output.module` which sets defaults to `output.iife: false`, `output.libraryTarget: "module"`, `output.jsonpScriptType: "module"`, `terserOptions.module: true`
add `output.module` example
improve runtime requirements needed by ConcatenatedModule
add entry inlining, which inlines entry module code into runtime scope (only when safe)
make whole bundle strict when all modules are strict
2019-10-08 23:59:48 +02:00
Tobias Koppers 9e7844bbfc add "use strict" to all runtime modules 2019-10-08 23:46:35 +02:00
Tobias Koppers 69a545c444 Deprecate MainTemplate, ChunkTemplate, ModuleTemplate
move logic and hooks to JavascriptModulesPlugin
2019-10-08 23:46:26 +02:00
Tobias Koppers f45ba2408e remove items from runtime when unneeded
remove some hooks from MainTemplate, move some hooks to CompatRuntimeModule
add requireScope RuntimeGlobal
2019-10-08 23:46:23 +02:00
Tobias Koppers 089fe56884 fix merge issue 2018-12-20 09:22:51 +01:00
Tobias Koppers a54645ab5b fix test cases 2018-11-29 16:24:00 +01:00
Florent Cailhol 7669104f71 Deprecate moduleIds=hashed in favor of moduleIds=deterministic
Also remove moduleIds=total-size
2018-10-12 17:14:16 +02:00
Tobias Koppers 19d60ba0cd Merge tag 'v4.19.1' into next
4.19.1
2018-09-18 10:13:54 +02:00
Tobias Koppers e08f71c0ef keep/restore comments in export default
fixes #8039
2018-09-17 14:58:55 +02:00
Tobias Koppers e979f1534e use optimization.moduleIds instead of plugins directly 2018-09-03 20:12:55 +02:00
Tobias Koppers 753dcce188 fix order of occurrence order plugin
remove enforced additional occurrence order plugin from test cases
make test cases more independent of module/chunk order/ids
2018-07-13 16:15:01 +02:00
Bazyli Brzóska 36e8e30875 run prettier on existing code 2018-02-25 11:46:17 +01:00
Bazyli Brzóska a6c2aca36f migrate should to expect, part 2 (manual) 2018-01-26 23:59:38 +01:00
Bazyli Brzóska 5a8083a930 migrate should to expect, part 1
used regexps:

([\(\)a-zA-Z0-9\."'/ +{}\[\]=\-,:?_!]+)\.should\.be\.eql
➡️
expect($1).toBe

expect\(([\(\)a-zA-Z0-9\."'/ +{}\[\]=\-,:?_!]+)\)\.toBe\(\[
➡️
expect($1).toEqual([

expect\(([\(\)a-zA-Z0-9\."'/ +{}\[\]=\-,:?_!]+)\)\.toBe\(\{
➡️
expect($1).toEqual({
2018-01-26 22:51:03 +01:00
Tobias Koppers 878f2882ad update test cases for changed order 2017-12-20 20:41:22 +01:00
Tobias Koppers 2148f556a4 Enable minimizing in production mode 2017-12-14 00:06:56 +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 5c489b6c5d Refactor harmony modules
separate side effects from specifier
fixes TDZ for export let/const
bigger bundles are caused by correct export const/let behavior

BREAKING CHANGE: Internal have changed. Plugins could rely on them.
2017-09-14 09:44:32 +02:00
Tobias Koppers 890a507b08 optimize OccurenceOrderPlugin 2017-06-02 01:24:55 +02:00
Tobias Koppers e8b3170e29 fixes #4179 2017-02-06 13:51:00 +01:00
Tobias Koppers a7a41848c7 remove error for CommonJs/AMD in ESM
there are too many weird modules

detect harmony modules before parsing
exports is now undefined in ESM
module.exports is now read-only in ESM and returns undefined
define is now undefined in ESM
#3917
2017-01-15 01:44:26 +01:00
Tobias Koppers 6758a30724 Merge pull request #3442 from webpack/fix/double-use-strict
Fix double "use strict"
2016-12-14 15:27:27 +01:00
Tobias Koppers 78e9d83cfd add test case for use strict inserting 2016-12-14 12:56:59 +01:00
Tobias Koppers ed558f2cad add test for escaping require.context id 2016-12-14 12:03:39 +01:00