alexander.akait
4809421990
refactor(types): more
2023-06-21 19:00:24 +03:00
Burhanuddin Udaipurwala
839e2bf6ad
refactor: use global runtime constants for webpack exports
2023-05-26 21:04:26 +05:30
Burhanuddin Udaipurwala
f989335477
fix: linting errors
2023-05-19 21:57:52 +05:30
Burhanuddin Udaipurwala
2b4d15a7ba
refactor: more instances replaced
2023-05-19 21:30:54 +05:30
Ivan Kopeykin
c5647a9478
Merge branch 'main' into fix/consume-esm-bundled-library
...
# Conflicts:
# lib/CompatibilityPlugin.js
2023-04-06 11:48:07 +03:00
Sean Larkin
fa4cbf11a1
add more module type constants, use them across codebase
2023-03-31 10:56:32 -07:00
Ivan Kopeykin
370212946e
consume esm bundled library
...
in development mode eval fails with predefined __webpack_exports__
2022-04-01 00:12:15 +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
Tobias Koppers
a874c81f46
avoid unnecessary replacement of `__webpack_require__` when nesting bundles
...
avoid wrapping externals in the eval() as this breaks nesting bundles
fixes #11277
fixes #12300
2021-01-04 15:33:25 +01:00
Tobias Koppers
497b65e122
run prettier
2019-11-15 10:56:01 +01:00
Tobias Koppers
a877cd51d1
add presentational dependencies which are cheaper, but allow only templating
2019-10-30 07:49:20 +01:00
evilebottnawi
8198ffb3e6
refactor: code
2019-10-22 00:14:05 +02:00
Tobias Koppers
f45ba2408e
remove items from runtime when unneeded
...
remove some hooks from MainTemplate, move some hooks to CompatRuntimeModule
add requireScope RuntimeGlobal
2019-10-08 23:46:23 +02:00
Tobias Koppers
ab169893a1
refactor Parser to allow variable tagging
...
use variable tagging in harmony pluging (instead of magic renaming)
Parser no longer calls hooks.expression for x in `x = ...`, hooks.pattern is called instead
remove rootName argument from hooks.expressionMemberChain and hooks.callMemberChain
2019-09-03 14:17:46 +02:00
Tobias Koppers
3cbdb703fc
NullFactory is not required
2019-08-07 16:14:03 +02:00
Tobias Koppers
b34da271a1
add sync mode for chunk dependency startup in sync node target
...
fixes #9154
allow nesting webpack bundles (rename inner __webpack_require__)
to allow testing this
2019-05-20 22:53:58 +02:00
Florent Cailhol
d881bb4c8f
Add types to various plugins
2018-11-02 21:06:35 +01:00
Tobias Koppers
c21d59f783
Merge tag 'v4.17.0' into next
...
4.17.0
2018-08-21 11:02:16 +02:00
Mihail Bodrov
1f954b4f12
Get rid typeof undef in all lib
2018-08-21 03:26:50 +03:00
Tobias Koppers
cf5f1d723c
format existing code
2018-07-30 21:29:21 +02:00
Tobias Koppers
559cf94edb
Simplify imports
2018-07-09 15:09:00 +02:00
Legends
f3223d0a34
Changed TODO => Compiler
2018-06-19 21:19:20 +02:00
Legends
11ebd5e4d4
CompatibilityPlugin typings added
2018-06-15 20:15:27 +02:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Florent Cailhol
9669c9e013
Use Parser#hooks instead of Tapable#plugin
2017-12-21 09:08:10 +01:00
Florent Cailhol
08ddad2e10
Replace NormalModuleFactory#plugin() calls
2017-12-14 14:42:49 +01:00
Florent Cailhol
36c690d37f
Use tapable instead of 'plugin'
2017-12-08 14:23:31 +01:00
Tobias Koppers
00f2b5ede7
advanced module type refactoring
...
added json type
.mjs default to javascript/esm type
adjusted parser plugins to react on module type
2017-11-11 19:27:19 +01:00
Tobias Koppers
f024687067
Refactor ContextDependency to take an options object
...
merged with options object from async info
2017-10-16 13:19:53 +02:00
Shubheksha Jalan
2ed67f172e
refactor(ES6): upgrade CompatibilityPlugin to ES6
2017-01-10 15:59:55 +05:30
Sean Larkin
aa8d01bf8d
refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot ( #3636 )
...
* refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot
* This change allows for buildin to now be part of the lint test by addition of an extra .eslintrc file which extends existing but sets es6 to false
* Turned on no-unused-vars for eslint, and then removed all warnings from turning that feature on
* Was getting notified of errors in "quote" property in eslintrc, so changed to correct value from error to 2.
* beautify
* swap invalid eslint config val
2016-12-30 09:43:49 -06:00
Johannes Ewald
993aeab5b1
Add support for .json files out of the box
...
See https://github.com/webpack/webpack/issues/3363
2016-12-07 11:43:47 +01:00
Tobias Koppers
ec262a4007
refactoring: moved parser instancation into NormalModuleFactory
...
breaking change: compiler.parser must no longer be used. Use this instead:
``` js
compiler.plugin("compilation", function(compilation, params) {
params.normalModuleFactory.plugin("parser", function(parser, parserOptions) {
parser.plugin(/* ... */);
});
});
```
required for #2978
2016-09-15 00:22:10 +02:00
Tobias Koppers
84506cb609
remove warning for pre-build files
2016-06-24 01:50:10 +02:00
Tobias Koppers
461c49ab66
updated partly to new enhanced-resolve API
2016-01-02 00:21:54 +01:00
Tobias Koppers
f7d799adb4
rebeautify without spacing after keyword
2015-07-16 00:19:23 +02:00
Avi Haiat
0a340f2b1a
feat(app): Beautify all lib files
2015-07-13 01:20:09 +03:00
Tobias Koppers
cebd3b9722
added linting
2015-04-23 23:55:50 +02:00
Peter Magenheimer
5e0bfa74c9
Improve critical dependency warning text
...
Just a couple of typos and minor grammar issues.
2015-03-06 14:59:11 +01:00
Tobias Koppers
a70f91499a
Allow mixing different webpack versions
2014-06-18 10:59:54 +02:00
Tobias Koppers
ff36642818
added support and a special message for browserify pre-built javascripts.
...
fixed #299
2014-06-05 19:52:45 +02:00
Tobias Koppers
ee01837d66
Refactored everything for 0.9
2013-01-30 18:49:25 +01:00