Commit Graph

32 Commits

Author SHA1 Message Date
Tobias Koppers 4b4592e4c2 bug fix jsonp template plugin 2016-06-04 18:51:18 +02:00
Tobias Koppers af2a362ba1 move require.onError default to jsonp template 2016-06-04 17:29:43 +02:00
Tobias Koppers fd5b8960b7 executeModules is an array, test hasOwnProperty
#2232
fixes #2546
2016-06-04 11:45:07 +02:00
Tobias Koppers 6ac871344e moved error handler back to MainTemplate 2016-02-04 13:14:26 +01:00
Tobias Koppers 1c1a5cac3f smaller bundles without Code Splittings 2016-02-04 12:51:40 +01:00
Tobias Koppers 2e5a5f9db3 more pretty CLI options, added --verbose option 2016-01-14 21:21:09 +01:00
Julian Scheid d4db20aacc Add a hook for adding script attributes
Closes #1800
2016-01-08 17:45:53 +01:00
Tobias Koppers c838656e7f moved defaults for options.output into central place 2016-01-06 23:02:25 +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 bf1f1142d0 Chunk loading error handling
fixes #692
fixes #758
fixes #686
fixes #785
2015-10-24 12:20:51 +02: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 f7d799adb4 rebeautify without spacing after keyword 2015-07-16 00:19:23 +02:00
Avi Haiat 0a340f2b1a feat(app): Beautify all lib files 2015-07-13 01:20:09 +03:00
Tobias Koppers 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 6c1eb49539 separated runtime code from compiler code
for better coverage data
2015-04-28 23:38:41 +02:00
Tobias Koppers cebd3b9722 added linting 2015-04-23 23:55:50 +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 76f1c2fa0e Improve HMR error handling #410 2014-12-31 01:47:52 +01:00
Tobias Koppers 738c1d3e68 support library with CommonsChunkPlugin
fixes #622
2014-12-22 16:10:23 +01:00
Tobias Koppers d5dc904a15 fixed incomplete hash bug 2014-11-03 08:02:02 +01:00
Tobias Koppers e12bc992af include [chunkhash] tests again
added support for [chunkhash] with target node
2014-11-02 12:48:15 +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
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 3bc6d7b60b fixed edge case when using [chunkhash:xxx]
#427
2014-09-11 19:25:18 +02:00
Jason Anderson f371945a29 Add TemplatedPathPlugin 2014-09-11 15:31:08 +02:00
Tobias Koppers 887852f6df Allow to share hotUpdateCallback
fixes #423
2014-08-25 10:19:04 +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
Tobias Koppers aca7f8b547 shorter [name] 2014-07-31 13:51:37 +02:00
Tobias Koppers 03c87c11a4 support [name] in chunkFilename
fixes #358
2014-07-17 01:52:41 +02:00
Tobias Koppers 6c3e333343 fixed #317 2014-06-23 23:59:10 +02:00
Tobias Koppers 3247725ba3 refactored MainTemplate to plugin interface 2014-06-02 21:23:53 +02:00