alexander.akait
ac0bd21801
style: improve style of code
2024-08-02 19:32:14 +03:00
alexander.akait
500ee96dcb
style: improve style of code
2024-08-02 19:32:14 +03:00
alexander.akait
5725254415
style: improve style of code
2024-08-02 19:32:14 +03:00
alexander.akait
a592b62686
style: improve style of code
2024-08-02 19:32:14 +03:00
alexander.akait
423e89b2c7
style: improve style of code
2024-08-02 19:32:13 +03:00
alexander.akait
4ee703f647
chore: improve jsdoc rules
2024-07-30 17:07:14 +03:00
Alexander Akait
76ab754099
fix: relative path to runtime chunks
2024-07-11 19:29:10 +03:00
alexander.akait
40b1a77183
test: added
2024-07-11 18:51:59 +03:00
alexander.akait
080e54fcf1
fix: relative path to runtime chunks
2024-07-11 18:15:25 +03:00
fi3ework
7cacdb5685
feat: reduce unnecessary exports runtime
2024-07-10 11:46:24 +08:00
alexander.akait
ab3e93b19e
style: fix
2024-06-11 16:09:50 +03:00
alexander.akait
e039135b81
fix: logic for cache
2024-06-10 21:40:30 +03:00
alexander.akait
2296c75bac
fix: types
2024-06-10 20:02:46 +03:00
alexander.akait
6154a2393f
refactor: code
2024-06-10 19:21:03 +03:00
alexander.akait
f137fd2bcf
refactor: migrate on `acorn-import-attributes`
2024-06-10 17:45:21 +03:00
Alexander Akait
8de5f9ac09
fix: mangle with destructuring
2024-06-07 15:25:33 +03:00
ahabhgk
327d208156
fix review
2024-06-06 01:15:03 +08:00
ahabhgk
563c56f406
fix: consider runtime for pure expression dependency update hash
2024-06-04 15:25:43 +08:00
fi3ework
1234b1f27b
fix: should count in module scope variables
2024-04-25 02:21:44 +08:00
fi3ework
551c3721cf
feat: root module is less prone to be wrapped in IIFE
2024-04-24 15:54:06 +08:00
ahabhgk
0734314753
fix: mangle with destructuring
2024-04-13 02:40:28 +08:00
多小凯
7b7b96d57c
perf: change to the correct plugin name
2024-03-22 00:34:23 +08:00
alexander.akait
be1d35eb02
fix(types): more
2024-03-18 18:50:56 +03:00
alexander.akait
c80a7f2e16
refactor: code use attributes instead assertions
2024-03-15 18:11:02 +03:00
alexander.akait
662a0e77bb
fix: more types
2024-03-14 18:50:52 +03:00
alexander.akait
33cd20a180
fix(types): watching and more
2024-03-14 18:15:13 +03:00
alexander.akait
44b4f96e2b
refactor: code
2024-03-05 17:40:46 +03:00
David Michon
fbf92fe522
Reuse VM context across webpack magic comments
2024-01-31 18:27:28 -08:00
alexander.akait
3295f6c36f
chore(types): more
2024-01-26 19:17:45 +03:00
alexander.akait
1c4bcfa36c
chore(types): more
2024-01-26 17:53:40 +03:00
alexander.akait
89bea025a7
chore(types): improve
2024-01-26 16:15:24 +03:00
Nitin Kumar
412ae5425e
chore: udpate prettier to v3
2024-01-14 07:11:34 +05:30
alexander.akait
9228d78eec
fix: types
2024-01-11 20:31:31 +03:00
alexander.akait
4152899d55
fix: don't optimize `extends` when class has constructor
2024-01-11 20:30:00 +03:00
Alexander Yamakin
ce6b0618ff
Merge branch 'main' into feature-14072
2024-01-09 02:59:32 +03:00
Alexander Akait
c1b45d5d80
fix: runtime logic
2024-01-04 15:47:05 +03:00
Ben Worline
d4e8485462
initial
2023-09-30 22:13:01 -07:00
alexander.akait
158e0441e7
refactor(types): more
2023-06-22 04:08:40 +03:00
alexander.akait
3092f7cb20
refactor(types): more
2023-06-22 03:59:10 +03:00
alexander.akait
3f71468514
refactor(types): more
2023-06-21 19:01:55 +03:00
alexander.akait
d9d64b5198
refactor(types): more
2023-06-21 19:01:53 +03:00
alexander.akait
4809421990
refactor(types): more
2023-06-21 19:00:24 +03:00
alexander.akait
75151416ca
fix: indirect call to tagged template expression
2023-06-17 22:54:17 +03:00
alexander.akait
9894226149
refactor(types): more
2023-06-14 19:46:53 +03:00
Sean Larkin
f1ea815e8d
Merge pull request #17308 from webpack/issue-17306
...
fix: compatibility `__non_webpack_require__` with ES modules
2023-06-05 09:34:17 -07:00
alexander.akait
ac2c8bec53
refactor: avoid using only runtime
2023-06-03 03:58:03 +03:00
alexander.akait
e3b1837442
fix: compatibility `__non_webpack_require__` with ES modules
2023-06-03 02:13:44 +03:00
Ben Worline
c8dc5fac9b
Handle barrel imports ( #17305 )
2023-06-02 15:16:53 -07:00
Alexander Akait
53c98f06ee
Merge pull request #17203 from bworline/ns
...
Normalize property accessors for es6 namespaces and chained member/call expressions
2023-05-31 21:39:09 +03:00
Ben Worline
77c4deb47e
Merge branch 'main' of https://github.com/webpack/webpack into ns
2023-05-31 10:15:14 -07:00
alexander.akait
792ee7e516
refactor(types): more
2023-05-31 14:56:55 +00:00
Ben Worline
9abdfecb5a
Merge branch 'main' of https://github.com/webpack/webpack into ns
2023-05-27 07:46:50 -07:00
Burhanuddin Udaipurwala
8bf6d59f35
refactor: refactor usages of module.loaded
2023-05-26 21:12:29 +05:30
Burhanuddin Udaipurwala
839e2bf6ad
refactor: use global runtime constants for webpack exports
2023-05-26 21:04:26 +05:30
Sean Larkin
8eb9d8cf4a
Merge pull request #17262 from webpack/types-for-assets
...
refactor: types for assets and json modules plus plugins
2023-05-25 14:52:56 -07:00
Sean Larkin
7328ab824a
Merge pull request #17261 from webpack/types-more
...
refactor(types): more
2023-05-25 14:46:37 -07:00
alexander.akait
9d97d8981c
fix: handle more cases
2023-05-25 18:59:08 +03:00
alexander.akait
234fc91cd7
fix: regression in inner graph
2023-05-25 17:33:58 +03:00
alexander.akait
60e5e13eb8
refactor: more types
2023-05-25 01:41:32 +03:00
alexander.akait
620c8d5fa4
refactor: more types
2023-05-24 22:37:58 +03:00
Ben Worline
f3fcd696d4
Merge branch 'main' of https://github.com/webpack/webpack into ns
2023-05-24 08:39:45 -07:00
Sean Larkin
80284ceb5d
Merge pull request #17233 from webpack/fix-16763
...
fix: handle class name in properties and methods
2023-05-24 07:18:13 -07:00
Sean Larkin
4a8035f2b5
Merge pull request #17228 from burhanuday/refactor/burhan-use-globals
...
refactor: use global constant for __webpack_require__ instead of string literal
2023-05-24 07:16:33 -07:00
Ben Worline
a8bb2d73f8
Merge branch 'main' of https://github.com/webpack/webpack into ns
2023-05-23 20:22:06 -07:00
Ben Worline
6f43ce3bfb
checkpoint
2023-05-23 15:29:25 -07:00
alexander.akait
84629bfc7e
refactor: fix type
2023-05-24 00:41:43 +03:00
alexander.akait
fca1703ee5
refactor: rebase
2023-05-24 00:35:55 +03:00
alexander.akait
69dcaf1864
fix: enable this
2023-05-24 00:28:23 +03:00
alexander.akait
ae66636cd0
test: added
2023-05-24 00:28:23 +03:00
alexander.akait
a9e8aacecb
fix: handle class name in properties and methods
2023-05-24 00:28:23 +03:00
alexander.akait
f003f1c138
refactor: types more
2023-05-22 05:12:44 +03:00
alexander.akait
8e63b43b5e
refactor: types more
2023-05-22 04:50:50 +03:00
alexander.akait
30390058ef
refactor: types more
2023-05-22 03:46:58 +03:00
alexander.akait
e719e60340
refactor: types more
2023-05-22 03:03:05 +03:00
alexander.akait
78075cac67
refactor: types more
2023-05-22 01:28:57 +03:00
alexander.akait
055737dc0c
refactor(types): more
2023-05-21 23:31:30 +03:00
Burhanuddin Udaipurwala
8d8a0e0e56
refactor: use global constant instead of string literal
2023-05-19 21:25:47 +05:30
Sean Larkin
e958ac552b
refactor(types): Improve module type strictness and refactor module type string usages in module subclasses
2023-05-04 23:19:11 +00:00
Sean Larkin
f3389577ef
refactor(types): Increase type coverage & docs for B.E.E
2023-04-28 19:21:02 +00:00
Sean Larkin
0fff38d157
refactor(types): Improve types coverage & docs for js parser
2023-04-28 17:59:30 +00:00
An0nie
9309106146
fix: template string compare issue
2023-04-27 16:54:20 +02:00
擢秀
8c59f8955d
fix: avoid modify ast params object reference
2023-04-20 18:35:54 +08:00
Sean Larkin
9c70d1dcf6
Merge pull request #17016 from xiaoboost/fix/fix-spell-error
...
fix: fix spell error
2023-04-18 19:10:37 -07:00
xiaoboost
a01d2d5360
fix: fix spell error
2023-04-18 22:45:47 +08:00
Ivan Kopeykin
3824beedaf
support destructuring assignment with AwaitExpression
2023-04-13 17:16:32 +03:00
Ivan Kopeykin
45754f45d0
rename some properties, add more test cases
2023-04-09 10:44:09 +03:00
Ivan Kopeykin
bdbb78769f
support rest element
2023-04-09 08:55:55 +03:00
Ivan Kopeykin
89933e8a06
fix pre walking
2023-04-08 21:19:04 +03:00
Ivan Kopeykin
12844b2d34
fix keys evaluation
2023-04-08 13:17:30 +03:00
Ivan Kopeykin
9bb35fb998
support destructuring assignment in parser
2023-04-07 22:29:32 +03:00
Sean Larkin
fa4cbf11a1
add more module type constants, use them across codebase
2023-03-31 10:56:32 -07:00
xiaoxiaojx
3902ac5ffc
fix: fix pureDep returns null in some js files
2023-02-09 14:16:25 +08:00
Jack Works
4f39c9f658
fix: type error
2022-11-22 12:09:17 +08:00
Jack Works
c922ee1569
chore: revert breaking change
2022-11-22 12:03:27 +08:00
Jack Works
1d86c181a8
fix: test fail
2022-11-22 11:52:04 +08:00
Jack Works
18c59c600d
fix: avoid cross-realm objects
2022-11-22 11:37:16 +08:00
Ivan Kopeykin
8bfcb6999b
support import/export name as string literal
2022-07-19 16:58:38 +03:00
Ivan Kopeykin
d6d6fb584d
Merge branch 'main' into feature-14072
...
# Conflicts:
# lib/DependencyTemplate.js
# lib/javascript/JavascriptGenerator.js
# schemas/WebpackOptions.check.js
# types.d.ts
2022-04-05 09:34:50 +03:00
Ivan Kopeykin
8df5134ddb
support context
2022-03-31 15:10:21 +03:00
Ivan Kopeykin
34c4edca6b
add createRequire support
2022-03-25 10:50:13 +03:00
Tobias Koppers
86a8bd9618
Merge pull request #15455 from webpack/feature/support-in-operator
...
add "in" operator support
2022-03-17 11:17:39 +01:00
Tobias Koppers
5cc3a39109
Merge pull request #15327 from webpack/fix/dont-count-optional-chaining-in-import-specifier
...
dont count optional chaining in import specifier
2022-03-15 16:56:06 +01:00
Ivan Kopeykin
b2fc854227
fix parser.evaluteExpression api
2022-03-15 15:37:17 +03:00
Ivan Kopeykin
eb5d124150
add "in" operator support
2022-03-02 15:01:35 +03:00
Ivan Kopeykin
005e065fc4
renaming
2022-02-28 22:52:16 +03:00
Tobias Koppers
18c3590b28
Merge pull request #15315 from webpack/fix/issue-13022
...
update topLevelDeclarations for ConcatenatedModule
2022-02-14 14:46:43 +01:00
Ivan Kopeykin
cd3ec1da92
refactor top level declarations usage
2022-02-11 17:59:35 +03:00
Ivan Kopeykin
b531eb629f
fix types
2022-02-08 21:48:57 +03:00
Ivan Kopeykin
59437ccd10
dont count optional chaining in import specifier
...
instead of full member expression use only non-optional member expression part
2022-02-07 16:14:22 +03:00
Ivan Kopeykin
f1d329cc0e
use nonNumericOnlyHash function for contentHash
2022-02-01 20:10:45 +03:00
Tobias Koppers
b9c6691ff5
bugfixes, external assets
2021-12-03 16:23:09 +01:00
Tobias Koppers
8ae9507196
add support for url() in css
2021-12-03 08:46:24 +01:00
Ivan Kopeykin
405ce48637
fix discussion
2021-11-30 16:36:34 +03:00
Ivan Kopeykin
c243a4b022
Merge branch 'main' into feature-14072
...
# Conflicts:
# schemas/WebpackOptions.check.js
2021-11-30 13:56:01 +03:00
Tobias Koppers
3eff82d0f9
Merge pull request #14806 from webpack/fix-12924
...
use "safe" global object
2021-11-26 08:40:29 +01:00
Ivan Kopeykin
a3fff1a4c8
evaluate undefined to type undefined
2021-11-25 22:41:27 +03:00
Tobias Koppers
c69e37c39d
fix outputModule with initial splitChunks
2021-11-25 16:05:03 +01:00
Ivan Kopeykin
58edd1aebb
fix evaluating tagged template
2021-11-24 21:22:59 +03:00
Ivan Kopeykin
edeaa6eb82
use "safe" global object
2021-11-23 20:40:03 +03:00
Ivan Kopeykin
166be712c0
Merge branch 'main' into feature-14072
...
# Conflicts:
# lib/dependencies/CachedConstDependency.js
# schemas/WebpackOptions.check.js
2021-10-30 21:36:39 +03:00
Tobias Koppers
7135727cba
avoid unneccessary separators and arrays
2021-10-04 09:29:09 +02:00
shfshanyue
92f84dcac0
chore: merge multi hash.update
2021-09-26 08:51:53 +08:00
Ivan Kopeykin
ffad02dbe2
fix discussions
2021-09-20 15:40:45 +03:00
Ivan Kopeykin
1b2c08a672
fix discussions
2021-09-17 07:23:29 +03:00
Ivan Kopeykin
18ed9cb34b
fix logic expression evaluation
2021-09-16 13:15:01 +03:00
Ivan Kopeykin
04a466082c
use chunkInitFragments
2021-09-14 21:23:41 +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
Sven Sauleau
6c50c81350
Revert "Revert "Merge pull request #12278 from xtuc/sven/import-assertions""
...
This reverts commit 61946b7c46
.
2021-07-24 23:28:30 +01:00
Tobias Koppers
0bd1e789d4
generate "use strict" only when really needed
2021-07-22 16:09:09 +02:00
Tobias Koppers
3967571924
Merge branch 'main' into fix/overwritten_webpack__exports_onChunksLoaded
2021-07-16 21:58:34 +02:00
Tobias Koppers
61946b7c46
Revert "Merge pull request #12278 from xtuc/sven/import-assertions"
...
This reverts commit df02bc6c0a
, reversing
changes made to a6f341e243
.
2021-07-16 21:54:21 +02:00
Tobias Koppers
c469adc265
fix handling of onChunksLoaded with prefetching
2021-07-16 18:11:29 +02:00
shinyaigeek
1d8f9fd4d0
Fix: overwritten __webpack_exports__ on onChunksLoaded
2021-07-16 18:10:45 +02:00
Tobias Koppers
7f22e4721f
match on asserts
...
change Map to Record
improve test case
2021-07-16 13:17:20 +02:00
Sven Sauleau
b166f46f2c
parse import assertions
2021-07-16 13:14:54 +02:00
Tobias Koppers
629f9f031c
add support for module externals and automatic externals
2021-06-24 16:44:14 +02:00
Tobias Koppers
4da99d8254
add `module` library support, test and example
...
add test cases for `experiments.outputModule`
2021-06-23 14:49:14 +02:00
Tobias Koppers
c3af61fe2a
add `__webpack_modules__` when `__webpack_require__` is used
2021-06-23 14:49:14 +02:00
Tobias Koppers
d09cc17cee
use types from estree
2021-06-22 09:47:29 +02:00
Tobias Koppers
d0f500b76d
Merge pull request #13565 from webpack/dependabot/npm_and_yarn/acorn-8.4.0
...
chore(deps): bump acorn from 8.2.4 to 8.4.0
2021-06-22 09:43:00 +02:00
Tobias Koppers
b6a39e3ccf
remove allowAwaitOutsideFunction option as it's now set by default
2021-06-21 10:14:49 +02:00
Tobias Koppers
4e608c8723
assign class property keys to the correct top level symbol
2021-06-21 09:48:14 +02:00
Tobias Koppers
b0fa9ccada
pretty files
2021-05-11 09:31:46 +02:00
Tobias Koppers
94facd387d
add support for class fields
2021-04-27 10:28:13 +02:00
Tobias Koppers
cb494c9a8b
fix returning exports from runtime for libraries
...
fixes #13165
2021-04-22 09:32:17 +02:00
Tobias Koppers
24c5902374
add interceptModuleExecution, module cache and improve error messages
2021-04-14 14:37:00 +02:00
Tobias Koppers
ea3e0a39ac
add experiments.executeModule
...
rename runModule -> executeModule
improve error reporting
2021-04-12 12:27:55 +02:00
Tobias Koppers
065177df66
add experimental support for build time execution
...
allow to execute a part of the module graph at build time
e. g. to generate code or other assets
loaders have access to that via `this.importModule(request, options)`
2021-04-12 12:27:54 +02:00
Tobias Koppers
87b67a920d
avoid memory leak in v8 ICs after parsing and building modules
2021-03-25 14:52:12 +01:00
Tobias Koppers
89a44ab742
fix caching bug when split chunks of an entrypoint change and modules of the entrypoint stay equal
2021-03-19 16:13:18 +01:00