Marijn van Butselaar
|
eb9e875c12
|
Add fix for normal Function Expression and fix code style for fix #8874
|
2019-03-20 12:19:49 +01:00 |
Noé Lebrun
|
451c7c65a9
|
fixes #8874
|
2019-03-17 01:43:08 +01:00 |
Tobias Koppers
|
b25ff237bb
|
Prettify source code
|
2019-02-05 10:08:45 +01:00 |
Kilian Cirera Sant
|
ef67132589
|
Upgrade acorn to v6
package: update `acorn` v5.6.2...v6.0.0
package: update `acorn-dynamic-import` v3.0.0...v4.0.0
|
2019-01-07 13:06:37 -08:00 |
Tobias Koppers
|
babe736cfa
|
replace prefix/postfix even when equal for wrapped context
walk inner expressions in wrapped context
add tracking of inner expressions in wrapped BasicEvaluatedExpression
fixes #8293
closes ##8337
|
2018-11-05 15:17:56 +01:00 |
Tobias Koppers
|
f0dfc45b9f
|
merge parts too when simplifying
fix bug which keeps const conditional expression in bundle
remove parsing code from ContextDependencyHelpers
|
2018-11-03 11:16:16 +01:00 |
Zhibin Liu
|
88aab1e3cb
|
fix jsdoc
|
2018-10-30 23:50:09 +08:00 |
Zhibin Liu
|
c740380694
|
fix jsdoc
|
2018-10-30 23:43:44 +08:00 |
Zhibin Liu
|
25af83f288
|
fix after comments
|
2018-10-30 19:39:43 +08:00 |
Zhibin Liu
|
dcd38348e5
|
fix comments
|
2018-10-18 14:21:12 +08:00 |
Zhibin Liu
|
257e6ec8d6
|
[ConstPlugin] add support for logical expressions (&& and ||)
|
2018-10-17 23:12:07 +08:00 |
Mohsen Azimi
|
a0e1ad920e
|
Enable noImplicitThis TypeScript compiler option
|
2018-07-05 08:07:46 +03: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 |
Florent Cailhol
|
10490c947d
|
Remove unused methods
|
2018-01-04 13:55:26 +01:00 |