Tobias Koppers
45e9c31f18
added missing dependency name
2016-01-14 21:21:11 +01:00
Tobias Koppers
2e5a5f9db3
more pretty CLI options, added --verbose option
2016-01-14 21:21:09 +01:00
Tobias Koppers
3c885d9d11
Merge pull request #1816 from yyx990803/master
...
fix eval-source-map failing when source ends with comment
2016-01-14 20:13:35 +01:00
Tobias Koppers
01cbeae398
beautify and do tests first
2016-01-11 20:09:30 +01:00
Tobias Koppers
46b12b2095
better ProgressPlugin and fixed bug for multi-compilation
2016-01-09 23:48:37 +01:00
Tobias Koppers
75abfd13b6
more details in the progress plugins
...
changed handler signature to multiple arguments
2016-01-09 23:17:20 +01:00
Julian Scheid
d4db20aacc
Add a hook for adding script attributes
...
Closes #1800
2016-01-08 17:45:53 +01:00
Tobias Koppers
987d718c9c
fixed #1833
2016-01-06 23:50:12 +01:00
Tobias Koppers
c838656e7f
moved defaults for options.output into central place
2016-01-06 23:02:25 +01:00
Tobias Koppers
6bc45850cd
fixed #1840
2016-01-06 21:39:50 +01:00
Tobias Koppers
a4cc54e759
added manual context map option to ContextReplacementPlugin
2016-01-06 19:56:17 +01:00
Evan You
d01c6b63da
fix eval-source-map failing when source ends with comment
2016-01-05 10:41:59 -05:00
Tobias Koppers
5bfc68aacb
Merge branch 'master' of https://github.com/webpack/webpack
2016-01-03 21:44:02 +01:00
Tobias Koppers
fecf07dd1f
integrated new enhanced-resolve version
2016-01-03 21:42:56 +01:00
Tobias Koppers
461c49ab66
updated partly to new enhanced-resolve API
2016-01-02 00:21:54 +01:00
Tobias Koppers
4c7c929096
simplified defaults
2016-01-02 00:18:25 +01:00
Tobias Koppers
1c961afe7b
fixed small issues with new loader-runner
2015-12-30 16:39:10 +01:00
Tobias Koppers
ded70aef28
moves stuff from webpack-core to webpack-sources
2015-12-29 17:44:55 +01:00
Tobias Koppers
13c12e9bec
fixed compatibility issue
2015-12-26 20:42:52 +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
bde8636d92
behave according to precedence rules from spec
...
fixed #1792
2015-12-23 16:24:45 +01:00
Tobias Koppers
a1ed89ecfa
use commonjs compatibility similar to babel
...
#1788
2015-12-23 00:08:06 +01:00
Tobias Koppers
c26aa921ce
fixed #1731
2015-12-22 11:12:06 +01:00
Tobias Koppers
4c69156172
fixed #1769
2015-12-22 11:00:48 +01:00
Tobias Koppers
f5533c1cd2
fixed #1784
2015-12-22 10:53:49 +01:00
Tobias Koppers
c5bc9fd2e3
Merge pull request #1774 from antigremlin/fix-shortener-backslashes
...
Fix Windows filename backslash incompatibility
2015-12-18 18:40:05 +01:00
Tobias Koppers
d883923da1
Merge pull request #1764 from jnwng/jw/dll-plugin
...
Using DllPlugin with multiple chunks ends without emitting chunks.
2015-12-18 18:32:03 +01:00
Andrey Taranov
59b3979635
Fix Windows filename backslash incompatibility
...
With some loaders (specifically with babel) under Windows the file names
in the source map already come converted to forward slashes. This is
incompatible with RequestShortener so that the source map paths are not
shortened to a relative path. This change makes RequestShortener tolerant
to such cases while preserving existing behaviour.
Fixes #1770
2015-12-18 13:52:23 +01:00
Jon Wong
4650dfef44
Fixing issue where DllPlugin + code-splits caused Webpack to end without emitting chunks.
...
When utilizing code-splitting via a statement like `require.ensure` in addition to the `DllPlugin`, the webpack process would emit the Dll manifest, but not the chunks corresponding to that manifest.
According to [async#forEach](https://github.com/caolan/async#eacharr-iterator-callback ), the callback must be called at the completion of every iteration - when utilizing code-splitting, the shortcut branch here would never call the iterator callback, which in turn meant that the `emit` callback never got called, causing the chunks generated by the Dll to not get emitted.
Adding the completion callback results in the behavior we expect - the manifest and the chunks corresponding to that manifest both get emitted.
2015-12-16 10:45:48 -08:00
Tobias Koppers
07c1908bd0
Merge pull request #1738 from lexaurin/master
...
JS API: ProgressPlugin default handler
2015-12-14 17:54:15 +01:00
Nikita Khomyakov
0b9601e07e
Add missing Electron built-in modules
...
Add `ipc-renderer` and `ipc-main` to the list of Electron's external modules
2015-12-11 13:15:19 +02:00
Lex Vjatkin
01e7a7cb95
JS API: ProgressPlugin default handler
...
Default handler moved from CLI args parser to plugin itself.
Now you can use ProgressPlugin in JS API without specifying handler.
Resolves webpack/webpack#1000 , SRP
2015-12-10 14:06:20 +01:00
Rory Hunter
ebe2f371c1
Fix hot loader compatibility with Java8 Nashorn
...
The way that the hot loader is included in a bundle breaks in Java 8's
Nashorn engine, because of a missing semicolon. This change introduces
a placeholder value that can be correctly substituted when building
a bundle, but is otherwise inert.
Note that I don't particularly like this change, so if there's a better
fix, I'd like to hear about it.
2015-12-04 15:02:11 +00:00
Tobias Koppers
e8ffa362bb
added pathinfo comments for harmony reexport
2015-12-01 16:13:46 +01:00
Tobias Koppers
5aeef4a792
added HashedModuleIdsPlugin
2015-11-29 20:16:01 +01:00
Tobias Koppers
c76c52720b
sort modules by id when emitting
2015-11-29 20:13:04 +01:00
Tobias Koppers
805f558cc6
Merge branch 'webpack-1'
...
Conflicts:
package.json
2015-11-24 08:28:39 +01:00
Tobias Koppers
cfd8d42cec
Merge pull request #1654 from gbk/webpack-1
...
Fix windows cross driver path not found issue
2015-11-20 22:21:44 +01:00
Tobias Koppers
e5c11c721e
Merge branch 'webpack-1'
...
Conflicts:
lib/optimize/CommonsChunkPlugin.js
package.json
2015-11-20 21:35:37 +01:00
Tobias Koppers
181da3c004
fixed another bug with the CommonsChunkPlugin
...
when using multiple commons chunks
other optimization plugins doesn't optimize perfectly
2015-11-20 21:29:32 +01:00
Tobias Koppers
556872b38f
fixed bug in CommonsChunkPlugin
...
when passing passing mixed existing and not existing names
2015-11-20 20:24:06 +01:00
Tobias Koppers
d5e8ec7901
fixed syntax from previous commit
2015-11-20 20:15:03 +01:00
曹柯
f770eaebda
change space to tab
2015-11-21 01:10:39 +08:00
曹柯
4fe6145f8c
fix windows cross driver path not found issue
2015-11-21 01:07:43 +08:00
Tobias Koppers
544079725e
Merge pull request #1651 from leftstick/master
...
add electron to both electron and electron-renderer target
2015-11-20 17:26:43 +01:00
Tobias Koppers
b296e5a08c
use options object for NodeTemplatePlugin
2015-11-20 08:38:15 +01:00
Tobias Koppers
37e9515cc4
remove deprecated stuff
2015-11-20 08:37:56 +01:00
Howard.Zuo
962e3902c8
add electron to both electron and electron-renderer target
2015-11-20 11:12:03 +08:00
Tobias Koppers
67656b90e2
split uglify-js from loader minimize, better shortcut defaults
2015-11-16 23:11:15 +01:00
Tobias Koppers
20e0f785bc
Merge pull request #1467 from chentsulin/patch-1
...
`electron-main` and `electron-renderer` targets
2015-11-15 00:39:15 +01:00
Tobias Koppers
ede0166a75
fixes #1600
2015-11-14 22:41:06 +01:00
Tobias Koppers
a3837b779a
Merge pull request #1605 from alexkuz/patch-1
...
Configurable stats colors
2015-11-14 15:42:31 +01:00
Kuzya
33356f65ba
fix code styling to pass tests
2015-11-14 01:05:20 +03:00
Tobias Koppers
3201dc333d
Merge branch 'webpack-1'
...
Conflicts:
lib/NormalModuleFactory.js
package.json
2015-11-13 21:58:38 +01:00
Tobias Koppers
6b60662068
performance improvement
2015-11-13 21:55:41 +01:00
Tobias Koppers
8d10b228a0
force relative path for "module" require
...
fixes #1596
2015-11-10 21:26:47 +01:00
Alexander Kuznetsov
dcb0cf7af3
Configurable stats colors
...
Default colors may not look good with some terminal color settings, so this patch allows to setup stats colors explicitly:
```
var config = {
stats: {
colors: {
yellow: '\u001b[33m',
green: '\u001b[32m'
}
}
}
```
`colors: true` will use default colors.
2015-11-09 13:33:32 +03:00
Tobias Koppers
0f2f71492f
Merge pull request #1523 from jhen0409/patch-1
...
Fix module of electron target: web-view -> web-frame
2015-11-07 21:28:50 +01:00
Tobias Koppers
72e8dd0147
Merge pull request #861 from webpack/webpack-2
...
Webpack 2
2015-11-06 01:12:38 +01:00
Tobias Koppers
662c5abd1f
Merge pull request #1337 from shivawu/fix-abs-path
...
Fix the absolute path used in NodeStuffPlugin
2015-11-03 19:26:21 +01:00
Spencer Elliott
c6ccf9d3a0
Add web worker HMR support
2015-11-02 22:39:24 -05:00
Tobias Koppers
cabe7866fa
HMR with harmony modules
2015-11-01 23:27:53 +01:00
Tobias Koppers
382dbca10c
Merge branch 'master' into webpack-2
...
Conflicts:
test/configCases/target/buffer-backward/index.js
2015-11-01 11:10:36 +01:00
Jhen
32d457eee9
Keep web-view to support older electron versions
2015-11-01 02:42:37 +08:00
Tobias Koppers
b339a7e731
Merge pull request #1561 from ftdebugger/master
...
Fix fail when undefined module is coming to footer generator
2015-10-31 16:10:58 +01:00
Tobias Koppers
5879483eb1
fixed formating
2015-10-31 15:31:10 +01:00
Tobias Koppers
03ecbd50f8
allow to use "old" modules from harmony modules
2015-10-31 15:28:13 +01:00
Tobias Koppers
91621a7c4b
hoist exports, more efficent for immutable declarations
2015-10-31 14:43:44 +01:00
Tobias Koppers
0f0ede8a2c
removed deprecated parameters for plugins
2015-10-28 23:26:52 +01:00
Tobias Koppers
9dffb44c93
Merge branch 'master' into webpack-2
2015-10-28 22:33:11 +01:00
Tobias Koppers
e92bed7b7c
fixed #295
2015-10-28 19:47:12 +01: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
bf1f1142d0
Chunk loading error handling
...
fixes #692
fixes #758
fixes #686
fixes #785
2015-10-24 12:20:51 +02:00
Tobias Koppers
6307ed72ac
Added experimental usage tracking of ES6 modules and example
2015-10-21 21:05:01 +02:00
Tobias Koppers
0c110b4ac7
added es6 stuff to the parser
...
fixes #1490
2015-10-21 18:14:47 +02:00
Jhen
cf9ed59ee8
Fix module of electron target: web-view -> web-frame
2015-10-19 19:54:48 +08:00
Tobias Koppers
654782763b
Merge pull request #1510 from virajsanghvi/uglifyjs-reset
...
Reset uglify's base54 counters for each file
2015-10-18 20:46:08 +02:00
Tobias Koppers
4985cb2844
Merge branch 'master' into webpack-2
...
Conflicts:
lib/dependencies/ContextDependency.js
2015-10-18 10:55:23 +02:00
Tobias Koppers
5acfacfdd6
replaced Class with constructor
2015-10-18 10:53:38 +02:00
Tobias Koppers
21e370cad0
added missing constructor properties
2015-10-18 10:44:51 +02:00
Sanghvi
6c3cd7750c
Fix indentation in uglifyjs change
2015-10-12 18:34:13 -07:00
Sanghvi
d1600176bd
Reset uglify's base54 counters for each file
2015-10-12 16:47:49 -07:00
WuCY
83143d69ca
Null case
2015-10-05 23:32:20 -07:00
C. T. Lin
f8700060ed
`electron-main` and `electron-renderer` targets
2015-09-23 00:20:31 +08:00
Tobias Koppers
7cbd78c1da
Merge branch 'master' into webpack-2
...
Conflicts:
.travis.yml
bin/config-optimist.js
test/statsCases/define-plugin/expected.txt
2015-09-19 20:11:48 +02:00
Stephan Florquin
00b4c539ca
Add native-image plugin to electron target
2015-09-05 20:08:59 +02:00
Tobias Koppers
159ef42fa8
fixed #1415
2015-09-03 14:17:11 +02:00
Tobias Koppers
f3197f5313
typo
2015-09-03 11:36:02 +02:00
Tobias Koppers
af780891ee
Merge pull request #1387 from voldern/named-define-umd
...
Name AMD module in UMD target if library is set
2015-08-26 12:29:21 +02:00
Espen Volden
db21a79587
Add option `umdNamedDefine` to toggle naming
2015-08-26 11:50:42 +02:00
Tobias Koppers
a9dc954e49
fixed WatchIgnorePlugin #979
2015-08-25 10:32:06 +02:00
Espen Volden
dd5d8660d4
Name AMD module in UMD target if library is set
...
In the AMD target the AMD module gets named, but in the UMD target its
is always anonymous, even if `library` is set in the config.
This patch names the AMD module if `library` is set.
See the discussion in the referenced issue to see the background for
this change.
If its a multi part library it uses the last key in the same was as it
does with the exports hash part of the UMD declaration. Is this the best
solution?
Resolves webpack/issues/989
2015-08-24 16:47:39 +02:00
Tobias Koppers
05f0cfc94a
Merge pull request #1364 from katranci/master
...
Report constructor correctly when inheriting from Tapable
2015-08-24 16:34:15 +02:00
Alberto Leal
59656c9717
define call should include empty dependencies list
...
see: https://github.com/umdjs/umd/pull/34
> Without this, the factory may be scanned for additional dependencies matching the literal string require("module-id"), which is not correct. See https://github.com/amdjs/amdjs-api/wiki/AMD#simplified-commonjs-wrapping- .
2015-08-19 05:55:34 -04:00
Ahmet Katrancı
8ff6cb5fed
Report constructor correctly when inheriting from Tapable
2015-08-18 12:35:57 +01:00
Tobias Koppers
7934faa181
Merge branch 'master' into webpack-2
...
Conflicts:
.travis.yml
bin/config-optimist.js
package.json
test/TestCases.test.js
2015-08-09 13:32:19 +02:00
WuCY
7eb3555844
Fix the absolute path used in NodeStuffPlugin
2015-08-08 15:32:33 -07:00
Tobias Koppers
6782a1e2bb
Merge pull request #1270 from bhamodi/master
...
Use secure links.
2015-08-08 13:00:43 +02:00
Tobias Koppers
44f919ecc7
Merge branch 'master' into webpack-2
...
Conflicts:
test/statsCases/chunks/expected.txtT
2015-08-08 09:40:35 +02:00
Tobias Koppers
8f44bc3e7b
fixed a bug with incorrect ordering of index and index2
...
this caused incorrect order of rules in extracted css
expose index and index2 to the stats
2015-08-06 13:22:46 +02:00
Juan Lomán
ce789e21d3
Appveyor timed out again
2015-08-03 05:15:08 -05:00
Juan Lomán
d9dd39aeae
Trim trailing whitespace aided by editorconfig
2015-08-03 04:46:29 -05:00
Juan Lomán
ae0879aac9
Appveyor weirdness
2015-08-03 04:42:50 -05:00
Juan Lomán
be2c668b4a
Appveyor beautify-check compliance
2015-08-03 04:26:46 -05:00
Juan Lomán
7e58665917
Add stats config presets.
...
`stats.toJson` and `stats.toString` now accept string/boolean values: `none` (or false), `errors-only`, `minimal`, `normal` (or true), `verbose`. A new static function was added: `Stats.presetToOptions(name)`, returns the options object from a preset name.
2015-08-03 04:01:29 -05:00
Alberto Leal
4024689e63
Stronger check and override of comments in UglifyJsPlugin options
...
Fixes https://github.com/webpack/webpack/issues/324
2015-07-26 21:26:27 -04:00
Tobias Koppers
7887d614b0
fixed test and comment
2015-07-25 15:37:48 +02:00
Tobias Koppers
45fcb1fca3
testcase+fix for CommonsChunkPlugin and entries
2015-07-25 15:00:05 +02:00
Tobias Koppers
5bbfbae551
Merge branch 'master' into webpack-2
...
Conflicts:
package.json
test/statsCases/chunks/expected.txt
2015-07-25 13:49:14 +02:00
Tobias Koppers
8d5c2c8c30
Merge pull request #732 from Arnavion/master
...
Expose the compiler's input filesystem to loaders.
2015-07-23 23:31:55 +02:00
Tobias Koppers
dd73373d86
fixed #1044 and fixed #1244
2015-07-22 23:40:46 +02:00
Tobias Koppers
ea7fd67ec1
fixed #1239
2015-07-22 22:34:25 +02:00
Baraa Hamodi
3bcf17dca0
Use secure links.
2015-07-20 15:29:53 -07:00
Tobias Koppers
431a4c791c
Merge branch 'master' into webpack-2
...
Conflicts:
hot/dev-server.js
hot/only-dev-server.js
hot/poll.js
hot/signal.js
lib/ChunkTemplate.js
lib/HotModuleReplacement.runtime.js
lib/HotModuleReplacementPlugin.js
lib/JsonpMainTemplatePlugin.js
lib/MainTemplate.js
lib/NormalModule.js
lib/Parser.js
lib/RecordIdsPlugin.js
lib/WebpackOptionsApply.js
lib/dependencies/RequireEnsureDependency.js
lib/node/OldNodeWatchFileSystem.js
lib/optimize/OccurrenceOrderPlugin.js
package.json
2015-07-17 09:30:37 +02: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
6d1d9afe58
feat(app): Fix merge conflict
2015-07-12 23:46:54 +03:00
Avi Haiat
daff7440a6
feat(app): Fix some obvious lint errors and warnings
2015-07-08 15:52:41 +03:00
Avi Haiat
5594eab317
feat(app): Improve eslint and jsbeautify
2015-07-08 15:16:50 +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
8cfeb51c30
refactoring and bug fixes
2015-07-07 00:11:13 +02:00
Tobias Koppers
ea53b8761d
maybe fixed a little HMR issue
...
webpack/webpack-dev-server#206
2015-07-02 15:00:49 +02:00
Tobias Koppers
fceeea1b5d
removed linting errors
2015-07-01 00:44:25 +02:00
Tobias Koppers
cf30eeeb0f
Merge branch 'master' into webpack-2
...
Conflicts:
lib/ChunkTemplate.js
lib/Compilation.js
lib/HotModuleReplacement.runtime.js
test/TestCases.test.js
test/statsCases/chunks/expected.txt
test/statsCases/simple-more-info/expected.txt
test/statsCases/simple/expected.txt
2015-07-01 00:44:17 +02:00
Tobias Koppers
d98df52a49
added System.import API and async context
2015-07-01 00:19:52 +02:00
Tobias Koppers
a04ffb9283
added (experimental) NamedModulesPlugin
2015-06-27 22:47:51 +02:00
Tobias Koppers
02522f11c3
throw an error when trying to use [chunkhash]
...
... when it's not allowed.
I. e. with HMR enabled [chunkhash] for the entry chunk
is not allowed. Now it throws an error.
Also fixes a bug where [chunkhash] doesn't have to correct
length. fixes #1192
2015-06-27 11:34:17 +02:00
Tobias Koppers
4e041dfd52
fixed [chunkhash] and [name] issue
...
fixed #1181
fixed #1018
2015-06-24 23:17:12 +02:00
Tobias Koppers
69b5e548d5
use multiStep HMR by default
...
fixed bug in runtime
2015-06-21 22:22:55 +02:00
Dan Abramov
a6082c9ac8
Make hotDownloadManifest return a promise
2015-06-15 17:05:38 +03:00
Tobias Koppers
6bc6fcd75a
Merge pull request #1120 from kennyt/documentation
...
Add argument error handling for optimization plugins
2015-06-15 09:24:11 +02:00
Tobias Koppers
2e52a78ebe
Merge pull request #1146 from realtymaps/master
...
Stats.js formatError supports string errors
2015-06-15 09:09:58 +02:00
Tobias Koppers
41f56a523a
Merge branch 'master' into webpack-2
2015-06-13 17:47:50 +02:00
Tobias Koppers
e20c485928
reset module index and index2 when loading from cache
...
consistent entry order
2015-06-13 17:44:52 +02:00
Tobias Koppers
a6b02f02d8
fixed smaller bundles commit
2015-06-13 17:41:57 +02:00
Tobias Koppers
aa21d14b37
fixed WebWorker template
2015-06-13 16:23:17 +02:00
Tobias Koppers
bb90097dfe
smaller bundles
2015-06-13 16:23:10 +02:00
Tobias Koppers
2245c4acca
Promise based chunk loading API
...
don't flag entry module with `0` id anymore
use extra argument in chunk instead
this allows to require entry points
2015-06-13 11:45:28 +02:00
Tobias Koppers
66df34688e
Merge branch 'master' into webpack-2
...
Conflicts:
bin/convert-argv.js
lib/webpack.js
2015-06-07 22:24:03 +02:00
Nick McCready
64ef3176cd
Stats error reporting catches string errors. Some plugins appear to not obey the rules on error reporting. However this makes debuging a nightmare for users. Therefore the string should be allowed.
2015-06-05 13:35:54 -04:00
Kenny Tran
7e0a98bb29
Refactor size method for Chunks
2015-05-31 20:02:07 -07:00
Tobias Koppers
1231c17fd4
better criteria for modules without require fn
2015-05-31 23:28:24 +02:00
Tobias Koppers
e9d06a730a
Merge branch 'fix_nesting_webpack_require' of https://github.com/jRiest/webpack into jRiest-fix_nesting_webpack_require
2015-05-30 13:17:46 +02:00
Tobias Koppers
28aa3624a4
Merge pull request #1060 from webpack/multi-build
...
Multiple build support
2015-05-30 02:37:25 +02:00
Tobias Koppers
8b4973c41b
Merge pull request #1106 from Dashed/patch-1
...
rename atom to electron
2015-05-29 08:19:49 +02:00
Alberto Leal
4018f5a519
backwards compatibility for atom
2015-05-28 21:53:38 -04:00
Jake Riesterer
a287fb1a75
Don't provide __webpack_require__ argument to external modules
2015-05-27 13:09:45 -05:00
Kenny Tran
0c663ae3d5
Remove undefined check for MinChunkSizePlugin
2015-05-27 10:10:27 -07:00
Kenny Tran
7a080e6f24
Add argument error handling in optimization plugins
2015-05-27 09:46:47 -07:00
Kenny Tran
08d9d87f9a
Fix typos
2015-05-26 19:59:02 -07:00
Tobias Koppers
ddf6066128
fixed index for entry points
2015-05-25 20:46:23 +02:00
Tobias Koppers
20fe1ed007
Show time when zero
2015-05-23 13:05:08 +02:00
Alberto Leal
e43f1a41f3
rename atom to electron
2015-05-22 23:14:41 -04:00
Tobias Koppers
94ba35cb13
Merge branch 'master' into webpack-2
...
Conflicts:
lib/WebpackOptionsApply.js
2015-05-22 00:19:16 +02:00
Kenny Tran
7edffc381d
Small refactor for getting size
...
Currently, map is being called to extract sizes then reduce is called on that; so 2 iterations through the array. It is possible to solve this with only reduce: 1 iteration. reallyUsedModules probably won't ever be big enough for this to matter, so it comes down to readability.
I think doing a once-and-done reduce could be an improvement here. What do you guys think?
2015-05-21 12:39:08 -07:00
Kenny Tran
aa5e21f2bd
Remove unnecessary comma in message
2015-05-21 06:32:43 -07:00
Kenny Tran
9352bb8806
Fix typo in Chunk.js
2015-05-20 14:57:10 -07:00
Tobias Koppers
16af6a9dcd
fixed #1075
2015-05-18 23:32:41 +02:00
Tobias Koppers
a0938d728f
simpler EvalDevTool
2015-05-18 21:59:01 +02:00
Tobias Koppers
5454a89b36
removed deprecated options
2015-05-18 21:53:32 +02:00
Tobias Koppers
62bd7c1af4
export DllPlugin and DllReferencePlugin
2015-05-17 23:29:40 +02:00
Tobias Koppers
355763ad58
added support for scoped dlls
2015-05-17 23:03:21 +02:00
Tobias Koppers
a990924198
fixed #1068
2015-05-17 19:14:05 +02:00
Tobias Koppers
4fdf62b919
added DllReferencePlugin
2015-05-17 11:06:35 +02:00
Tobias Koppers
817e678d9a
added DllPlugin and dll example
2015-05-16 18:27:59 +02:00
Tobias Koppers
c92491ff30
better default for chunkFilename and tests
2015-05-16 16:10:25 +02:00
Tobias Koppers
11a578a36b
Merge branch 'master' into webpack-2
...
Conflicts:
lib/NormalModuleFactory.js
2015-05-16 14:59:50 +02:00
Tobias Koppers
599c39dbc0
better defaults for filename and chunkFilename
2015-05-16 14:52:23 +02:00
Tobias Koppers
1d0cf82a1e
added experimental DelegatedModules
2015-05-13 00:17:06 +02:00
Tobias Koppers
5a5b732785
refactored ExternalsPlugins to plugin based approach
...
instead of decorator
2015-05-13 00:15:01 +02:00
Tobias Koppers
89058a2c4a
Reverted watch option rename:
...
watch -> doWatch -> watch
watchDelay -> watch -> watchOptions
watchDelay and --watch-delay are decrecated now but functional with message
watch is decrecated now but functional with message
2015-05-12 21:17:35 +02:00
Tobias Koppers
7a05452001
Merge pull request #1052 from larrifax/master
...
Include/exclude filtering in BannerPlugin
2015-05-10 21:10:39 +02:00
Tobias Koppers
ff7848369a
Merge branch 'master' into webpack-2
...
Conflicts:
bin/webpack.js
package.json
2015-05-10 20:41:04 +02:00
Tobias Koppers
8a6ac101ea
generate two indices, which representent global order
...
and use the first for sorting modules by default
2015-05-10 18:43:47 +02:00
Tobias Koppers
d3a7994e35
expose `loc` for every Dependency
2015-05-10 18:31:58 +02:00
Tobias Koppers
e38d4b73c7
added constructor property to each Dependency
2015-05-10 17:12:10 +02:00
Tobias Koppers
18f3595cde
allow to pass watch options
...
deprecate old API
2015-05-10 13:50:15 +02:00
Tobias Koppers
9d5113827f
fixed #627
2015-05-10 13:11:45 +02:00
Kristian Tryggestad
b76aa12b38
Add include/exclude filtering to BannerPlugin
2015-05-09 02:36:00 +02:00
Tobias Koppers
1679218f80
fixed CommonsChunkPlugin
...
and added two explict vendor chunks example
2015-04-29 12:46:00 +02:00
Tobias Koppers
6c1eb49539
separated runtime code from compiler code
...
for better coverage data
2015-04-28 23:38:41 +02:00
Tobias Koppers
f4b9d5f57a
Merge branch 'master' into webpack-2
...
Conflicts:
lib/Compilation.js
lib/Compiler.js
lib/DefinePlugin.js
lib/HotModuleReplacementPlugin.js
lib/Parser.js
lib/node/NodeSourcePlugin.js
lib/node/OldNodeWatchFileSystem.js
package.json
2015-04-27 20:22:13 +02:00
Tobias Koppers
84b34151da
emit an error when using the CommonChunksPlugin wrongly
...
#946
2015-04-26 22:47:47 +02:00
Tobias Koppers
cebd3b9722
added linting
2015-04-23 23:55:50 +02:00
Tobias Koppers
962dddf966
fixed another issue with deduplication
2015-04-21 23:26:20 +02:00
Tobias Koppers
ee5815333e
more reliable recording and hashing of async chunks
...
fixed #433
2015-04-21 08:35:34 +02:00
Tobias Koppers
9c26ffe6a8
Merge branch 'master' into webpack-2
...
Conflicts:
lib/Stats.js
2015-04-20 21:08:42 +02:00
Tobias Koppers
9b0233efdf
fixed #991
2015-04-20 20:31:24 +02:00
Tobias Koppers
26512c564f
Merge pull request #988 from researchgate/crossorigin-loading
...
Possibility to load chunks with crossorigin
2015-04-20 19:55:17 +02:00
Tobias Koppers
8d350b69a6
Merge pull request #984 from faller/patch-1
...
fix length judgment in MinChunkSizePlugin
2015-04-20 19:51:22 +02:00
Tobias Koppers
3419ddcb29
use dedupe plugin later in compilation
...
fixed webpack/style-loader#54
2015-04-20 19:39:02 +02:00
Daniel Tschinder
d7458e23ca
Added possibility to crossorigin load chunks
...
Done by adding the crossorigin attribute to the injected script tag
2015-04-17 15:57:42 +02:00
Tobias Koppers
d9509e8e8d
add publicPath to stats
2015-04-17 10:17:10 +02:00
faller
d8a495c357
fix length judgment in MinChunkSizePlugin
...
combinations.length may become 0 after filter
2015-04-16 15:05:20 +08:00
Tobias Koppers
3092982afc
fixed test cases with updated DefinePlugin
2015-04-14 23:16:09 +02:00
Tobias Koppers
4d1e328cc8
fixed parser error
2015-04-14 23:15:51 +02:00
Tobias Koppers
210ef3d17d
updated parser to new estree spec, updated deps
2015-04-14 22:44:21 +02:00
Tobias Koppers
ed75627f06
Merge branch 'master' into webpack-2
...
Conflicts:
bin/convert-argv.js
package.json
2015-04-14 20:09:29 +02:00
Jordan Sexton
4c4ac7bdb6
Allow CSS source maps by default
2015-04-13 14:17:29 -05:00
Tobias Koppers
026170a8a3
don't deduplicate modules with async blocks
...
fixes webpack/bundle-loader#15
2015-04-10 10:02:26 +02:00
Tobias Koppers
219b2b7995
fixed webpack/bundle-loader#14
2015-04-10 00:16:21 +02: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
c104323844
more flexible source-map devtool parsing
2015-04-07 14:33:57 +02:00
Tobias Koppers
0431b74149
added cheap-source-map and lineToLine option
2015-04-05 01:52:30 +02:00
Tobias Koppers
44cfedd24e
Store `recordsPath` paths relative to `options.context`
...
deduplicated modules can be stored in records
fixes #295
2015-04-04 02:09:49 +02:00
Tobias Koppers
c4db71c9d6
added some async steps to prevent stack overflows
2015-04-03 23:39:58 +02:00
Tobias Koppers
8fef0c79f3
cache sources
2015-04-03 19:47:53 +02:00
Tobias Koppers
92f53176a2
use sourceAndMap is available
2015-04-03 12:38:56 +02:00
Tobias Koppers
f7445f6a2d
Merge pull request #897 from sebastienbarre/seb/650
...
First stab at SourceMapDevToolPlugin exclude option
2015-03-28 17:39:46 +01:00
Håvard Lindset
deb1135d2e
check hasOwnProperty when looping over modules
2015-03-25 14:48:36 +01:00
Tobias Koppers
027ddcec41
Merge pull request #858 from hkal/assimilate-watchignoreplugin
...
Add and expose WatchIgnorePlugin
2015-03-23 08:26:36 +01: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
289db96b36
Make webpack ready for node.js HMR.
2015-03-11 23:48:00 +01:00
hkal
ccabb75c1d
Add and expose WatchIgnorePlugin
...
* Test stubs included
2015-03-07 14:43:48 -05:00
Tobias Koppers
cd5252b962
fixed a bug with wrapped expressions in ?:
2015-03-06 17:02:24 +01: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
9f21fed247
handle case when regExp is false in context
2015-03-05 22:57:52 +01:00
Tobias Koppers
ab149eb4d4
Merge branch 'hot-multi-pass' of https://github.com/webpack/webpack.git into webpack-2
...
Conflicts:
lib/Compilation.js
2015-03-05 22:30:24 +01:00
Tobias Koppers
a4a72607f0
throw Error when multiple chunks emit to the same filename
2015-03-05 22:02:01 +01:00
Tobias Koppers
63eff24427
removed namedChunkFilename
2015-03-05 22:01:36 +01:00
Tobias Koppers
6211d020d1
enabled OccurrenceOrderPlugin by default
...
#729
2015-03-05 21:49:53 +01:00
Tobias Koppers
5b4d7d7d76
disable full dynamic require by default (require(expr))
...
#729
2015-03-05 21:49:39 +01:00
Tobias Koppers
2f3e0aea72
remove (...) from DefinePlugin.
...
#729
2015-03-05 21:49:22 +01:00
Tobias Koppers
a2af69056a
Remove old stuff
2015-03-05 21:48:16 +01:00
Tobias Koppers
d2b1bca5d9
Remove compatibly mode for node.Buffer
...
#729
2015-03-05 21:46:54 +01:00
Tobias Koppers
4a8bf92349
loader regExp compares to resourcePath instead of resource
...
#729
2015-03-05 21:45:08 +01:00
simonzack
e5ba04c56b
check for handler
2015-03-05 16:18:32 +11:00
simonzack
9a4c54d350
specify es6 in the parser
2015-03-05 15:40:14 +11:00
simonzack
5bd10d6e88
Merge remote-tracking branch 'remotes/origin/harmony'
...
Conflicts:
lib/Parser.js
package.json
2015-03-05 15:35:23 +11:00
simonzack
6a641b9f37
added walkForOfStatement
2015-03-05 15:34:05 +11:00
simonzack
592ee90988
switched to acorn for it's better es6 support
2015-03-05 15:32:09 +11:00
Tobias Koppers
9e12006916
Merge pull request #852 from hkal/improve-size-readability-abbreviations
...
Alternative improve size output readability
2015-03-04 17:13:47 +01:00
Tobias Koppers
9b7117942f
fixed #853
...
with test
2015-03-04 07:45:26 +01:00
hkal
62d87e20b1
Improve size output readability
...
* abbreviate bytes with appropriate multiples
2015-03-04 00:18:44 -05:00
Tobias Koppers
56fb0fe6d9
fixed bug with `null` as first arg to source-map
2015-03-03 23:41:28 +01:00
Tobias Koppers
ffd9cce20a
move semicolon to a later location in bundle #830
2015-03-03 20:24:46 +01:00
Tobias Koppers
647bd05bc1
removed semicolon
2015-03-03 20:08:20 +01:00
hkal
42d176e098
Export EvalSoureMapDevToolPlugin
2015-03-01 23:49:43 -05:00
Tobias Koppers
dcc9d5867f
fixes #819
2015-02-28 01:40:11 +01:00
Tobias Koppers
3ddb26ff36
more reliable parsing of wrapped expressions
...
fixed #801
2015-02-28 00:51:15 +01:00
Tobias Koppers
3d153efe27
better handling of nested vars in Define and Provide
...
fixes #812
2015-02-28 00:26:44 +01:00
Tobias Koppers
e8390f3774
don't dispose unreferenced modules
...
fixes #826
2015-02-27 23:55:38 +01:00
Tobias Koppers
d80cf1cddd
Merge branch 'cheap-source-map'
2015-02-27 22:43:15 +01:00
Tobias Koppers
6173bb83ba
Merge pull request #778 from fresheneesz/patch-1
...
make Watching.close callback optional
2015-02-27 09:42:49 +01:00
hkal
3b774f22a5
Added semicolon after output
2015-02-27 02:37:45 -05:00
Tobias Koppers
9a64224c26
support `null` in DefinePlugin
2015-02-23 22:57:10 +01:00
Tobias Koppers
1e079998d4
fixed crash
2015-02-23 22:46:41 +01:00
Tobias Koppers
196db0743d
allow undefined, RegExp and objects in DefinePlugin
...
merged #807 and #791
2015-02-21 13:20:57 +01:00
Antti Ahti
5d107999d5
Show error messages from UglifyJs
...
Print out err.msg if it's available. Previously these error messages were ignored and it printed unhelpful "undefined"
2015-02-21 11:29:53 +02:00
Tobias Koppers
a547d9084c
cheapMode for SourceMapPlugin
2015-02-19 01:11:29 +01:00
fresheneesz
b271c10555
make Watching.close callback optional
...
https://github.com/webpack/webpack/issues/769#issuecomment-73615872
2015-02-09 16:02:36 -08:00
Tobias Koppers
13b60359f4
DedupePlugin correctly inserts deduplication code
...
fixed #770
2015-02-09 08:43:46 +01:00
Tobias Koppers
80a3a7b08d
added experimental AutomaticPrefetchPlugin
2015-02-04 23:22:33 +01:00
Tobias Koppers
769d40eec5
profile earlier and from cache
2015-02-04 23:22:32 +01:00
Tobias Koppers
e9acc3907e
remove issuer for entry and prefetch
2015-02-04 23:22:31 +01:00
Tobias Koppers
84d4df203d
better progress
2015-02-04 23:22:30 +01:00
Tobias Koppers
b0a3b2a326
added note
2015-02-04 23:22:29 +01:00
Tobias Koppers
5ca01e92f4
test case for resolving node buildin libs
...
webpack/webpack#747
2015-02-04 23:22:28 +01:00
Will Binns-Smith
6230c4f31d
Windows compatibility and spaces -> tabs.
2015-02-01 20:19:27 -08:00
Tobias Koppers
725371e271
separate module assets from chunk assets
2015-01-31 16:19:36 +01:00
Will Binns-Smith
5b0e9a7bc6
Resolves #727 : Resolve AMD module dependencies relative to named modules being defined.
2015-01-31 00:26:12 -08:00
Tobias Koppers
fb49376f6d
Added multi pass hot mode #669
2015-01-30 00:46:52 +01:00
Tobias Koppers
18fe8e7b66
always create files array on Chunk
2015-01-30 00:44:58 +01:00
Arnavion
0d93cbfe04
Expose the compiler's input filesystem to loaders.
2015-01-27 21:55:07 -08:00
Tobias Koppers
9063c05dd5
Merge branch 'master' of https://github.com/webpack/webpack
2015-01-21 20:27:03 +01:00
Tobias Koppers
7da31b2990
change `node.Buffer` in a way that is backward-compatible
...
#709
2015-01-21 20:25:25 +01:00
Tobias Koppers
4099f66141
Check arguments to webpack function, use watch from options
...
fixes #697
fixes #699
2015-01-21 12:38:57 +01:00
Tobias Koppers
feb7c7cc49
arguments bug fix
2015-01-18 00:50:05 +01:00
Tobias Koppers
a979874cd0
updated deps, minor changes
2015-01-17 23:43:25 +01:00
Tobias Koppers
ae79597e10
support symlinks, fixed #554
2015-01-17 21:57:28 +01:00
Tobias Koppers
adfcfce15f
watching of missing files, fixed #668
...
store missing files from errors for missingDependencies
make the new watching plugins default
added OldWatchingPlugin
2015-01-17 21:55:44 +01:00
Tobias Koppers
6037f76dc0
fixed typo
2015-01-13 13:03:06 +01:00
Tobias Koppers
3634256493
#682
2015-01-12 23:23:08 +01:00
Tobias Koppers
5f77afe5f4
ES6 parser, ES6 modules
2015-01-12 17:45:30 +01:00
Tobias Koppers
544c368ea1
added support for an async commons chunk, tests and examples
2015-01-11 23:15:11 +01:00
Tobias Koppers
16777f6552
Merge pull request #663 from webpack/add/setimmediate
...
Add node-independent shim for global setImmediate()
2015-01-10 16:46:48 +01:00
Tobias Koppers
153f937cc8
allow `null` for `selectedChunks`
2015-01-09 19:18:20 +01:00
Johannes Ewald
08454a6759
Merge remote-tracking branch 'origin/master' into add/setimmediate
2015-01-07 13:38:41 +01:00
Patrick Gotthardt
027967903e
Fix error in watch mode
2015-01-07 09:20:48 +01:00
Tobias Koppers
a14f7a5f30
renamed plugin
2015-01-06 23:51:05 +01:00
Johannes Ewald
41a1dfe9b2
Merge branch 'master' into add/setimmediate
2015-01-06 23:32:17 +01:00
Tobias Koppers
6171417273
fixed enviroment plugin test cases
2015-01-06 23:02:44 +01:00
Tobias Koppers
9fe2f6c2fd
Merge branch 'env-plugin' of https://github.com/unfold/webpack into unfold-env-plugin
2015-01-06 22:39:36 +01:00
Johannes Ewald
5a2f35e51a
Add setImmediate and clearImmediate as global function
...
clearImmediate has no own option as it is directly connected with setImmediate
2015-01-06 18:20:45 +01:00
Johannes Ewald
562fe2d507
Change case of option node.buffer to node.Buffer
2015-01-06 18:17:47 +01:00
Corporateanon
87decf47d9
[fix] mkdirp is not called properly on Windows
2015-01-05 15:30:18 +02:00
Tobias Koppers
de1ea9d15e
allow multiple chunks for a dependency block #640
2015-01-01 21:58:27 +01:00
Tobias Koppers
775a9087b2
moved dependency block loading into separate file
2014-12-31 14:19:28 +01:00
Tobias Koppers
4b5e7339f4
chunkHash in stats output
...
fixed #647
2014-12-31 13:42:05 +01:00
Tobias Koppers
76f1c2fa0e
Improve HMR error handling #410
2014-12-31 01:47:52 +01:00
Tobias Koppers
e4dc029379
Merge pull request #648 from loganfsmyth/devtool-map-mutation
...
Don't persist sourcemap changes between steps.
2014-12-31 01:38:58 +01:00
Tobias Koppers
c22bbf8fa2
Cache output of EvalSourceMapDevTool
2014-12-31 01:38:23 +01:00
Tobias Koppers
c54989894b
typeof RegExp may != object
...
fixes #649
2014-12-30 23:55:41 +01:00
Logan Smyth
ca00bec085
Don't persist sourcemap changes between steps.
2014-12-28 15:17:05 -08:00
Tobias Koppers
908c05c07a
apply initial and entry correctly with commons chunk
...
fixes #642
2014-12-28 01:02:36 +01:00
Tobias Koppers
ea34a15dd8
fixes #645
2014-12-27 20:26:46 +01:00
Simen Brekken
b80edb6a49
Added EnvPlugin.
2014-12-23 11:06:48 +01:00
Tobias Koppers
738c1d3e68
support library with CommonsChunkPlugin
...
fixes #622
2014-12-22 16:10:23 +01:00
Tobias Koppers
779dbd4930
more features for the CommonsChunkPlugin
...
* allow to select non-entry chunks
* allow to select multiple/all commons chunks
2014-12-22 12:33:11 +01:00
Tobias Koppers
4fef1312c5
evaluate null
...
fixes #633
2014-12-22 09:32:42 +01:00
Tobias Koppers
cc930801b5
more similar bugs with testcases
...
fixed #626
2014-12-16 08:12:30 +01:00
Rich Snapp
66de9a455f
Walk computed MemberExpression properties
2014-12-11 12:14:51 -07:00
Marcus Vorwaller
96843d6f26
Remove unused variable from HotModuleReplacementPlugin.js
...
oldStatus throws an error on every refresh "Dropping unused variable oldStatus" with minification.
2014-12-02 16:23:13 -08:00
Tobias Koppers
d94706ed02
DefinePlugin bug fix for deep nested objects
2014-11-12 13:33:18 +01:00
Tobias Koppers
d863bb287e
include meta info in hash
2014-11-06 00:21:32 +01:00
Tobias Koppers
d5dc904a15
fixed incomplete hash bug
2014-11-03 08:02:02 +01:00
Tobias Koppers
0f59e5d49d
ignore hidden files
...
fixes #474
2014-11-02 12:56:40 +01:00
Tobias Koppers
e12bc992af
include [chunkhash] tests again
...
added support for [chunkhash] with target node
2014-11-02 12:48:15 +01:00
Tobias Koppers
ae4146cd75
Merge branch 'feature/fix-555' of https://github.com/diurnalist/webpack into diurnalist-feature/fix-555
2014-11-02 12:23:23 +01:00
Tobias Koppers
1c9fd48839
reorganized function
2014-11-02 12:17:05 +01:00
Tobias Koppers
6a8caf5cd1
fixes #524 again
2014-11-02 12:16:55 +01:00
Tobias Koppers
6779ddb076
allow to disable SourceMap in UglifyJsPlugin
2014-10-31 12:46:18 +01:00
berni
836aac7b51
use test, include and exclude options as suggested by @sokra
2014-10-30 11:29:33 +01:00
berni
15448f16e9
add ability to skip files via user-defined function
2014-10-29 23:35:24 +01:00
Jason Anderson
c84bd70b76
Fixes issue with hash length and loading external chunks
...
If the length option on a hash was being used for a file path template
(e.g. '[hash:8].js'), the file would be outputted with the correct name,
but the reference inside require.ensure would not work, because the length
truncation would operate on more than just the hash, and would truncate
some of the characters added to pad the hash value.
Fix is to implement the `hashWithLength` function where this is a problem.
This doesn't feel like a proper solution, as it adds some redundancies
in a few places, but it's only in the chunk loading blocks that this matters,
so it's small in scope.
2014-10-28 11:51:18 +01:00
Tobias Koppers
41e42e8589
fixed renaming in IIFEs and Assignments
...
fixed #551 , fixed #494
2014-10-26 11:17:47 +01:00
Tobias Koppers
152683e686
Merge pull request #543 from DenisIzmaylov/master
...
Support callbacks in newResource
2014-10-23 16:19:16 +02:00
Denis Izmaylov
76ba745cc2
Support callbacks in newResource
2014-10-23 12:58:26 +04:00
Denis Izmaylov
141d339fe3
Support callbacks in newResource
2014-10-20 22:02:11 +04:00
Tobias Koppers
1cc87e9b53
added support for nested var in the ProvidePlugin
2014-10-16 22:31:20 +02:00
Jason Anderson
b3f0ddab32
Load extra JSONP chunks with async script tags
...
If requests are made while other chunks are loading, it can cause blocking
requests to load the additional chunks. Code splitting should ensure that
you can load these chunks completely async, and so we should.
2014-10-14 14:30:05 +02:00
Tobias Koppers
86a403d297
Merge pull request #533 from christian-raedel/master
...
Add require NodeTemplatePlugin.
2014-10-14 08:09:07 +02:00
Tobias Koppers
8131061c8e
added weak dependencies, require.resolveWeak
...
#526
2014-10-13 16:10:19 +02:00
Christian Rädel
c8a7942299
Add require NodeTemplatePlugin.
2014-10-13 14:10:35 +02:00
Daniel Walker
1ea87ef5bb
Update JsonpExportMainTemplatePlugin.js
...
Fix:
`TypeError: Object #<JsonpExportMainTemplatePlugin> has no method 'applyPluginsWaterfall'`
This is the same bug as was fixed in https://github.com/webpack/webpack/commit/614891e
2014-10-12 17:51:16 -06:00
Tobias Koppers
c1af56ff43
Merge branch 'pr-521'
2014-10-12 11:43:26 +02:00
Tobias Koppers
764eda144f
merged into one plugin
...
formating
2014-10-12 11:43:10 +02:00
Tobias Koppers
c0686c4430
support an empty context
...
fixed #524
2014-10-12 11:24:42 +02:00
Tobias Koppers
8bbc81f635
typo
2014-10-10 09:10:06 +02:00
Tobias Koppers
2d3b2dc4f7
uglify .js with query string
...
fixes webpack/react-starter#9
2014-10-10 07:35:00 +02:00
Christian Rädel
afdc577304
Replace Jsonp- with NodeTemplatePlugin.
2014-10-09 19:37:47 +02:00
Christian Rädel
b5c4d9fd1f
Add atom target.
2014-10-09 09:53:59 +02:00
Tobias Koppers
3b02644053
added experimental NewWatchingPlugin #125
2014-10-09 00:53:05 +02:00
Tobias Koppers
9738b8a30e
allow string in require.ensure
...
fixed #500
2014-10-07 15:56:15 +02:00
Tobias Koppers
27b23c0302
fixed detection of free vars while evaluating
2014-10-07 15:15:09 +02:00
Matt Soltani
38b5a04079
Updated link
2014-09-30 15:48:58 +02:00
Matt Soltani
47dcd48191
Minor, fixed link to plugin docs
...
Old link responded with 404. Minor link fix.
2014-09-30 13:29:47 +02:00
Tobias Koppers
63e2dd3804
better gzip for context
2014-09-26 08:52:47 +02:00
Tobias Koppers
7b971015fb
make CommonJsRequireContextDependency dedupable
...
@thomasboyt fixes
https://gist.github.com/thomasboyt/d7e908184bd7da72a1c6
2014-09-26 08:52:23 +02:00
Tobias Koppers
61e0212eb8
fixed global RegExp issue
...
#433
2014-09-24 20:54:25 +02: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
a2cc7dbd38
apply optimizing on extracted chunks too
2014-09-23 08:42:54 +02:00
Tobias Koppers
79c46a9601
added ConcatSource
2014-09-22 23:45:58 +02:00
Tobias Koppers
f569a97ab4
fixed incorrect commit
2014-09-22 07:59:08 +02:00
Mark Marijnissen
3beb2af2a0
Bugfix: Only replace strings in module.hot.accept dependency array.
...
Bugfix: Only replace strings in module.hot.accept dependency array.
2014-09-18 01:08:18 +02:00
Tobias Koppers
636d97e180
show warning when using HMR incorrectly
...
fixed #480
2014-09-17 23:23:45 +02:00
Tobias Koppers
4891225efc
Merge pull request #470 from markmarijnissen/hmr-accept-multiple-deps-bugfix
...
bugfix HMR module.accept: resolve multiple deps to module ids
2014-09-16 20:11:42 +02:00
Tobias Koppers
70e361f800
Merge pull request #469 from markmarijnissen/add-require-context-id
...
Add 'id' attribute to require.context (so HMR can accept a context)
2014-09-16 20:10:29 +02:00
Tobias Koppers
614891e6bb
bug fix #427
2014-09-16 19:33:21 +02:00
Mark Marijnissen
ec194ca095
Replaced spaces with tabs
...
replaced spaces with tabs
2014-09-15 18:04:04 +02:00
Mark Marijnissen
8fbfbc9e34
Update ContextModule.js
...
added semicolon
2014-09-15 17:59:49 +02:00
Tobias Koppers
e489cce1af
fixes webpack/extract-text-webpack-plugin#15
2014-09-15 13:33:13 +02:00
Tobias Koppers
992231a1c8
added `exclude` option to stats
...
added `--display-exclude` and `--display-modules`
exclude common package manager folders by default
fixes #473
2014-09-15 11:46:33 +02:00
Tobias Koppers
1a10838a61
use hasOwnProperty in for in loops
...
#450
2014-09-15 10:35:56 +02:00
Mark Marijnissen
421f203b57
bugfix HMR module.accept: resolve multiple deps to module ids
2014-09-14 02:33:35 +02:00
Mark Marijnissen
aa39f79baf
Add 'id' attribute to require.context (so HMR can accept a context)
2014-09-14 01:50:59 +02:00
Tobias Koppers
3bc6d7b60b
fixed edge case when using [chunkhash:xxx]
...
#427
2014-09-11 19:25:18 +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
df23e14847
use hasOwnProperty in for in loops
...
fixes #450
2014-09-10 14:10:05 +02:00
Tobias Koppers
e0f975eb9e
fixes webpack/extract-text-webpack-plugin#14
2014-09-07 22:54:38 +02:00
Tobias Koppers
9a8cae6d43
added `NoErrorsPlugin`, which doesn't emit on error
...
fixes webpack/webpack-dev-server#42
fixes #449
2014-09-03 14:16:17 +02:00
Tobias Koppers
b8fef9a1d7
allow to ignoreUnaccepted modules in HMR
...
fixes #418
2014-08-29 15:52:38 +02:00
Tobias Koppers
5e8ef9cbc8
Merge pull request #436 from tcoopman/patch-1
...
Update CaseSensitiveModulesWarning.js
2014-08-28 15:14:02 +02:00
Tobias Koppers
6f2be891c2
added 'hidden-sourcemap' devtool
...
fixes #437
2014-08-28 15:13:05 +02:00
Thomas Coopman
785c283971
Update CaseSensitiveModulesWarning.js
...
I believe this should be "an equal" instead of "a equal"
2014-08-28 14:25:28 +02:00
Tobias Koppers
764c139ae1
added `cachedAssets` stats option
...
fixes webpack/webpack-dev-middleware#17
2014-08-28 11:04:48 +02:00
Tobias Koppers
27295ac14d
expose sourceMaps flag to loaders
2014-08-27 17:00:26 +02:00
Tobias Koppers
0380796af2
Merged PR #362
...
code style fixes
2014-08-27 16:25:28 +02:00
Jordan Klassen
4a5bfbdf3d
Merge remote-tracking branch 'origin/master' into optional-require-as-global
...
Conflicts:
test/cases/parsing/extract-amd/index.js
2014-08-26 11:14:40 -07:00
Tobias Koppers
b71e8cca45
fixed copy bug
2014-08-25 16:34:19 +02:00
Tobias Koppers
1f94924a0c
fixes #426
2014-08-25 10:45:04 +02:00
Tobias Koppers
887852f6df
Allow to share hotUpdateCallback
...
fixes #423
2014-08-25 10:19:04 +02:00
Tobias Koppers
1bc0b8c0f4
added __webpack_hash__
...
fixes #422
2014-08-25 09:50:26 +02:00
Tobias Koppers
bf70c88399
throw on missing node.js module
...
fixes #411
2014-08-21 14:43:34 +02:00
Tobias Koppers
c745597617
support for define([], obj), cs closure in r.e
...
fixes #371
fixes #407
2014-08-21 14:32:24 +02:00
Jordan Klassen
95ab7a9960
Merge remote-tracking branch 'origin/master' into optional-require-as-global
...
Conflicts:
lib/UmdMainTemplatePlugin.js
2014-08-19 10:23:33 -07:00
Hugues Malphettes
c2cc1dd231
Fix #412 - Support for holes inside Arrays
...
An array with a hole such as `[,'foo']` is parsed by Esprima as null.
Skip its evaluation.
Reference: https://code.google.com/p/esprima/issues/detail?id=525#c18
```
According to
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API#Expressions :
interface ArrayExpression <: Expression {
type: "ArrayExpression";
elements: [ Expression | null ];
}
```
2014-08-19 09:59:35 +08:00
Tobias Koppers
97128e0535
added option for devtools
...
`output.devtool[Fallback]ModuleFilenameTemplate` option
fixes #405
2014-08-14 11:31:05 +02:00
Tobias Koppers
eb02ef1e94
add hot self accept with error handler
2014-08-14 10:04:05 +02:00
Anson Yu Wang
112a44da81
fix this.applyPluginsWaterfall("module-obj", .. call in MainTemplate.js
2014-08-13 20:53:23 +08:00
Anson Yu Wang
d0cf49d23c
fix module.hot.data
2014-08-13 16:46:01 +08:00
Tobias Koppers
951d9ec906
Merge pull request #394 from kurtharriger/FixHotUpdateFunction
...
Function name cannot contain -
2014-08-05 16:00:36 +02:00
Tobias Koppers
f7be3c7711
fixed substr bug
2014-08-05 08:30:39 +02:00
Kurt Harriger
bdae82a290
Replace ad-hoc identifier cleansing with helper function
...
Generalized identifier cleansing to replace invalid (and unicode)
characters with underscores to ensure a valid function name.
Applied function in other places functions were generated based on
libarary name.
2014-08-04 08:25:33 -06:00
Kurt Harriger
45a9f0d492
Function name cannot contain -
...
When output.library contains a - the generated function name is not
valid. Replace - with _ to create valid function name.
2014-08-03 10:32:56 -06:00
Quentin Raynaud
3c4284f011
add a semi-colon at the end of the UMD template
...
Rationale: the missing semi-colon can cause bugs in some edge cases where webpack
is used to generate a library that will be concatenated in dependent project.
2014-08-03 16:05:40 +02:00
Christoffer Wolgast
ab630347ad
Make stats version output configurable
2014-08-01 15:19:15 +02:00
Tobias Koppers
66b095566d
rebuild main chunk in fewer cases
2014-07-31 16:33:29 +02:00
Tobias Koppers
aca7f8b547
shorter [name]
2014-07-31 13:51:37 +02:00
Tobias Koppers
37aa1ff7d5
support parallel build and rebuild
...
expanded css bundle example
2014-07-29 00:13:25 +02:00
Tobias Koppers
15e83490b8
Find duplicates globally. Don't fallback shortest.
...
fixes #363
2014-07-26 17:54:00 +02:00
Tobias Koppers
61bc53e875
Shorter and faster empty context
...
#198
2014-07-26 14:48:42 +02:00
Tobias Koppers
3597cdb149
Stack trace for critical UglifyJs errors
2014-07-26 13:59:30 +02:00
Tobias Koppers
74e927f105
fixed another bug in HMR
2014-07-24 17:53:56 +02:00
Tobias Koppers
8c4b8f24c0
fixed #374
2014-07-24 17:53:46 +02:00
Tobias Koppers
15045d2879
minCount default should not be 1 or lower
...
fixes #368
2014-07-24 12:47:18 +02:00
Tobias Koppers
ab2c02ac25
nicer looking stats
2014-07-23 14:41:54 +02:00
Jordan Klassen
e044598a98
Update ExternalModule.js for umd2
2014-07-22 08:10:15 -07:00
Jordan Klassen
562c446a73
add 'umd2' libraryTarget for optional amd dependancies as globals
2014-07-22 01:45:14 -07:00
Tobias Koppers
e2f83e195d
add more complex css-bundle examples
...
add rebuild module
add chunkName parameter to CommonsChunkPlugin
fix bug in LimitChunkCountPlugin
2014-07-19 14:32:48 +02:00
Tobias Koppers
d7e50e5da3
Better filenames in dev tools
2014-07-18 13:31:50 +02:00
Tobias Koppers
040398dd25
Merge #366
2014-07-18 10:54:07 +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
Dan Abramov
5bf94e3775
EvalSourceMapDevToolPlugin accepts one parameter
2014-07-18 02:56:31 +04:00
Jordan Klassen
6eac904631
Optional externals in amd use globals instead of an explicit dependency
...
There isn't any mechanism in the amdjs spec to provide optional
dependancies (although a requirejs loader plugin could do that, it's not
standard). The best approach found was knockout's optional dependancy on
jquery, for which it doesn't use require, it only uses globals.
This solution will need to be improved for use of requirejs/amd in
commonjs environments, and could be toggled with a flag.
2014-07-17 01:42:44 -07:00
Tobias Koppers
1132ca9252
Merge pull request #361 from mzgoddard/dedupe-plugin-late-module-fn
...
Deref dedupe template module when module fn is called.
2014-07-17 01:57:26 +02:00
Tobias Koppers
03c87c11a4
support [name] in chunkFilename
...
fixes #358
2014-07-17 01:52:41 +02:00
Michael "Z" Goddard
028444d185
Deref dedupe template module when module fn is called.
2014-07-16 15:26:21 -04:00
Tobias Koppers
572ebfcd51
use correct (relative) url to source map
2014-07-16 20:57:10 +02:00
Tobias Koppers
829e3f549d
assetsByChunkName should be an array for multiple assets
...
fixes #351
2014-07-09 13:37:06 +02:00
Tobias Koppers
b3a7013550
fixed [optional] output
2014-07-09 13:13:02 +02:00
Dan Abramov
6085815327
Don't call the callback twice on error ( fixes #347 )
2014-07-07 18:11:40 +04:00
Tobias Koppers
f53a7f3e66
fixed parsing of wrapped expressions
...
fixes #345
2014-07-07 13:20:38 +02:00
Taylor Brown
d661eb199d
Fix: setConstant and setModuleConstant now function correctly again.
...
Previously, __filename, __dirname, and other constants were broken. This was due to
the refactor of setConstant and setModuleConstant, and the reuse of the variable name "expr"
2014-07-04 12:13:44 +02:00
Tobias Koppers
5104661855
optional externals
...
track optional modules
optional externals for UMD and root
fixes #339
2014-07-03 00:00:06 +02:00
Tobias Koppers
ca46619b5f
renaming is off by default and only enabled for defined expressions
...
fixes #336
2014-07-02 21:34:29 +02:00
Tobias Koppers
651fbfea24
Moved to memory-fs module #98
2014-07-01 22:56:32 +02:00
Tobias Koppers
d80cdcefac
Code Quality
2014-06-24 18:53:32 +02:00
Tobias Koppers
7ebd1a970c
Export more stuff
2014-06-24 00:41:10 +02:00
Tobias Koppers
6c3e333343
fixed #317
2014-06-23 23:59:10 +02:00
Tobias Koppers
1e37053f7e
Sorted out some MultiCompiler issues
2014-06-18 23:02:33 +02:00
Tobias Koppers
d447e49276
Merge pull request #301 from shama/cache-enoent
...
CachePlugin: Continue when file is deleted
2014-06-18 21:08:44 +02:00
Tobias Koppers
5029d174a4
fixed caching bug, incorrectly used chunk hash when global hash is required
2014-06-18 11:07:14 +02:00
Tobias Koppers
a70f91499a
Allow mixing different webpack versions
2014-06-18 10:59:54 +02:00
Tobias Koppers
af0be8de07
resolve resource in ContextReplacementPlugin
2014-06-17 22:46:24 +02:00
Tobias Koppers
b7480d8734
added more parameters to ContextReplacementPlugin
...
#315
2014-06-17 22:38:17 +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
38108290e8
fixed MultiCompiler with watching
2014-06-12 06:29:39 +02:00
Tobias Koppers
b0caa69ae1
fixed file system purging
2014-06-11 22:52:02 +02:00
Tobias Koppers
44bb43854f
Added experimental MultiCompiler
...
webpack(...) takes an array
support an array in webpack.config.js
2014-06-11 22:26:50 +02:00
Kyle Robinson Young
4fbd9013ec
CachePlugin: Continue when file is deleted
2014-06-06 10:38:19 -07: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
81c25a8cfb
removed incorrect code
...
fixes webpack/example-app#5
2014-06-05 09:31:28 +02:00
Tobias Koppers
50233f89cc
Do not generated bad code when named chunks are merged or empty
...
fixed webpack/webpack-dev-server#30
2014-06-04 08:47:48 +02:00
Tobias Koppers
80f3c48d99
better code style
2014-06-03 21:03:21 +02:00
Tobias Koppers
42c82f6b77
refactored ModuleTemplate to plugin interface
2014-06-03 08:45:26 +02:00
Tobias Koppers
5264f69ddf
refactored HotChunkUpdateTemplate to plugin interface
2014-06-03 00:14:46 +02:00
Tobias Koppers
a0394a061b
refactored ChunkTemplate with plugin interface
2014-06-02 23:40:50 +02:00
Tobias Koppers
a8c7dc26d9
fixed some issues
2014-06-02 21:26:57 +02:00
Tobias Koppers
3247725ba3
refactored MainTemplate to plugin interface
2014-06-02 21:23:53 +02:00
Tobias Koppers
bf7922c7fd
Merge pull request #286 from Vijar/master
...
Make sure newResource path for NormalModuleReplacementPlugin is absolute
2014-05-28 09:24:41 +02:00
Rajiv Tirumalareddy
d9b2733c5f
only after-resolve needs absolute path
2014-05-28 00:19:43 -07:00
Tobias Koppers
90daea5fdd
pass context to after-resolve hook
2014-05-28 06:31:11 +02:00
Rajiv Tirumalareddy
5ceefd7dea
make sure newResource for NormalModuleReplacementPlugin is an absolute path
2014-05-27 12:13:22 -07:00
Tobias Koppers
158f35bcf1
parser should not crash if to many arguments are passed to an IIFE
...
fixes #284
2014-05-27 11:52:48 +02:00
Tobias Koppers
07e29e2348
expose module on entry dep
2014-05-26 23:53:48 +02:00
Tobias Koppers
1cf64f2676
added typeof support for the DefinePlugin
...
#282
2014-05-26 12:48:16 +02:00
Tobias Koppers
1c0a0621f6
added contextRegExp to IgnorePlugin
2014-05-26 11:36:47 +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
Eric Eldredge
ebda431399
Add assets to module stats
2014-05-21 11:51:08 -04:00
Tobias Koppers
f440c6676d
fixes #264
2014-05-17 00:53:28 +02:00
Tobias Koppers
3eefb91a5b
cache the generated source
...
This caches the SourceMap for the eval-source-map devtool
fixes #271
2014-05-17 00:31:52 +02:00
Tobias Koppers
7e08847df5
fixes #266
2014-05-14 08:20:57 +02:00
syranide
3f20c27302
Support any UglifyJS OutputStream option {output: {...}}
2014-05-13 23:13:25 +02:00
Tobias Koppers
aa83dad8be
don't ignore error
2014-05-13 07:31:43 +02:00
Tobias Koppers
e95e385a66
fixed a bug with [chunkhash] in chunk id 0
2014-05-08 18:43:52 +02:00
Tobias Koppers
10e66461da
more safe when caching an entry chunk
...
fixes #256
2014-05-08 09:18:07 +02:00
Tobias Koppers
e6e0b75290
added Watching.close
...
fixed #249
2014-05-08 09:08:01 +02:00
Tobias Koppers
525f8b9579
don't allow dedupe plugin by option (because thats broken)
2014-04-19 21:35:26 +02:00
Tobias Koppers
5c3f8cc345
Don't render and emit entry assets if not needed
...
webpack/webpack-dev-server#21
2014-04-19 21:35:01 +02:00
Ryan Barry
6d3fdebc9e
template.apply() expects dependencyTemplates arg
...
Prototype method template.apply() defined at `/lib/dependencies/TemplateArgumentDependency.js:21`.
2014-04-18 23:35:01 -07:00
Tobias Koppers
0467f4b00a
added newline after each child stats
2014-04-18 14:58:57 +02:00
Tobias Koppers
1f651d6fcb
add an additional hook
2014-04-18 12:56:19 +02:00
Tobias Koppers
e2c0866c62
chunk ids are unique now, so this is no longer needed
2014-04-17 09:08:46 +02:00
Tobias Koppers
58424e0824
support "jsonp" in output.libraryTarget
2014-04-17 08:58:12 +02:00
Tobias Koppers
334e565f18
support [hash] in output.library
2014-04-17 08:57:48 +02:00
Vahe Hovhannisyan
bbc46a6c0b
Require externals plugin for node-webkit target.
2014-04-09 09:47:59 -07:00
Tobias Koppers
1e4428a2a2
Unused requires
2014-04-09 09:21:43 +02:00
Tobias Koppers
bea08dc1a2
added node-webkit target (experimental)
...
added option to provide no target
added defaults for node-webkit
allow browsertests to run in node-webkit
2014-04-09 09:12:04 +02:00
Tobias Koppers
a942f67bda
bug fixed for externals function
2014-04-09 08:25:17 +02:00
Tobias Koppers
9e6b6deea4
support arrays and [name] in output.library
...
fixes #221
2014-04-05 18:10:47 +02:00
Tobias Koppers
b6923ccf93
sourceMapsFilename support querystrings
...
fixes #217
2014-04-03 19:46:53 +02:00
Tobias Koppers
998870d9ee
Warn about modules with matching names if case is ignored
...
fixes #210
2014-03-31 11:33:17 +02:00
Tobias Koppers
59321874df
give information about chunk name to asset mapping
2014-03-31 08:46:04 +02:00
Tobias Koppers
6e7bd0c60b
allow querystring for assets, fixes #217
2014-03-31 08:45:45 +02:00
Tobias Koppers
571505aa8f
clean up dependencies
2014-03-21 16:16:31 +01:00
Tobias Koppers
11ebc21593
cache is on by default
...
disable it with cache: false resp. --no-cache
@petehunt
2014-03-21 16:08:35 +01:00
Tobias Koppers
b23e232716
Don't show error messages for binary files
...
fixes https://twitter.com/thomasABoyt/status/446504948839088128
@thomasboyt
2014-03-20 08:38:28 +01:00
Tobias Koppers
1fe6022712
only decorate the jsonp function
...
this allows mutliple instances of bundles of the same build
fixes karma-webpack#2
2014-03-20 08:07:01 +01:00
Tobias Koppers
a134fae430
require.extension should translate to undefined
...
fixes #209
2014-03-19 23:27:18 +01:00
Tobias Koppers
23d28ddd43
evaluate stuff for renaming to capture more cases
...
fixes #208
2014-03-19 22:16:17 +01:00
Tobias Koppers
3364a26967
upgrade node browser replacements
2014-03-18 22:34:35 +01:00
Tobias Koppers
6bdd8100eb
fixes #202
2014-03-12 23:03:07 +01:00
Tobias Koppers
0f25ccfbe0
fixes #202
2014-03-12 22:30:21 +01:00
Tobias Koppers
9a0a8165a0
bug fix for #199
2014-03-11 18:42:51 +01:00
Tobias Koppers
61f1c4d37d
allow to configure default RegExps for automatically created contexts
...
allow to configure when an automatically created context is critical
better warning message in critical dependencies warning
fixes #196
fixes #198
2014-03-11 16:08:22 +01:00
Tobias Koppers
bf40067cba
replace [hash] in output.path
...
fixes #199
2014-03-11 15:39:46 +01:00
Tobias Koppers
8e44685ac1
add __non_webpack_require__ to API
2014-03-10 13:40:20 +01:00
Tobias Koppers
b2638d21bf
Revert "cache the replaced source for performance"
...
This cannot be cached because module ids may change.
This reverts commit 8a7b508165
.
fixes webpack/grunt-webpack#19
2014-03-07 17:07:58 +01:00
Tobias Koppers
9a3e3443fa
use externals plugin for node target
2014-03-05 19:56:53 +01:00
Tobias Koppers
973d81d871
more options for externals
2014-03-05 19:55:53 +01:00
Tobias Koppers
a7f9340885
added externals option
2014-03-05 09:58:51 +01:00
Tobias Koppers
b68dfc3d83
bug fix in jsonp template
2014-03-03 15:15:33 +01:00
Tobias Koppers
a1dfd78d76
assign to require define require in current scope
2014-03-03 15:14:54 +01:00
Tobias Koppers
53c16c8147
add json as default extension.
...
clever warning for module parse errors.
#184
2014-03-03 15:01:32 +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
83eec78bf0
follow the browser-module spec: ignoring export an empty module.
...
fixes #187
2014-03-01 20:07:42 +01:00
Tobias Koppers
a705802ae1
allow to ignore a file by browser field
...
fixes #186
2014-03-01 13:37:13 +01:00
Tobias Koppers
f0c7815c93
evaluate typeof requrire.ensure/include
...
#183
2014-02-27 08:49:03 +01:00
Tobias Koppers
3e9d9811a1
print fatal error details
2014-02-26 09:37:10 +01:00
Tobias Koppers
48aad3eeee
fixed #179 typo in OccurenceOrderPlugin
2014-02-25 08:51:40 +01:00
Tobias Koppers
ee30c84672
fixes ProvidePlugin fallback
2014-02-25 08:48:51 +01:00
Tobias Koppers
dba4ecd4b4
more info for in stats
...
for analyse tool
2014-02-24 15:07:15 +01:00
Tobias Koppers
b75ce7a2af
Revert "save 8 chars"
...
This reverts commit a83e15fdf6
.
fixes #176
2014-02-23 11:10:31 +01:00
Tobias Koppers
3acab7c27d
fixed bug where duplicates are not detected
2014-02-15 11:29:15 +01:00
Tobias Koppers
ad02d3c630
sorted out a little bug
2014-02-14 10:07:42 +01:00
Tobias Koppers
8a7b508165
cache the replaced source for performance
2014-02-13 11:41:10 +01:00
Tobias Koppers
d69a884b2a
better devtools
2014-02-13 11:40:16 +01:00
Tobias Koppers
4dd7368e74
bug fix for replacements #167
2014-02-13 11:03:01 +01:00
Tobias Koppers
efb2dd483f
choose defaults by target
...
browser field is on by default, fixes #151
2014-02-13 11:02:31 +01:00
Tobias Koppers
6086d8cd55
insert free var injection code to correct place
...
webpack/webpack#167
2014-02-12 14:53:33 +01:00
Tobias Koppers
95096d69f3
bug fix when no require.e is in the bundle
2014-02-12 08:58:41 +01:00
Tobias Koppers
f3012a4d8d
better source maps
2014-02-12 08:57:26 +01:00
Tobias Koppers
8229f59adf
allow initial chunks to have other ids than 0
2014-02-11 13:27:41 +01:00
Tobias Koppers
8e77c17f44
add packageAlias
...
fixes #151
2014-02-11 12:24:41 +01:00
Tobias Koppers
b7cd807041
add 'amd' library target
...
fixes #164
2014-02-11 08:54:12 +01:00
Tobias Koppers
3b3f6cb0b3
some fixes
2014-02-11 08:53:32 +01:00
Tobias Koppers
5f856ec3b3
add moduleId to stats
2014-02-11 08:32:18 +01:00
Tobias Koppers
96150c0421
make source prefix configurable, fixes #166
2014-02-11 08:31:08 +01:00
Tobias Koppers
6f2a6e64f9
export AggressiveMergingPlugin
2014-02-05 12:37:37 +01:00
Tobias Koppers
d6f9b7527f
added AggressiveMergingPlugin and example
...
fixes #162
2014-02-05 12:05:09 +01:00
Tobias Koppers
91b7921e73
allow module.noParse to be a string
2014-02-04 12:21:01 +01:00
Tobias Koppers
e8206d092b
no empty chunk loading function
2014-02-03 18:19:28 +01:00
Tobias Koppers
d3a9712193
bug fixing
2014-02-03 18:12:19 +01:00
Tobias Koppers
5e7dfc52cc
experimental renaming support
2014-01-31 14:09:08 +01:00
Tobias Koppers
b92af72712
fixed #158
2014-01-31 13:12:51 +01:00
Tobias Koppers
945d0c686f
started renaming support
...
this currently only works for free vars that are really available.
2014-01-31 10:57:28 +01:00
Tobias Koppers
14841c5c40
Merge branch 'master' of https://github.com/webpack/webpack
2014-01-29 15:47:54 +01:00
Tobias Koppers
a83e15fdf6
save 8 chars
2014-01-29 15:47:37 +01:00
Tobias Koppers
e246c5badc
added optimize-tree hook, reset module on build
2014-01-29 10:13:28 +01:00
Tobias Koppers
89fb178917
add origin for used named chunks
2014-01-24 13:32:58 +01:00
Tobias Koppers
698c97ece7
enforce expressions
2014-01-24 13:14:59 +01:00
Tobias Koppers
d1f466e745
local-module support for CJS and AMD require
...
fixes #153
2014-01-24 13:13:21 +01:00
Tobias Koppers
3b40b3fdb7
fixes #155
2014-01-24 12:22:59 +01:00
Tobias Koppers
f67fd530eb
started local modules #153
...
bug fixes
2014-01-23 18:35:56 +01:00
Tobias Koppers
30f954067c
track chunk origin
2014-01-23 15:31:40 +01:00
Tobias Koppers
07f2a23130
bug fix
2014-01-22 17:09:10 +01:00
Tobias Koppers
b6a1c40545
show error details
2014-01-21 16:24:17 +01:00
Tobias Koppers
1822f3a717
added ResolverPlugin
2014-01-21 13:07:10 +01:00
Tobias Koppers
a219e23690
fixed links
2014-01-14 09:57:26 +01:00
Tobias Koppers
1df510b919
bug fix
2013-12-31 12:45:46 +01:00
Tobias Koppers
fe2681cb31
track free vars over IIFEs
...
#138
2013-12-31 12:24:22 +01:00
Tobias Koppers
f6e4229fc6
allow bound function expressions in define calls
2013-12-31 12:24:14 +01:00
Tobias Koppers
b4cf56dd0e
fixed rar bug
2013-12-29 12:21:14 +01:00
Tobias Koppers
7cde32c6ca
more reliable in parsing AMD stuff
...
fixes #138
2013-12-29 12:11:03 +01:00
Tobias Koppers
b9ce650150
better way to bootstrap entry splits
...
now you can use multiple entry points on one page, when using a commons chunk.
entry splits are entry points that are rendered as chunk because a commons chunk is used
2013-12-19 23:22:36 +01:00
Tobias Koppers
776eabc6f1
expose the module to loaders
2013-12-19 22:32:13 +01:00
Tobias Koppers
7e8b2c6972
fixed empty commons chunk
2013-12-19 11:46:45 +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
81203a3a1c
added node.js HMR,
...
fixed #137 : exports correct require properties on hotRequire too
added more test combinations
2013-12-17 00:56:43 +01:00
Tobias Koppers
a395c07c5d
report better errors for uglify-js
2013-12-17 00:53:22 +01:00
Tobias Koppers
9b4c5d5fc1
fixed onError
2013-12-16 00:54:56 +01:00
Tobias Koppers
b0f5575c57
added async chunk loading for node.js build
2013-12-15 23:08:11 +01:00
Tobias Koppers
d614f95898
fixes #136
2013-12-15 10:31:24 +01:00
Tobias Koppers
4b9472b24d
save bytes #135
2013-12-13 12:58:10 +01:00
Tobias Koppers
d8dbc5e602
less code
2013-12-13 09:47:18 +01:00
Tobias Koppers
142bae19ba
delegate access to some core Sources
2013-12-13 09:01:46 +01:00
Tobias Koppers
f63a0d60c3
added "statement" plugin to Parser for custom stuff
2013-12-13 08:59:07 +01:00
Tobias Koppers
7633749814
added "program" plugin to Parser for custom stuff
2013-12-13 08:55:38 +01:00
Tobias Koppers
c7c92399dd
fixes a bug where HMR chunks are not minimized
2013-12-13 08:55:13 +01:00
Tobias Koppers
8851427ea2
use chunk ids in entry chunks too
...
this fixes a unnecessary download in mutli-entry compilations
2013-12-11 08:41:43 +01:00
Tobias Koppers
63f40c0e76
support fancy array in AMD, support .replace and .split
2013-12-08 14:59:52 +01:00
Tobias Koppers
1fa9169cf2
use initial flag for initial loaded chunks
2013-12-03 23:11:14 +01:00
Tobias Koppers
bc016f4517
fix nested commons chunks
2013-12-03 19:09:42 +01:00
Tobias Koppers
63e0d4668c
Allow to address a commons chunks
2013-12-03 17:14:28 +01:00
Tobias Koppers
8e3d00e77c
better default value
2013-12-03 11:44:46 +01:00
Tobias Koppers
f165e8e2f1
fixed bug when using an array of entry points in commons chunk plugin
2013-12-03 11:34:38 +01:00
Tobias Koppers
20e9f65bb1
accept an array of entryPoints for Commons chunk
2013-12-03 11:28:39 +01:00
Tobias Koppers
153be562db
keep commons chunk in mind when optimizing
2013-12-03 11:28:00 +01:00
Tobias Koppers
6c6e495ae7
better commons naming #128
2013-12-03 11:19:30 +01:00
Tobias Koppers
4d25d521f6
plugin to extract common modules
...
from multiple entry points
#128
2013-12-03 09:27:15 +01:00
Tobias Koppers
fc157aeea6
removed unused line
2013-11-29 08:46:54 +01:00
Tobias Koppers
f5e6c6b930
make AMD require work without fn expr
2013-11-27 23:04:14 +01:00
Tobias Koppers
6a0b9f0d9c
fixes this in deduped modules
2013-11-27 13:37:47 +01:00
Tobias Koppers
e4bbcc53a5
wait at least to the next second #122
2013-11-26 16:19:06 +01:00
Johannes Ewald
c52e8d7238
fixed a bug where finishChunkLoading() was accidentally called twice
2013-11-24 13:58:02 +01:00
Tobias Koppers
415d161dbe
evaluate the callee in CallExpression, fixes #117
...
This allow fancy wrappers around identifiers
2013-11-08 09:00:39 +01:00
Tobias Koppers
a6a71dc90c
nested node_modules shouldn't be resolved as modules
...
in a require.context
buggy would be require.context(".", true, /^/)("xyz/node_modules/abc")
2013-11-06 09:28:15 +01:00
Tobias Koppers
bb1d4ba6e6
Warn about automatic require.context #115
2013-11-06 09:02:00 +01:00
Tobias Koppers
bd56e8385f
walk expression in require.ensure if not a fn expr
2013-11-05 18:55:10 +01:00
Tobias Koppers
7a665410ca
added IgnorePlugin, fixed replacement plugins
2013-11-05 18:19:04 +01:00
Tobias Koppers
a3cd3baf16
fixes #114
...
allow bound function expressions in require.ensure
allow unparsed expressions in require.ensure
2013-11-03 15:28:50 +01:00
Tobias Koppers
6b011bccfd
sort reasons in stats
2013-10-31 00:38:10 +01:00
Tobias Koppers
c9331d93d3
fixed location info for minimizing
2013-10-31 00:06:39 +01:00
Tobias Koppers
c32b233a4f
smaller code splitting for merged chunks
2013-10-30 23:25:02 +01:00
Tobias Koppers
e62e3a2223
fixed race condition for loadModule
2013-10-29 14:14:16 +01:00
Tobias Koppers
b362c227b7
Add dependencies when using loadModule
2013-10-29 11:06:28 +01:00
Tobias Koppers
424e162247
bug fix if parse error in the first lines
2013-10-29 10:59:32 +01:00
Tobias Koppers
52b40b3798
allow loaders to load modules
...
fixed templates readable name
2013-10-28 16:21:29 +01:00
Tobias Koppers
efc294245f
fix parsing error message
2013-10-24 10:46:15 +02:00
Tobias Koppers
f8507717c1
added missing --output-jsonp-function, export multiple properties
2013-10-15 22:00:28 +02:00
Tobias Koppers
8abea1f129
define injection order #108
2013-10-15 00:35:24 +02:00
Tobias Koppers
167e5c64c4
Merge pull request #107 from jhnns/fix-undefined-define-option
...
Allow define-variables to be undefined
2013-10-14 13:56:02 -07:00
Tobias Koppers
9e83a0ff7c
generate a valid expression when transforming define fixes #108
2013-10-14 18:51:29 +02:00
jhnns
e4d7eccfb9
fix an error where webpack crashed when a variable passed to `DEFINE`-option was undefined
2013-10-14 15:30:39 +02:00
Tobias Koppers
063a5ff993
little fix
2013-10-14 13:59:52 +02:00
Tobias Koppers
074a26efb5
Performance #106
2013-10-14 13:59:44 +02:00
Tobias Koppers
d56dce7e52
more details in progress
2013-10-12 22:40:15 +02:00
Tobias Koppers
6a2f255778
fixed parsing of packageMains options
2013-10-12 22:08:04 +02:00
Tobias Koppers
1a8362534b
fixed annoying catch
2013-10-11 11:09:42 +02:00
Tobias Koppers
392c6db063
more useful error when using require.extensions #104
2013-10-11 10:42:25 +02:00
Tobias Koppers
cff436e829
global should work in strict mode to #102
2013-10-01 10:17:04 +02:00
Tobias Koppers
7b3d01892f
global is not this #102
2013-10-01 10:11:56 +02:00
Tobias Koppers
bedd59390c
edge case where injecting into require.e functions #102
2013-10-01 10:11:25 +02:00
jhnns
2dd0ba9552
fixed wrong `this` within modules fixes #97
2013-10-01 02:31:45 +02:00
Tobias Koppers
54782ef53d
support a bit of math: +, -, *, /
2013-09-24 15:17:25 +02:00
Tobias Koppers
5346729da2
better typeof support
2013-09-24 15:09:08 +02:00
Tobias Koppers
1aa80aa48b
allow objects in `define` option #100
2013-09-24 15:07:55 +02:00
Tobias Koppers
01c2f45bf5
changed define option to be more C-like #99
...
values are code fragments now.
2013-09-24 14:49:39 +02:00
Tobias Koppers
672fc9ba0f
UglifyJsPlugin: don't drop warnings
...
warnings are mapped by source map to modules
2013-09-14 11:50:39 +02:00
Tobias Koppers
a37948d114
added options.define, evaluate conditionals, fixes #99
2013-09-13 11:17:57 +02:00
Tobias Koppers
d9f470d803
added Source delegation
2013-08-05 11:36:42 +02:00
Tobias Koppers
5abf033601
fixed #94 , no longer incorrectly remove modules
2013-07-24 20:50:41 +02:00
Tobias Koppers
6045abca76
allow to disable mangling
2013-07-11 00:16:07 +02:00
Tobias Koppers
58586f8ae2
make it webpack-able
2013-07-10 23:20:07 +02:00
Tobias Koppers
6c1e98f759
Fixed Hash Cycle
2013-07-08 08:12:48 +02:00
Tobias Koppers
1726325ef2
really fixed the bug
2013-07-05 14:56:16 +02:00
Tobias Koppers
ac897a7dea
fixed bug with preHash
2013-07-05 14:17:19 +02:00
Tobias Koppers
686978ba05
moved hash update in runtime
2013-07-05 08:35:41 +02:00
Tobias Koppers
4c7766a694
support #sourceURL and #sourceMappingURL, #91
2013-07-04 14:08:47 +02:00
Tobias Koppers
a7bce382bc
fixed global leak
2013-07-04 12:11:17 +02:00
Tobias Koppers
2181739daf
added unsafeCache option for performance
2013-07-04 12:01:10 +02:00
Tobias Koppers
b5b672233f
Fixed caching
2013-07-04 11:55:37 +02:00
Tobias Koppers
d85324c9fd
profile progress
2013-07-04 11:02:35 +02:00
Tobias Koppers
996ea59bb0
Hot: the json info file is no chunk asset
2013-07-01 14:09:33 +02:00
Tobias Koppers
49506c83bb
HOT: added update json info file, fixed infinite hash updates, #26
2013-07-01 13:59:02 +02:00
Tobias Koppers
bf5b14a297
test and fix
2013-06-28 14:20:11 +02:00
Tobias Koppers
7c83f08483
fixed disabled require.ensure
2013-06-28 14:03:12 +02:00
Tobias Koppers
152c173115
don't use es5 stuff in hmr code
2013-06-24 13:43:28 +02:00
Tobias Koppers
40c409eb5f
added applyOnUpdate
2013-06-23 14:59:39 +02:00
Tobias Koppers
9aa00a69db
bugfix #26
2013-06-20 16:32:53 +02:00
Tobias Koppers
b1fe88b531
fixed WebWorker with Hot Module Replacement #26
2013-06-20 12:04:31 +02:00
Tobias Koppers
74cdfb7802
more fixes #26
2013-06-19 22:31:12 +02:00
Tobias Koppers
2e5fc25fa7
fixed some bugs #26
2013-06-19 16:41:57 +02:00
Tobias Koppers
d8fc8472f6
hot module replacement with code splitting #26
2013-06-19 16:09:46 +02:00
Tobias Koppers
8b2301056d
added hot module replacement, fixes #26
2013-06-19 13:49:57 +02:00
Tobias Koppers
327a990070
fixed bugs
2013-06-19 11:53:03 +02:00
Tobias Koppers
a84a0433c9
better optimizing
2013-06-17 18:55:11 +02:00
Tobias Koppers
dabbab4627
removed the last TODO :)
2013-06-15 17:31:56 +02:00
Tobias Koppers
47ae6dc211
only add deduplicate code if deduplicated modules are in the chunk.
2013-06-14 15:42:40 +02:00
Tobias Koppers
a91cff49b6
complexer dedupe example and fixed bugs
2013-06-14 15:13:44 +02:00
Tobias Koppers
fcc0c5f6cf
minor fix
2013-06-13 13:37:08 +02:00
Tobias Koppers
c30f16f439
added experimental deduplication support #47
2013-06-12 16:16:06 +02:00
Tobias Koppers
7df05c7ddc
fixed missing mkdirp for records, #90
2013-06-10 14:25:54 +02:00
Tobias Koppers
f84f000149
records, typo
2013-05-31 12:22:40 +02:00
Tobias Koppers
0870e00113
build chunks on seal (fixes prefetching bug)
2013-05-22 10:12:53 +02:00
Tobias Koppers
44f8709fbd
more options for hashing
2013-05-21 11:08:08 +02:00
Tobias Koppers
e5814dd9d0
display reasons on failed modules (second try) webpack/raw-loader#1
2013-05-21 01:47:22 +02:00
Tobias Koppers
6af5702c44
added [chunkhash] support, fixes #90
2013-05-21 01:46:14 +02:00
Tobias Koppers
1133a5606e
better error reporting
2013-05-18 14:42:11 +02:00
Tobias Koppers
55149353d4
fixed little bug
2013-05-14 13:55:06 +02:00
Tobias Koppers
b5f7c36a29
fixes #76
2013-05-13 16:01:44 +02:00
Tobias Koppers
3cb3cf7285
purge only changed files, longer caching
2013-05-13 14:25:37 +02:00
Tobias Koppers
209f96c543
added option to prefetch modules
2013-05-13 13:34:00 +02:00
Tobias Koppers
96275187cc
added BannerPlugin
2013-05-12 23:16:22 +02:00
Tobias Koppers
72f29bf81c
move minimize option to plugin
2013-05-12 22:44:10 +02:00
Tobias Koppers
9959b05319
support in-memory windows-like filesystems, fixes #78
2013-05-12 22:33:17 +02:00
Tobias Koppers
b720229360
fixes #83
2013-05-09 18:17:28 +02:00
Tobias Koppers
c5b52b547c
keep chunk ids
2013-05-08 23:01:25 +02:00
Tobias Koppers
30c66003e8
profiling is back
2013-05-08 14:47:13 +02:00
Tobias Koppers
5cdb8cbf81
cache chunks, cache assets
2013-05-08 13:28:54 +02:00
Tobias Koppers
e43ec6251e
fixed edge cases
2013-04-02 09:14:19 +02:00
Tobias Koppers
a56cada9ba
whitespace and comment fixes
2013-03-28 10:31:28 +01:00
Tobias Koppers
b5b5cc9372
get back old style
2013-03-28 10:19:51 +01:00
Tobias Koppers
8d0162c7bb
small change in webpack-core
2013-03-28 08:42:53 +01:00
Tobias Koppers
e461d217db
formating and comments for the main template
2013-03-27 09:24:25 +01:00
Tobias Koppers
0de7c73ad8
SourceMap support
2013-03-26 16:54:41 +01:00
Tobias Koppers
bcd7924ec6
fixed crashing when error in entry file
2013-03-14 14:51:29 +01:00
Tobias Koppers
8e517c5c21
fixed minimize bug
2013-03-13 11:37:28 +01:00
Tobias Koppers
b742264a4d
add UMD, closed #71
2013-03-11 14:51:23 +01:00
Tobias Koppers
edfc6759fb
Errors and warnings stay in cache
2013-03-05 11:08:59 +01:00
Tobias Koppers
f9ac3ed2a5
fixed last commit
2013-03-01 15:03:00 +01:00
Tobias Koppers
065a56f603
added Buffer
2013-03-01 14:59:38 +01:00
Tobias Koppers
bd805ec293
fixed naming
2013-03-01 09:44:58 +01:00
Tobias Koppers
007f21d5fe
better identifier name
2013-02-26 13:59:28 +01:00
Tobias Koppers
678aa6e2a5
fixed require: "aa", "bb" and added examples for labeled modules
2013-02-26 13:55:41 +01:00
Tobias Koppers
c4140aac51
moved ConsolePlugin into NodeSourcePlugin
2013-02-26 13:31:05 +01:00
Tobias Koppers
38d3c877dd
support labeled modules fixes #72
2013-02-26 12:36:34 +01:00
Tobias Koppers
3239dd76af
whitespace
2013-02-26 12:35:49 +01:00
Tobias Koppers
273506ee34
fix for RegExp evalutating, change in node-libs-browser
2013-02-25 18:18:49 +01:00
Tobias Koppers
c1592dfbbf
Moved node libs for browser into separate package
2013-02-25 11:34:33 +01:00
Tobias Koppers
85bda0d875
optimize for compression
2013-02-24 02:59:51 +01:00
Tobias Koppers
9fe83b3dc8
improved chunk loading
...
now a chunk is not loaded if all included modules are already loaded (by other chunks)
2013-02-24 02:05:55 +01:00
Tobias Koppers
1a449cefb6
better config file check, added hook for VariableDeclarators
2013-02-22 17:01:54 +01:00
Tobias Koppers
9759650369
obsolete
2013-02-20 20:40:58 +01:00
Tobias Koppers
f3213f2d00
create context for more stuff
2013-02-20 20:40:40 +01:00
Tobias Koppers
57ddbc0859
added i18n example, fixed error/warning bug
2013-02-19 12:48:17 +01:00
Tobias Koppers
cdbc509bb4
fixed chunk parent bug
2013-02-19 11:11:54 +01:00
Tobias Koppers
30c4174915
fixes stats as json
2013-02-19 11:11:43 +01:00
Tobias Koppers
c88bce3b08
use variable for __resourceQuery
2013-02-17 10:30:47 +01:00
Tobias Koppers
2183f05db8
added __resourceQuery, __dir/__filename compile time constant
2013-02-16 22:23:22 +01:00
Tobias Koppers
a0680280f3
added require.include
2013-02-15 17:08:14 +01:00
Tobias Koppers
7ef74e8021
moved options defaulter to core
2013-02-15 14:16:18 +01:00
Tobias Koppers
64af867150
added require.js stuff, fixed progress
2013-02-13 21:24:00 +01:00
Tobias Koppers
b0a7d774a0
removed error handling, it's handled while compiling
2013-02-13 17:37:21 +01:00
Tobias Koppers
3dc62749a2
moved webworker template, added node.js template #57
2013-02-13 17:00:07 +01:00
Tobias Koppers
2976cf0246
fixes #63
2013-02-13 15:01:12 +01:00
Tobias Koppers
8821f7bbf8
fixes #64
2013-02-13 14:57:00 +01:00
Tobias Koppers
dc69f23de4
fixes #65
2013-02-13 14:42:34 +01:00
Tobias Koppers
3315480432
fixed some bugs
2013-02-13 13:00:01 +01:00
Tobias Koppers
90f8a42ab3
fixed some examples stuff
2013-02-13 11:51:08 +01:00
Tobias Koppers
4d1ca1993d
fixed stack overflow bug
2013-02-11 12:03:33 +01:00
Tobias Koppers
a7cdb88346
minor fixes
2013-02-11 11:29:05 +01:00
Tobias Koppers
e2277c64c9
bug fix for resolveLoader.root
2013-02-11 11:10:15 +01:00
Tobias Koppers
0eec4071e9
better optimize
2013-02-11 10:58:24 +01:00
Tobias Koppers
0df61621ea
added MinChunkSizePlugin
2013-02-11 10:52:19 +01:00
Tobias Koppers
6d50b09009
add parameter only if in context to NodeSourceRealPathsPlugin #62
2013-02-11 08:48:22 +01:00
Tobias Koppers
35d15c7ff7
fixes #62
2013-02-11 08:42:45 +01:00
Tobias Koppers
d5b50eb14d
fixed the watching stuff :)
2013-02-11 00:17:29 +01:00
Tobias Koppers
05152cee7f
added provide plugin and option
2013-02-10 20:37:30 +01:00
Tobias Koppers
34424b36af
fixed some stuff
2013-02-08 00:18:47 +01:00
Tobias Koppers
27a80536b7
path fix
2013-02-05 08:44:37 +01:00
Tobias Koppers
de2ab63a02
fixed #62 , added NodeSourceRealPathsPlugin
2013-02-05 08:33:32 +01:00
Tobias Koppers
1ce5f465b5
refactored addParsedVariable into ModuleParserHelpers
2013-02-05 08:31:46 +01:00
Tobias Koppers
fd7226ed50
fixes
2013-02-04 15:58:04 +01:00
Tobias Koppers
eda45fe115
fixed a bug
2013-02-04 14:44:34 +01:00
Tobias Koppers
68ee0a6537
some bugfixes and fallback option
2013-02-04 13:59:43 +01:00
Tobias Koppers
7aa63f1282
fixed children stats
2013-02-04 13:22:45 +01:00
Tobias Koppers
8079331b2f
fixed child compiler
2013-02-04 13:16:12 +01:00
Tobias Koppers
453c0226aa
Fix context modules
2013-02-04 12:34:20 +01:00
Tobias Koppers
8a4bb64611
show readable identifier in errors
2013-02-04 12:33:36 +01:00
Tobias Koppers
bd89d65b8e
added resolve.root support
2013-02-04 10:47:00 +01:00
Tobias Koppers
cabee2778c
multi module now exports the last module
2013-02-01 10:45:19 +01:00
Tobias Koppers
8ecdb72b48
removed old files, moved stuff
2013-02-01 08:42:12 +01:00
Tobias Koppers
e8f0e1d7cf
fix watching
2013-02-01 08:03:38 +01:00
Tobias Koppers
961ad40966
file watching
2013-01-31 18:00:22 +01:00
Tobias Koppers
5adfabb091
added replacement plugins
2013-01-31 02:33:11 +01:00
Tobias Koppers
001fd4f859
remove debug output
2013-01-31 02:32:13 +01:00
Tobias Koppers
55d1af8109
fix named chunks, added multi entry plugin
2013-01-31 01:44:39 +01:00
Tobias Koppers
ee01837d66
Refactored everything for 0.9
2013-01-30 18:49:25 +01:00
Tobias Koppers
694a6b8897
fix stuff
2012-11-13 11:48:47 +01:00
Tobias Koppers
6a9bd13396
better minimize options and error handling
2012-11-12 14:39:53 +01:00
Tobias Koppers
b10da8d83f
fix bug #39
2012-11-10 11:07:29 +01:00
Tobias Koppers
66b6df3e3c
less verbose parsing errors
2012-11-07 12:11:21 +01:00
Tobias Koppers
d48e8bd6a6
upgrade to uglify-js2
2012-11-07 12:03:37 +01:00
Tobias Koppers
256b5720f6
Merge branch 'master' into wip-0.8
2012-11-06 15:28:21 +01:00
Tobias Koppers
80989e74a9
allow special amd exports, should fix #34
2012-11-06 15:28:05 +01:00
Tobias Koppers
3b881ba414
changes some defaults for modules
2012-11-06 15:05:52 +01:00
Rainer Dreyer
0366444379
Renamed *libary* to *library*
...
Conflicts:
test/browsertest/build.js
2012-11-05 20:11:50 +01:00
Tobias Koppers
cbf909e9db
Merge branch 'master' into wip-0.8
...
Conflicts:
lib/buildModule.js
2012-11-05 09:43:28 +01:00
Tobias Koppers
83c3fa2e60
typeof module do not longer import module overwrite #32
2012-11-05 09:38:20 +01:00
Tobias Koppers
ccec298fba
fixed overwriting with function decl #32
2012-11-05 09:34:18 +01:00
Tobias Koppers
f9073caa38
fixed pure AMD define #32
2012-11-05 09:23:20 +01:00
Tobias Koppers
b375130852
better error reporting of parse errors
2012-11-05 09:22:13 +01:00
Tobias Koppers
567ca44ad8
updated loader modules
2012-11-02 10:27:05 +01:00
Tobias Koppers
15d398cc34
fixed sorting
2012-11-02 09:54:09 +01:00
Tobias Koppers
f0cfbf8d66
fix include filenames
2012-11-02 09:31:06 +01:00
Tobias Koppers
10a887b8ff
backcompatible and fixed output bug
2012-11-02 00:24:20 +01:00
Tobias Koppers
6d4ee85792
query with context
2012-11-02 00:15:02 +01:00
Tobias Koppers
79743f0217
work with queries in loaders
2012-11-01 23:48:08 +01:00
Tobias Koppers
31c6ffc829
update to next resolve version
2012-11-01 21:00:15 +01:00
Tobias Koppers
41b3d51534
Merge branch 'master' into wip-0.8
2012-11-01 20:57:14 +01:00
Tobias Koppers
5530203192
fixes #29
2012-10-30 21:14:22 +01:00
Tobias Koppers
efea82a52e
only show named chunks in stats.chunkNameFiles
2012-10-28 22:52:02 +01:00
Tobias Koppers
c75f1c29af
only warn if error in try block
2012-10-28 22:45:00 +01:00
Tobias Koppers
7f1fc5b825
specify lookup fields in package.json
2012-10-27 02:16:42 +02:00
Tobias Koppers
f5290b0e86
better compressed require.context
2012-10-26 15:05:06 +02:00
Tobias Koppers
03c812a407
remove annoying space
2012-10-26 14:40:12 +02:00
Tobias Koppers
228f86e904
Remove last comma in bundles, fixes #28
2012-10-26 14:39:27 +02:00
Tobias Koppers
46205caf04
jam is no longer default, as it impactes performance
2012-10-26 01:56:32 +02:00
Tobias Koppers
8dac14a3d9
fixed chunkNameFiles for chunk merging
2012-10-26 01:41:21 +02:00
Tobias Koppers
323e386f25
document and test chunk merging
2012-10-26 00:47:51 +02:00
Tobias Koppers
0460211742
better disconnect
2012-10-26 00:19:19 +02:00
Tobias Koppers
4115793836
fixed test and removed output
2012-10-26 00:05:46 +02:00
Tobias Koppers
6d484e80db
option to merge chunks
2012-10-26 00:05:41 +02:00
Tobias Koppers
b3eeaf80f8
more bugfix
2012-10-21 23:38:38 +02:00
Tobias Koppers
ef199fbc89
bugfix
2012-10-21 23:34:30 +02:00
Tobias Koppers
466ec90ffa
let loaders emit warnings/errors, don't fail on entry module error
2012-10-20 15:29:17 +02:00
Tobias Koppers
d5fc1115e7
simplifiy verbose stats api
2012-10-08 23:45:46 +02:00
Tobias Koppers
e1fc167193
little stats bug
2012-10-08 23:35:22 +02:00
Tobias Koppers
55d748faaf
Readme and license
2012-10-08 22:39:22 +02:00
Tobias Koppers
b8be5e9bf5
final fixes
2012-10-08 22:34:26 +02:00
Tobias Koppers
41946d2450
fixed two bugs:
...
* watch mode do not include files with errors
* resolve errors display as `[object Object]` in workers
2012-10-02 16:27:40 +02:00
Tobias Koppers
5b64b25e9a
not required
2012-09-26 18:02:15 +02:00
Tobias Koppers
383e1f0eed
added option for min loaders for worker
2012-09-26 14:06:59 +02:00
Tobias Koppers
6cc2b7d099
deps updated
2012-09-26 13:40:00 +02:00
Tobias Koppers
60546dba63
cache worker args
2012-09-26 13:02:27 +02:00
Tobias Koppers
18db563ef6
seperate resolving
2012-09-26 12:28:23 +02:00
Tobias Koppers
0b9342e863
better work distribution
2012-09-25 19:23:05 +02:00
Tobias Koppers
193173c7b4
fixed parse error to be an object
2012-09-25 17:40:34 +02:00
Tobias Koppers
9320ed60ca
fixed chunkNameFiles with hash
2012-09-25 17:20:36 +02:00
Tobias Koppers
2eeb4923e1
API: loaderContext.depencency is more relaxed and don't need to be called before reading
...
API: loader.seperable cannot combined with
loaderContext.emitFile and loaderContext.emitSubStats
loaderContext.options.resolve
loaderContext.options.events
loaderContext.resolve and .sync
API: added profile option (and --profile)
API: added workers option (and --workers)
API: added closeWorkers option
API: if option workers is used:
options must be JSON.stringify-able. Except options.resolve and options.events.
Any error thrown in loader must be an object (i. e. an Error object). Only message, stack and value of toString is passed to main process.
API: The expected Cache object for options.cache has changed.
API: event module is emited after the module is finished.
API: event context is now named context-enum
API: added event context which is emited after the context is finished.
API: event dependency is removed. Use stats.dependencies for this.
API: event loader is removed. Use stats.loaders for this.
API: added stats.contexts as a list of contexts.
API: added stats...modules[..].dependencies for as list of files which affect the module's content.
API: added stats...modules[..].loaders for as list of loaders which affect the module's content.
API: removed stats.modulesPerChunk, it is useless and was deprecated.
API: added stats.chunkNameFiles which export the files for named chunks
API: added stats.startTime, timestamp as number
cmd: more colorful output to indicate caching and timing
API: webpack in watch mode emits the event watch-end if watch mode have to end (i. e. loader changed). You may restart it after clearing require.cache.
API: added loaderContext.loaderType as one of loader, preLoader or postLoader.
API: added loaderContext.currentLoaders as list of all loader of the current type.
API: added loaderContext.loaderIndex as index of current loader in loaderContext.currentLoaders.
API: added loaderContext.loaders, loaderContext.preLoaders and loaderContext.postLoaders.
2012-09-25 16:45:53 +02:00
Tobias Koppers
1e712788ee
fix bug with brackets around requires
2012-08-29 15:16:20 +02:00
Tobias Koppers
638e82254a
updates to enhanced-require, optimizing amd
2012-08-23 18:43:25 +02:00
Tobias Koppers
2bf6851c80
removed old stuff, moved loaders to enhanced-require
2012-08-23 14:58:10 +02:00
Tobias Koppers
c912c0134b
separable loaders as opt-in feature, fixes #16
...
in future separable loaders may run in a
sperate process for performance reasons
2012-08-23 03:17:52 +02:00
Tobias Koppers
cdf12758ba
bugfix: fixed multiple chunks
2012-08-23 02:01:33 +02:00
Tobias Koppers
624eff12aa
bugfix: error reporting minimize
2012-08-23 01:43:29 +02:00
Tobias Koppers
592bcdde4b
better amd support
2012-08-23 00:10:52 +02:00
Tobias Koppers
c6520db2bd
fixes #20
2012-08-22 23:04:26 +02:00
Tobias Koppers
67acd76838
moved resolve
2012-08-13 17:10:24 +02:00
Tobias Koppers
d2fae4b5ce
Extracted resolving to module
2012-08-13 16:50:42 +02:00
Tobias Koppers
d51996f2e5
bug fix
2012-08-13 15:45:27 +02:00
Tobias Koppers
a5f1fa53f5
fixed typo in formatOutput
2012-08-09 11:57:27 +02:00
Tobias Koppers
2fdf1666fd
Support for webpack-dev-middleware, and tests
2012-08-08 22:22:31 +02:00
Tobias Koppers
8c0ab9c229
fire bundle-invalid, documentation, added noWrite option
2012-08-08 20:27:55 +02:00
Tobias Koppers
f436d7b2e1
fix require.config
2012-08-07 23:50:17 +02:00
Tobias Koppers
b26910f654
amd require is now async in webpack too
2012-08-07 22:48:09 +02:00
Tobias Koppers
bb1752204e
better amd support, support for jam package manager
2012-08-07 20:52:48 +02:00
Tobias Koppers
84ab7988b3
pretty context output
2012-08-06 22:31:11 +02:00
Tobias Koppers
42b8d48210
better amd support
2012-08-06 22:17:03 +02:00
Tobias Koppers
2c59bf8a65
fix files order
2012-08-06 21:49:16 +02:00
Tobias Koppers
4d631a0635
added AMD support
2012-08-06 21:43:57 +02:00
Tobias Koppers
4785721f7b
made stuff ready for worker implementation
2012-08-06 18:20:41 +02:00
Tobias Koppers
22055c85b1
fixed error handling
2012-07-30 17:26:25 +02:00
Tobias Koppers
4336fccbbd
faster replacing
2012-07-17 13:29:21 +02:00
Tobias Koppers
c7d7607053
support loaders as entry module
2012-07-17 13:25:01 +02:00
Tobias Koppers
19f2de7e77
fixed error handling in resolve
2012-07-16 07:14:46 +02:00
Tobias Koppers
5d323fc64e
shorten more filenames, includeFilenames options affect comments in require
2012-07-11 17:53:16 +02:00
Tobias Koppers
57632eede1
fixed tests
2012-07-11 12:26:59 +02:00
Tobias Koppers
87f82e5219
added pre and post loaders
2012-07-11 12:18:31 +02:00
Tobias Koppers
514ad01e97
Shorten sourceURLs fixes #6
2012-07-11 02:15:39 +02:00
Tobias Koppers
c95d4ca777
speed up resolving
2012-07-10 23:59:46 +02:00
Tobias Koppers
258f9f4d7d
added resolve postprocessing
2012-07-10 20:59:05 +02:00
Tobias Koppers
9000cad388
fixed big performance bug in watch mode
2012-07-10 19:32:17 +02:00
Tobias Koppers
e60514aac1
add compile time to statistics
2012-07-10 19:31:22 +02:00
Tobias Koppers
e033f1e9a6
cache parsed source
2012-07-10 18:22:42 +02:00
Tobias Koppers
513a1f1c80
expand hash in stats
2012-07-10 18:22:23 +02:00
Tobias Koppers
f33da58a03
better debugging in chrome fixes #6
2012-07-06 17:14:35 +02:00
Tobias Koppers
3b219e34af
expose require.cache and require.resolve, fixes #4
2012-07-04 11:50:20 +02:00
Tobias Koppers
b1a45f3341
typo
2012-07-04 11:47:35 +02:00
Tobias Koppers
088d315f9f
node.js 0.8 support
2012-07-01 16:55:58 +02:00
Tobias Koppers
623ca4ea5c
caching info
2012-06-29 21:52:03 +02:00
Tobias Koppers
258b0c1951
fixed single option
2012-06-29 20:54:24 +02:00
Tobias Koppers
23b2476833
test refactored to mocha (part 1), bugfixes
2012-05-26 00:51:02 +02:00
Tobias Koppers
c14f12d5b5
Fix CRLF
2012-05-23 10:46:37 +02:00
Tobias Koppers
ce864f3416
compress "ensure" to "e"
2012-05-21 22:59:31 +02:00
Tobias Koppers
7d16ffc084
watch react on loader dependency
2012-05-21 00:16:33 +02:00
Tobias Koppers
0ddf30412d
added caching for watch mode
2012-05-21 00:09:30 +02:00
Tobias Koppers
c30095ab56
small fixes
2012-05-18 01:15:53 +02:00
Tobias Koppers
259fb52ddf
expose context
2012-05-17 23:34:43 +02:00
Tobias Koppers
e48e2a2c12
added named chunks
2012-05-17 12:45:48 +02:00
Tobias Koppers
d5fd622e51
fixed val-loader
2012-05-14 23:00:29 +02:00
Tobias Koppers
4f6bd7f2bc
fix for chucks determinism
2012-05-13 16:37:35 +02:00
Tobias Koppers
7b7fc9c71c
even more deterministic
2012-05-13 16:26:58 +02:00
Tobias Koppers
54ed0bfab7
deterministic chuck numbering
2012-05-13 16:19:11 +02:00
Tobias Koppers
31158a968d
documentation and small bugfixes
2012-05-12 16:43:37 +02:00
Tobias Koppers
fb23424b85
one error check more
2012-05-10 22:13:35 +02:00
Tobias Koppers
9469067b4c
little more error reporting
2012-05-10 19:31:02 +03:00
Johannes Spielmann
816a033de2
fixed wrong variable name
2012-05-10 18:24:48 +02:00
Tobias Koppers
66a0ebdc6e
offer loader.emitFile and loader.buffers
2012-05-07 17:58:36 +02:00
Tobias Koppers
d394065af6
moved templates
2012-05-07 09:01:28 +02:00
Tobias Koppers
d2908b195c
fix *nix paths
2012-05-07 09:01:01 +02:00
Tobias Koppers
f81c516066
extracted formatOutput
2012-05-06 19:06:26 +02:00
Tobias Koppers
6e2f88c11e
faster
2012-05-06 19:03:16 +02:00
Tobias Koppers
a090e12322
added val & bundle loader
2012-05-04 16:42:38 +02:00
Tobias Koppers
53a23ec058
fix for debug mode
2012-05-02 14:16:55 +02:00
Tobias Koppers
e96c8369bb
bugfixes
2012-05-02 14:06:42 +02:00
Tobias Koppers
95e89267f4
added watch mode and --progress
2012-05-01 21:33:59 +02:00
Tobias Koppers
c44e5f8dc4
add [hash] function
2012-05-01 17:46:26 +02:00
Tobias Koppers
686756ca89
fixed removing of parent modules
2012-05-01 16:09:33 +02:00
Tobias Koppers
d1ea524d8f
added less loader
2012-05-01 15:47:37 +02:00
Tobias Koppers
cc31edc1e1
loader issues
2012-05-01 15:42:01 +02:00
Tobias Koppers
e3b94309da
module ids are predictable, loaders not optional anymore
2012-04-07 21:36:55 +02:00
Tobias Koppers
295be3d5bc
bugfixes, css and style loader
2012-04-07 03:20:45 +02:00
Tobias Koppers
ebd6488752
better free var filling, node.js test
2012-04-05 14:59:01 +02:00
Tobias Koppers
97ed773cb1
better loader support
2012-04-03 16:26:08 +02:00
Tobias Koppers
87d681f8d2
do not use http and vm replacement by default, let the user choose
2012-03-27 04:26:53 +02:00
Tobias Koppers
9ae768b774
small fix
2012-03-27 00:34:53 +02:00
Tobias Koppers
a29a823305
added loader support
2012-03-27 00:00:32 +02:00
Tobias Koppers
be306cfaf6
typeof require supported
2012-03-26 14:49:03 +02:00
Tobias Koppers
ef17f69cfa
fixed polyfill in client code
2012-03-21 12:41:03 +01:00
Tobias Koppers
528d119391
bugfixes
2012-03-19 20:13:33 +01:00
Tobias Koppers
4c6fa00428
better error handling, added conditional (?: operator) support, some docs
2012-03-19 19:59:38 +01:00
Tobias Koppers
f5651c8fa8
added alias, added support for http/vm-browserify
2012-03-16 13:59:19 +01:00
Tobias Koppers
8a8c8b08ee
bugfixes and optimize
2012-03-15 23:01:42 +01:00
Tobias Koppers
d7ad8b72eb
added automatic polyfills for process and modules. added some buildin modules
2012-03-15 14:38:55 +01:00
Tobias Koppers
4c0f2244c0
fixed output of deps
2012-03-15 00:21:52 +01:00
Tobias Koppers
6d1a7a77d6
nice output
2012-03-15 00:05:29 +01:00
Tobias Koppers
0bc303cbf3
allow require as identifier to convert to require.context(".")
2012-03-14 16:33:46 +01:00
Tobias Koppers
b675c7f13b
fix *nix paths
2012-03-12 18:12:35 +01:00
Tobias Koppers
85afe5214f
print origial require string as comment into file
2012-03-12 00:30:54 +01:00
Tobias Koppers
c34fcd16db
parse new (xxx) too
2012-03-11 22:45:21 +01:00
Tobias Koppers
36e1de21ad
even smaller overhead without code splitting
2012-03-11 22:27:32 +01:00
Tobias Koppers
c4b8c12275
bug fixes
2012-03-11 22:16:24 +01:00
Tobias Koppers
911517f375
formatting, license
2012-03-11 21:50:55 +01:00
Tobias Koppers
14b42ac18b
added contexts, docs and examples
2012-03-11 21:37:18 +01:00
Tobias Koppers
2e1460036c
Initial commit
2012-03-10 13:11:23 +01:00