Commit Graph

14 Commits

Author SHA1 Message Date
alexander.akait 2145fde855 fix: detect `createRequire` when imported with `node:` prefix 2023-04-04 02:42:29 +03:00
Ivan Kopeykin 8df5134ddb support context 2022-03-31 15:10:21 +03:00
Ivan Kopeykin ee911c6aae add createRequire javascript parser option 2022-03-28 17:16:31 +03:00
Ivan Kopeykin 34c4edca6b add createRequire support 2022-03-25 10:50:13 +03:00
Tobias Koppers 20f52908ab attach require with property dependencies to the correct DependenciesBlock 2021-11-13 18:27:35 +01:00
peterq 6c0056c207 fix: create contexts in object shorthand syntax 2021-10-21 14:52:07 +08:00
Tobias Koppers b0fa9ccada pretty files 2021-05-11 09:31:46 +02:00
Tobias Koppers 013ca3bdd7 add commonjsMagicComments options
move javascript related options from 'module' to 'module.parser.javascript'
2021-01-20 20:19:49 +01:00
Peter Somogyvari 12f37fe80d feat(CommonJsPlugin): magic comment to ignore require calls
A partial port of the same magic comments that are supported
for import() calls already via this commit:
f65e9dac98

Signed-off-by: Peter Somogyvari <peter.metz@unarin.com>
2021-01-19 11:54:29 -08:00
Tobias Koppers 9532dfb03c flag commonjs dependency in try block as optional
fixes #11639
2020-10-12 09:16:24 +02:00
Tobias Koppers 2abcfc0058 set dependency categories for all dependencies 2020-06-17 23:04:37 +02:00
Tobias Koppers 26231576a8 fix parsing of requires in requires 2019-12-23 17:43:41 +01:00
Tobias Koppers 66d7ebd9a8 fix Errors for require.parent/main.require 2019-12-06 11:13:13 +01:00
Tobias Koppers 782e4535ac Refactor how exportsType work
add flagged exportsType for __esModule flagged
add getExportsType to merge strict with exportsType
move CommonJsStuffPlugin into CommonJsPlugin
split CommonJsPlugin into imports and exports part
enable minimal tree shaking for CommonJs imports and exports
2019-12-06 11:13:08 +01:00