Nitin Kumar
412ae5425e
chore: udpate prettier to v3
2024-01-14 07:11:34 +05:30
alexander.akait
3b80086b65
fix: matcher type
2023-05-17 14:25:07 +03:00
Sean Larkin
3026ad9b81
types(coverage): Increase type coverage of ModuleFilenameHelpers
2023-04-23 02:43:51 +00:00
Peter Goldberg
387fb14254
add missing loaders to moduleFilenameTemplate function call
2023-02-24 12:38:01 -05:00
Tobias Speicher
8f56fcba72
Replace deprecated String.prototype.substr()
...
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr ) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-13 22:54:18 +01:00
Louis Chemineau
b337d40aff
Limit change to absoluteResourcePath
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-04 16:26:08 +01:00
Tobias Koppers
4024bb7a2f
cleanup
2022-01-04 13:58:36 +01:00
Louis Chemineau
fdf28b84ed
Use resource path when possible for absoluteResourcePath
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-01-04 13:58:36 +01:00
Tobias Koppers
4a8bf4c084
allow to configure all hash functions used
...
fix default hash function for HttpUriPlugin to sha512
2021-09-23 14:55:13 +02:00
Tobias Koppers
b0fa9ccada
pretty files
2021-05-11 09:31:46 +02:00
highonweb
bc1911bf78
Changed name of memorize function to memoize
2020-12-27 03:02:57 +05:30
Tobias Koppers
6d3213ee98
make ModuleFilenameHelpers.create lazy
2020-12-04 17:06:37 +01:00
Tobias Koppers
6047e8015b
change let to const
2020-11-11 15:10:09 +01:00
Tobias Koppers
72b94ea31b
improve how replacements are done
...
add syntax to escape placeholders
2020-11-11 15:09:09 +01:00
Jason Williams
fde6c69989
Escape brackets in the resource name so they don't get removed during template
2020-11-04 19:23:24 +00:00
Mohsen Azimi
7b07a8db66
Upgrade to Prettier 2
2020-03-28 18:20:24 -04:00
evilebottnawi
dafa4cd69a
chore: setup cspell
2020-03-12 19:51:26 +03:00
Tobias Koppers
1d72a05fed
Merge tag 'v4.36.0' into next
...
4.36.0
2019-07-17 16:02:33 +02:00
ikopeykin
27b1e17f5b
createHash typescript
2019-07-10 14:06:36 +03:00
Tobias Koppers
b2e7837288
replace Object.assign with object spread
2019-06-19 13:16:05 +02:00
Tobias Koppers
bad9d8a271
move Module.id into ChunkGraph
...
remove disconnect and unseal from Module
2018-08-28 15:08:52 +02:00
Tobias Koppers
02b15a1b46
pass chunkGraph to updateHash instead of moduleGraph
...
pass chunkGraph to compareModulesById instead of moduleGraph
pass chunkGraph to methods of RuntimeTemplate
use comparators from module at some places
2018-08-28 12:06:53 +02:00
Tobias Koppers
cf5f1d723c
format existing code
2018-07-30 21:29:21 +02:00
Florent Cailhol
2a9452e51b
Add brackets for multiline if/for statements
2018-05-29 15:45:44 +02:00
Florent Cailhol
f1092ad516
Update prettier toolchain
2018-03-26 16:56:10 +02:00
Tobias Koppers
5238159d21
run prettier on existing code
2018-02-25 02:00:20 +01:00
Florent Cailhol
40ee8c76d2
Use MD4 for hashing
2018-02-22 11:27:11 +01:00
ruszki
83f772a611
Remove footer from source maps and eval
2018-01-30 22:46:23 +01:00
Florent Cailhol
77bb4c0055
Deprecate forEach* and map* methods
2018-01-23 22:19:59 +01:00
Tobias Koppers
a0ef93f939
aggregate all crypto hash usages into util/createHash
...
try to avoid calling hash.update with short strings
2017-11-23 11:09:17 +01:00
Tobias Koppers
4597805222
Merge branch 'next' into master
2017-11-11 19:00:05 +01:00
Tobias Koppers
f7c2f8e470
Update code style to arrow functions
2017-11-08 11:56:01 +01:00
Stephan Badragan
f0b81cbd34
fixing code style issue
2017-10-20 20:50:28 +01:00
Stephan Badragan
68acd41bff
passing namespace argument to contructors of dev tool plugins
2017-10-19 13:23:28 -07:00
Stephan Badragan
72b28aa1c3
passing devtoolNamespace through instead of setting it statically
2017-10-18 23:30:37 +01:00
Stephan Badragan
f925032d5a
adding `output.devtoolNamespace` option
...
When loading multiple libraries built with webpack, you can run into
collisions of the sourcemap file paths. For examle, both have
"webpack:///src/index.js".
This change addresses the problem by introducing a new output option
`output.devtoolNamespace` which defaults to `output.library` when
not specified. The defaults moduleFilenameTemplates in all the
sourcemap plugins have been modified to start with:
"webpack://[namespace]/...", where [namespace] will be replaced by
the `output.devtoolNamespace`.
Notice that there are only two slashes following "webpack:" now.
This is to make it behave just as before when not building with a
namespace. When building with a namespace you only get the two
slashes, but from what I've seen the chrome dev tools only care
about the first 2 slashes anyways.
Discussed with sokra here:
https://github.com/webpack/webpack/issues/5767
2017-10-18 01:14:40 +01:00
Tobias Koppers
e8bc9c2b3b
use a Set for Module.chunks
2017-04-18 23:27:25 +02:00
e-cloud
52055ba07e
refactor: dead code elimination
...
remove those code not defined but used;
remove unused code
2017-04-11 19:43:05 +08:00
SendilKumar N
f962eee840
fixing comments
2017-04-04 10:18:43 +02:00
SendilKumar N
dbf4c03eb2
refactor(ES6): ModuleFilenameHelpers
2017-04-04 10:18:43 +02:00
Wout Mertens
2596b329b6
Prevent request names from breaking comments
...
Using `/*` as comment delimiters allows request names to terminate a comment early, like in https://github.com/carteb/carte-blanche/pull/262 .
2016-06-07 11:21:36 +02:00
Kenny Tran
eebc5ceaf6
Fix no-redeclare in code
2016-01-18 18:57:42 -08:00
Evgeny Shpilevsky
cbd0ba230c
Fix fail when undefined module is coming to footer generator
...
Fix issue #954
2015-10-28 13:36:01 +03:00
Tobias Koppers
5cd6e7d0b3
fixed a few linting issues
2015-07-16 00:39:56 +02: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
Avi Haiat
2335b1d45f
fix tab
2015-07-07 17:36:25 +03:00
Avi Haiat
9db54577ad
feat(app): devtool(Fallback)ModuleFilenameTemplate can now also be defined as function
...
The function will be passed an object with the following properties:
- identifier
- shortIdentifier
- resource
- resourcePath
- absoluteResourcePath
- allLoaders
- query
- moduleId
- hash
2015-07-07 15:41:12 +03:00
Tobias Koppers
cebd3b9722
added linting
2015-04-23 23:55:50 +02:00
Tobias Koppers
348c38b3f9
allow missing source in SourceMap #954
2015-04-08 15:10:09 +02:00