Commit Graph

33 Commits

Author SHA1 Message Date
ShenHongFei 66fe018a61
fix: complete the missing nodejs builtin modules 2023-03-18 13:22:28 +08:00
Jesús Leganés-Combarro cb028265e7
Added `assert/strict` built-in 2023-03-01 15:35:55 +04:00
Praveena dec858a57e fixes #15342 - add util/types to node target 2022-02-08 14:00:40 +00:00
Juanra GM 3d76869da9 fix: add missing external modules 2021-10-27 20:48:34 +02:00
Zhuo Zhang e0915a538e add "diagnostics_channel" to NodeTargetPlugin 2021-10-07 21:28:48 +08:00
wood1986 6a24863c1b fix: add stream/web to NodeTargetPlugin 2021-09-11 23:52:45 -07:00
Tobias Koppers a1f0d23dcc add `node-commonjs` external type to use `createRequire` for commonjs externals
for `module` externals, fallback to `import()` when not in module mode
2021-06-25 11:22:55 +02:00
Tobias Koppers 629f9f031c add support for module externals and automatic externals 2021-06-24 16:44:14 +02:00
dnalborczyk da6fe93982 Update lib/node/NodeTargetPlugin.js
Co-authored-by: Tobias Koppers <tobias.koppers@googlemail.com>
2021-06-18 11:01:13 +02:00
Daniel Nalborczyk b80b612c14 feat: add node: prefixed modules 2021-06-18 11:00:26 +02:00
Tobias Koppers f8fdc19c71 add pnpapi as builtin
fixes https://github.com/webpack/enhanced-resolve/pull/286
2021-04-19 10:30:51 +02:00
Daniel Nalborczyk bd5e4ddfa2 chore: move word to cspell.json 2021-02-15 23:21:04 -05:00
Daniel Nalborczyk 16833c33a0 fix spell checker (wasi) 2020-12-14 13:30:18 -05:00
Daniel Nalborczyk 56f42f13a0 feat: add support for additional node.js builtin modules 2020-12-14 13:17:39 -05:00
Tobias Koppers afa9784dfc use hard-coded list of builtins to be independent of node.js version 2020-08-28 01:09:12 +02:00
DraggonFantasy 61a6470ec7 Fix formatting 2020-08-26 00:53:33 +03:00
DraggonFantasy 251885756e Fix formatting 2020-08-26 00:37:45 +03:00
DraggonFantasy 88b1b17425 Fix "ModuleNotFound 'module'" error
Related to #6497
2020-08-25 23:16:50 +03:00
Tobias Koppers b9c50fdb09 fix jsdoc documentations 2020-04-28 19:42:58 +02:00
Florent Cailhol 8a10ea3c92 Type 'apply' method of plugins 2018-11-12 14:26:31 +01:00
Tobias Koppers 31e189fcde Merge tag 'v4.24.0' into next
4.24.0
2018-11-02 18:02:39 +01:00
Florent Cailhol 2a440fe925 Update development tools 2018-11-02 11:04:02 +01:00
Tobias Koppers c9eb4c8e01 Merge tag 'v4.16.4' into next
4.16.4
2018-08-02 16:00:39 +02:00
Florent Cailhol 20406a4295 Update ESLint 2018-07-31 11:43:07 +02:00
Tobias Koppers cf5f1d723c format existing code 2018-07-30 21:29:21 +02:00
Tobias Koppers 5238159d21 run prettier on existing code 2018-02-25 02:00:20 +01:00
Anna Henningsen e4375f8833
Avoid relying on Node’s internals
`process.binding()` is not a public API, and should
not be used.

Luckily, Node recently introduced an API that does
exactly what Webpack needs:
https://nodejs.org/api/modules.html#modules_module_builtinmodules

So use that instead and keep the old path as a fallback.
2018-01-27 22:10:36 +01:00
Will Mendes ff8bf5709b refactor(NodeTargetPlugin): upgrade to ES6 2017-01-11 23:09:19 +11:00
Avi Haiat 0a340f2b1a feat(app): Beautify all lib files 2015-07-13 01:20:09 +03:00
Avi Haiat daff7440a6 feat(app): Fix some obvious lint errors and warnings 2015-07-08 15:52:41 +03:00
Tobias Koppers 9a3e3443fa use externals plugin for node target 2014-03-05 19:56:53 +01:00
Tobias Koppers 0fea43b4cb rename generated require to __webpack_require__
fixes #141
fixes RubenVerborgh/N3.js#18
2014-03-03 14:56:17 +01:00
Tobias Koppers 3dc62749a2 moved webworker template, added node.js template #57 2013-02-13 17:00:07 +01:00