Commit Graph

345 Commits

Author SHA1 Message Date
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 f371945a29 Add TemplatedPathPlugin 2014-09-11 15:31:08 +02:00
Tobias Koppers bf70c88399 throw on missing node.js module
fixes #411
2014-08-21 14:43:34 +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
Tobias Koppers 03c87c11a4 support [name] in chunkFilename
fixes #358
2014-07-17 01:52:41 +02:00
Tobias Koppers 572ebfcd51 use correct (relative) url to source map 2014-07-16 20:57:10 +02:00
Tobias Koppers d80cdcefac Code Quality 2014-06-24 18:53:32 +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 3247725ba3 refactored MainTemplate to plugin interface 2014-06-02 21:23:53 +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 3364a26967 upgrade node browser replacements 2014-03-18 22:34:35 +01:00
Tobias Koppers 9a3e3443fa use externals plugin for node target 2014-03-05 19:56:53 +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 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 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 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 e4bbcc53a5 wait at least to the next second #122 2013-11-26 16:19:06 +01: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 c30f16f439 added experimental deduplication support #47 2013-06-12 16:16:06 +02:00
Tobias Koppers 3cb3cf7285 purge only changed files, longer caching 2013-05-13 14:25:37 +02:00
Tobias Koppers 0de7c73ad8 SourceMap support 2013-03-26 16:54:41 +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 c4140aac51 moved ConsolePlugin into NodeSourcePlugin 2013-02-26 13:31:05 +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 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 9759650369 obsolete 2013-02-20 20:40:58 +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 8821f7bbf8 fixes #64 2013-02-13 14:57:00 +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 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 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 ee01837d66 Refactored everything for 0.9 2013-01-30 18:49:25 +01:00