Commit Graph

196 Commits

Author SHA1 Message Date
Alexander Akait 7cdb4b92fe
fix: many types 2025-08-20 13:50:12 +03:00
Alexander Akait 02a1d22db8
refactor: use `eslint-config-webpack` (#19645)
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
2025-07-02 15:10:54 +03:00
Alexander Akait b8b90d6ee9
fix: less `any` types (#19382) 2025-04-04 16:38:51 +03:00
Alexander Akait e911f5296d
fix: no `object` types and less `any` types
Github Actions / lint (push) Has been cancelled Details
Github Actions / basic (push) Has been cancelled Details
Github Actions / validate-legacy-node (push) Has been cancelled Details
Github Actions / unit (push) Has been cancelled Details
Github Actions / integration (10.x, macos-latest, a) (push) Has been cancelled Details
Github Actions / integration (10.x, macos-latest, b) (push) Has been cancelled Details
Github Actions / integration (10.x, ubuntu-latest, a) (push) Has been cancelled Details
Github Actions / integration (10.x, ubuntu-latest, b) (push) Has been cancelled Details
Github Actions / integration (10.x, windows-latest, a) (push) Has been cancelled Details
Github Actions / integration (10.x, windows-latest, b) (push) Has been cancelled Details
Github Actions / integration (12.x, ubuntu-latest, a) (push) Has been cancelled Details
Github Actions / integration (14.x, ubuntu-latest, a) (push) Has been cancelled Details
Github Actions / integration (16.x, ubuntu-latest, a) (push) Has been cancelled Details
Github Actions / integration (18.x, ubuntu-latest, a) (push) Has been cancelled Details
Github Actions / integration (18.x, ubuntu-latest, b) (push) Has been cancelled Details
Github Actions / integration (20.x, macos-latest, a) (push) Has been cancelled Details
Github Actions / integration (20.x, macos-latest, b) (push) Has been cancelled Details
Github Actions / integration (20.x, ubuntu-latest, a) (push) Has been cancelled Details
Github Actions / integration (20.x, ubuntu-latest, b) (push) Has been cancelled Details
Github Actions / integration (20.x, windows-latest, a) (push) Has been cancelled Details
Github Actions / integration (20.x, windows-latest, b) (push) Has been cancelled Details
Github Actions / integration (22.x, macos-latest, a) (push) Has been cancelled Details
Github Actions / integration (22.x, macos-latest, b) (push) Has been cancelled Details
Github Actions / integration (22.x, ubuntu-latest, a) (push) Has been cancelled Details
Github Actions / integration (22.x, ubuntu-latest, b) (push) Has been cancelled Details
Github Actions / integration (22.x, windows-latest, a) (push) Has been cancelled Details
Github Actions / integration (22.x, windows-latest, b) (push) Has been cancelled Details
Github Actions / integration (23.x, ubuntu-latest, a) (push) Has been cancelled Details
Github Actions / integration (23.x, ubuntu-latest, b) (push) Has been cancelled Details
Github Actions / integration (lts/*, ubuntu-latest, a, 1) (push) Has been cancelled Details
Github Actions / integration (lts/*, ubuntu-latest, b, 1) (push) Has been cancelled Details
2025-04-02 19:02:22 +03:00
alexander.akait ab3e93b19e style: fix 2024-06-11 16:09:50 +03:00
Tobias Koppers 720aa43bd3 handle hashbangs in javascript files
fixes https://github.com/vercel/next.js/issues/27806
2021-08-10 11:34:06 +02:00
Ivan Kopeykin 4fc44a3398 add more types 2020-08-02 23:47:54 +03:00
Tobias Koppers 49a6184e20 add tests to increase code coverage 2020-04-16 22:20:04 +02:00
Tobias Koppers ae261ed4c1 move default object redirect logic into separate meta property 2019-12-06 11:12:26 +01:00
Tobias Koppers 2f3da77d38 Introduce a Parser base class to improve Parser types
Parser.parse must be always sync
make JSON and WASM modules strict

fix inherit-types tooling to omit static methods
2019-11-30 01:36:28 +01:00
Florent Cailhol d33f49d96f Rename Parser into JavascriptParser 2018-07-03 14:08:43 +02:00
Florent Cailhol 91663f19a2 Remove deprecated APIs 2018-06-27 10:08:12 +02:00
Florent Cailhol c68d0d2171 Remove Tapable compatibility 2018-06-26 08:31:08 +02:00
Florent Cailhol 4e15f64402 Add optional catch binding support 2018-06-06 21:30:53 +02:00
Tobias Koppers 6789a5e144 Merge branch 'master' into feature/webpack-options-compile-errors-warning 2018-06-04 11:18:20 +02:00
Ronan Amsterdam a228daec58 magic comment regexp match update and statsCase test updated
plus minor renamings and snapshot update
2018-05-30 13:18:43 +08:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Florent Cailhol 25ec7e4102 Do not stop processing on error 2018-05-29 13:17:36 +02:00
Florent Cailhol 4b1a76bdb0 Deprecate Parser.getCommentOptions
Use Parser.parseCommentOptions(range) instead.
2018-05-29 11:09:34 +02:00
Ronan Amsterdam d91e7ecafc getCommentOptions renamed to getCommentOptionsStrict
and wrapped back in getCommentOptions to avoid possible breaking changes
2018-05-29 16:25:10 +08:00
Ronan Amsterdam 1969485f05 warning class and propagation added to ImportParserPlugin
and invalid-import tests moved to the statsCases
2018-05-29 15:29:23 +08:00
Ronan Amsterdam 48a8d8534a webpackCommentRegExp moved outside of getCommentOptions()
per review request
2018-05-28 15:55:16 +08:00
Ronan Amsterdam 49bd54313d Issue #7395: webpack import options comments warning propagation 2018-05-27 11:32:00 +08:00
Florent Cailhol f22fffdd47 Evaluate arguments in function's scope 2018-05-25 17:34:19 +02:00
Tobias Koppers eda273d579
Merge pull request #7236 from webpack/lint/more-strict-jsdoc
More strict linting of jsdocs
2018-05-09 09:59:18 +02:00
Florent Cailhol da6f869c1e Fix edge case when parsing top-level this on IIFE 2018-05-08 19:31:01 +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
Florent Cailhol 54c0cd76b6 Always return object with the same shape 2018-04-10 21:18:12 +02:00
Florent Cailhol a8b32acad5 Fix top level detection in the Parser 2018-04-06 09:40:37 +02:00
Tobias Koppers 1b50e4e96d
Merge pull request #6833 from webpack/ellipsis
Use ellipsis instead of '...'
2018-03-29 11:00:28 +02:00
Jan Potoms daca9cbc18 expand 2018-03-28 12:08:14 +02:00
Jan Potoms 6f8b281bf4 make prettier 2018-03-28 11:02:17 +02:00
Jan Potoms 3c699eb1f8 oops 2018-03-28 10:54:55 +02:00
Jan Potoms 5146ee55e6 Don't detect exportDeclaration when named function expression
Fixes #6867
2018-03-28 10:54:41 +02:00
Florent Cailhol 3983803d30 Destructure 'require' to improve readability 2018-03-22 12:05:58 +01:00
Florent Cailhol 72786beee7 Use ellipsis instead of '...' 2018-03-22 10:54:18 +01:00
Naveen Jain 1ab9fdb8b0 Fixed Parser so that this Expression can work with ProvidePlugin 2018-02-27 06:02:09 +05:30
Tobias Koppers f32bd41c52 fix linting 2018-02-25 02:15:37 +01:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Florent Cailhol 490a32cfea Update parser to support EcmaScript 2018 2018-02-07 10:39:06 +01:00
Florent Cailhol b8815a9415 Leave top level scope when traversing Class nodes 2018-01-25 09:57:47 +01:00
Florent Cailhol 86e6edf1ab Refactor how source type is handled by the parser 2018-01-22 09:30:43 +01:00
Florent Cailhol 5a1ffb53dc Use acorn@5 2018-01-18 11:34:30 +01:00
Tobias Koppers 47f26013d7
Merge pull request #6261 from ooflorent/top_level_this
Rewrite top level `this` to `undefined` in Harmony modules
2018-01-14 00:28:16 +01:00
Florent Cailhol a550a8cf62 Rewrite top level this to undefined in Harmony modules 2018-01-13 15:25:41 +01:00
Tobias Koppers 416247102a
Merge pull request #6288 from ooflorent/fix_variable_hook
Fix VariableDeclaration visitors
2018-01-12 10:58:03 +01:00
Tobias Koppers e6fb58d1fc
Merge pull request #6273 from ooflorent/fix-4857/unreachable_branches
Eliminate unreachable branches
2018-01-12 10:55:27 +01:00
Florent Cailhol c9ff97fa7e Eliminate unreachable branches
Webpack does not transpile unreachable branches leaving `import` expressions
in the code. This PR modifies `ConstPlugin` to remove the unreachable branch.

Before:

```js
if (true) { 1 } else { import("a") }
if (false) { import("a") } else { 1 }
true ? 1 : import("a");
false ? import("a") : 1;
```

After:

```js
if (true) { 1 } else {}
if (false) {} else { 1 }
true ? 1 : null;
false ? null : 1;
```
2018-01-11 19:35:24 +01:00
Florent Cailhol e44ba306a0 Fix VariableDeclaration visitors 2018-01-11 15:56:41 +01:00
Florent Cailhol bc05ee3f75 Fix parser hooks 2018-01-10 20:52:33 +01:00