Florent Cailhol
d4811b0d37
Use for-of loops instead of forEach
2018-01-23 22:53:18 +01:00
Florent Cailhol
7f303e5260
Use Buffer.from instead of new Buffer
2018-01-22 17:23:34 +01:00
EugeneHlushko
2aab060f26
Refactor: indexOf >< checks to includes
2018-01-11 18:58:39 +02:00
EugeneHlushko
6d893ad9c2
Feature: SourceMapDevToolPlugin progress: make the linter happy again
2018-01-04 18:27:55 +02:00
Tobias Koppers
55ad52fd9a
report progress for both steps
2018-01-04 15:42:31 +01:00
EugeneHlushko
91f961b8fa
Feature: SourceMapDevToolPlugin progress: PR changes
2018-01-03 16:56:40 +02:00
EugeneHlushko
fdd6b4ebee
Feature: SourceMapDevToolPlugin progress: PR changes
2018-01-03 16:55:38 +02:00
EugeneHlushko
fe83f52b0a
Feature: SourceMapDevToolPlugin progress: wip
2018-01-03 12:50:37 +02:00
EugeneHlushko
7621c46464
Feature: SourceMapDevToolPlugin progress: wip
...
Feature: SourceMapDevToolPlugin progress: wip
2018-01-03 11:40:57 +02:00
Florent Cailhol
36c690d37f
Use tapable instead of 'plugin'
2017-12-08 14:23:31 +01:00
Tobias Koppers
bfa4b49858
Merge branch 'master' into next
2017-12-04 14:36:07 +01:00
Tobias Koppers
7d87f34269
Only create one RequestShortener per Compiler
...
move Compiler.context assignment into Compiler
2017-12-04 12:23:42 +01:00
Tobias Koppers
dae9de6595
Merge branch 'next' into feature/validate-plugin-options
...
# Conflicts:
# lib/SourceMapDevToolPlugin.js
# lib/optimize/AggressiveSplittingPlugin.js
# yarn.lock
2017-11-28 09:59:59 +01:00
Tobias Koppers
471e1a28f4
make url only relative when no publicPath has been provided
2017-11-27 07:53:38 +01:00
EugeneHlushko
840b43f16a
SourceMapDevToolPlugin: add fileContext and publicPath options. Add a configCase test
2017-11-25 16:38:30 +02: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
a53672d1a2
Merge branch 'master' into next
...
# Conflicts:
# lib/EvalSourceMapDevToolModuleTemplatePlugin.js
# lib/dependencies/HarmonyDetectionParserPlugin.js
# lib/dependencies/HarmonyImportDependency.js
# package.json
# schemas/webpackOptionsSchema.json
# test/Validation.test.js
2017-11-17 16:03:46 +01:00
Sergey Petushkov
cdd593b847
Rename schemas; Make imports less verbose
2017-11-12 09:48:08 +01:00
Sergey Petushkov
d73ad04c72
Add spaces to plugin names
2017-11-12 09:48:08 +01:00
Sergey Petushkov
1065a6e46c
Refactor plugins to use schema-utils; Remove unused
2017-11-12 09:48:08 +01:00
Sergey Petushkov
744dbe9b95
Add validations to plugins
2017-11-12 09:48:08 +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
Abhilash Singh
1a856937d1
Source maps: webpack serves null content from sourcesContent #5542
2017-10-29 04:49:42 +05:30
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
4105297de6
Merge branch 'next' into deprecation/webpack-3
2017-09-11 11:26:44 +02:00
Filipe Silva
2f30174d15
fix: replace for..of to prevent v8 deoptimization
...
According to https://github.com/GoogleChrome/devtools-docs/issues/53#issuecomment-319107156 , use of `for...of` statements will cause a deopt in some versions of v8.
In a my particular case these two changes reduced 1.6 seconds in a big rebuild.
2017-08-29 14:35:37 +01:00
Tobias Koppers
5e46fff39d
Simplify code a little bit
2017-07-18 14:28:12 +02:00
Evan Scott
7a1630b108
refactor: collapse several array iterators into single reduce
2017-07-17 01:33:59 -04:00
Tobias Koppers
edd6228ac1
fix linting
2017-07-08 12:25:52 +02:00
Tobias Koppers
3dfa75e60d
generate source map names globally
2017-07-07 12:55:11 +02:00
Tobias Koppers
5e84167fbd
remove deprecated stuff
2017-06-14 14:41:02 +02:00
Tobias Koppers
e7474b1b8b
fixup for source-map contenthash
2017-06-05 09:46:01 +02:00
Rafael De Leon
84b6554f98
Enable use of sourceMapFilename: "[file].map?[contenthash]" as a useful workaround for this bug in chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=508270
2017-06-02 10:06:18 -07:00
Tobias Koppers
0990915ad8
spacing
2017-04-13 08:07:52 +02:00
Tobias Koppers
d8a8bd329b
deprecate string option instead of removing it
2017-04-13 08:06:56 +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
Tobias Koppers
7d142780de
change Buffer.from to new Buffer
2017-04-09 10:08:15 +02:00
Will Mendes
127cd7898b
refactor(SourceMapDevToolPlugin): upgrade to ES6
2017-04-07 20:14:19 +10:00
Tobias Koppers
546fe6dfc1
fixes #4086
2017-01-25 22:57:27 +01:00
Sean Larkin
72226db030
add missing disable line
2017-01-17 00:32:42 -06:00
Sean Larkin
91c1f35e05
fix(node): rollback changes of Buffer.from to new Buffer() and bump down travis to 4.3 min node v
2017-01-16 23:57:27 -06:00
Sean Larkin
7327ee608a
chore(eslint): added eslint-node-plugin ( #3652 )
2016-12-30 17:13:49 -06:00
Tobias Koppers
28776e28f3
added sourceRoot option for SourceMap plugins
...
simplified option passing
fixes #238
2016-05-05 10:24:18 +02:00
Tobias Koppers
5d981fe3d5
Option noSources that removes sourcesContent from sourcemaps. Also available as "nosources" in devtool option.
...
Picked from #2213
2016-04-10 23:37:17 +02:00
Kenny Tran
eebc5ceaf6
Fix no-redeclare in code
2016-01-18 18:57:42 -08:00
Tobias Koppers
5bfc68aacb
Merge branch 'master' of https://github.com/webpack/webpack
2016-01-03 21:44:02 +01:00
Tobias Koppers
ded70aef28
moves stuff from webpack-core to webpack-sources
2015-12-29 17:44:55 +01:00
nanzhu
af4c2e88c0
Set charset as 'utf-8' in sourcemap plugin
...
by adding 'charset=utf-8;'.
2015-12-24 10:50:22 +08:00
Tobias Koppers
5879483eb1
fixed formating
2015-10-31 15:31:10 +01:00
Tobias Koppers
0f0ede8a2c
removed deprecated parameters for plugins
2015-10-28 23:26:52 +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
Jordan Sexton
4c4ac7bdb6
Allow CSS source maps by default
2015-04-13 14:17:29 -05:00
Tobias Koppers
348c38b3f9
allow missing source in SourceMap #954
2015-04-08 15:10:09 +02:00
Tobias Koppers
0f3a9cd199
removed debugging line
2015-04-08 08:10:43 +02:00
Tobias Koppers
0431b74149
added cheap-source-map and lineToLine option
2015-04-05 01:52:30 +02:00
Tobias Koppers
92f53176a2
use sourceAndMap is available
2015-04-03 12:38:56 +02:00
Sebastien Barre
9cbce108f1
Factorize code with UglifyJSPlugin
2015-03-20 14:00:39 -04:00
Sebastien Barre
6deb702490
Another stab at excluding source maps based on Tobias input
2015-03-19 11:30:52 -04:00
Sebastien Barre
31ee49b95c
First stab at SourceMapDevToolPlugin excludeChunks option
2015-03-17 14:53:14 -04:00
Tobias Koppers
9b7117942f
fixed #853
...
with test
2015-03-04 07:45:26 +01:00
Tobias Koppers
56fb0fe6d9
fixed bug with `null` as first arg to source-map
2015-03-03 23:41:28 +01:00
Tobias Koppers
a547d9084c
cheapMode for SourceMapPlugin
2015-02-19 01:11:29 +01:00
Tobias Koppers
04121c81d4
add SourceMap file to chunk.file even in cached case
...
fixes webpack/extract-text-webpack-plugin#24
2014-09-24 12:50:11 +02:00
Tobias Koppers
dd232012ca
Merge pull request #427 from diurnalist/feature/templated-path-plugin-sq
...
Add TemplatedPathPlugin to generically handle asset paths w/ template vars
2014-09-11 19:09:17 +02:00
Jason Anderson
f371945a29
Add TemplatedPathPlugin
2014-09-11 15:31:08 +02:00
Tobias Koppers
e0f975eb9e
fixes webpack/extract-text-webpack-plugin#14
2014-09-07 22:54:38 +02:00
Tobias Koppers
6f2be891c2
added 'hidden-sourcemap' devtool
...
fixes #437
2014-08-28 15:13:05 +02:00
Tobias Koppers
15e83490b8
Find duplicates globally. Don't fallback shortest.
...
fixes #363
2014-07-26 17:54:00 +02:00
Tobias Koppers
d7e50e5da3
Better filenames in dev tools
2014-07-18 13:31:50 +02:00
Dan Abramov
28a7677981
Make source map generated filenames configurable and use [name]?[loaders] by default
2014-07-18 02:58:01 +04:00
Tobias Koppers
572ebfcd51
use correct (relative) url to source map
2014-07-16 20:57:10 +02:00
Tobias Koppers
3efb71500a
fixes #316
2014-06-17 21:50:19 +02:00
Taylor Brown
7dc54a1ea8
Fix: "*" was being appended to sources too often
...
The while loop construction was actually yielding false positives due to the placement of parentheses, and would append an "*" to sources even when unnecessary.
2014-06-17 16:35:31 +02:00
Tobias Koppers
e957ec7467
fixed minor sourcemap default issue
2014-05-26 09:45:42 +02:00
Tobias Koppers
969cb3fc30
updated sourceMappingURL and sourceURL format, fixes #91
2014-05-22 12:07:06 +02:00
Tobias Koppers
b6923ccf93
sourceMapsFilename support querystrings
...
fixes #217
2014-04-03 19:46:53 +02:00
Tobias Koppers
571505aa8f
clean up dependencies
2014-03-21 16:16:31 +01:00
Tobias Koppers
f3012a4d8d
better source maps
2014-02-12 08:57:26 +01:00
Tobias Koppers
3170b76b22
webpack 1.0 beta
...
moved many options to plugins
#113
2013-12-17 23:21:49 +01:00
Tobias Koppers
074a26efb5
Performance #106
2013-10-14 13:59:44 +02:00
Tobias Koppers
4c7766a694
support #sourceURL and #sourceMappingURL, #91
2013-07-04 14:08:47 +02:00
Tobias Koppers
b5b672233f
Fixed caching
2013-07-04 11:55:37 +02:00
Tobias Koppers
b5f7c36a29
fixes #76
2013-05-13 16:01:44 +02:00
Tobias Koppers
e43ec6251e
fixed edge cases
2013-04-02 09:14:19 +02:00
Tobias Koppers
0de7c73ad8
SourceMap support
2013-03-26 16:54:41 +01:00