Commit Graph

87 Commits

Author SHA1 Message Date
Tobias Koppers 751fd9bbc4 add stack to non-Error error emitted
add info about emitting an Error

#4518
2017-03-22 13:29:40 +01:00
Tim Sebastian db2626595c fix test and linting 2017-02-16 19:31:58 +11:00
Tim Sebastian c06b0665d2 apply review tasks 2017-02-16 08:01:09 +11:00
Tim Sebastian 3812c101b1 add tests for preventParsing and applyNoParseRule 2017-02-14 21:14:57 +11:00
Tim Sebastian eb2d6d6d5f add tests for NormalModule 2017-02-14 20:38:47 +11:00
Tim Sebastian c71840a6ad refactor part 2, add comments 2017-02-14 00:16:54 +11:00
Tim Sebastian fcac9a3fe4 refactor variable cleanup code generation, step one 2017-02-13 23:13:07 +11:00
Tim Sebastian 4d378f51bd untangle source method 2017-02-13 22:18:15 +11:00
Tim Sebastian a5d5b9ef55 simplify error handling and simplify markModuleAsErrored as its always called with an error 2017-02-13 21:38:55 +11:00
Tim Sebastian b9507cca99 apply review tasks 2017-02-13 00:08:41 +11:00
Tim Sebastian 80e7d4070f fix typo 2017-02-11 17:07:18 +11:00
Tim Sebastian 7d36c5b7eb extract asset source creation to own method 2017-02-11 17:07:01 +11:00
Tim Sebastian 1e4d9297b4 split out noParse check for modules 2017-02-11 16:59:58 +11:00
Tim Sebastian 93377f7bc4 refactor needRebuild to make use of early return if possible 2017-02-11 16:10:07 +11:00
Tim Sebastian 128e04365b use const for source, as let is no longer necessary 2017-02-11 15:59:35 +11:00
Tim Sebastian 2a66bb47cd use arrow function to bind `this` and remove indirection over local "module" variable 2017-02-11 15:59:08 +11:00
Tim Sebastian d4c48531f1 extract source creation to its own method 2017-02-11 15:57:52 +11:00
Tim Sebastian a766b66b91 extract loadercontext creation to its own method 2017-02-11 15:32:48 +11:00
Tim Sebastian e028b89abe rename setError to "markModuleAsErrored" and move it to prototype
- also remove unused param
- call callback outside of method call
2017-02-11 14:41:26 +11:00
Tim Sebastian c948f18e47 fixme 2017-02-11 14:23:51 +11:00
Tim Sebastian c9038accc0 split up "updateHash" into subtask methods 2017-02-11 14:17:54 +11:00
Tim Sebastian f16867d7f6 migrate NormalModule to es6 2017-02-11 14:16:18 +11:00
Tobias Koppers bfccb20920 fix PR 2017-01-16 03:21:13 +01:00
Sean Larkin 5a3a23f3e3 fix(nmf): Fix exports for var injection to include free glob exports or arguments 2017-01-15 12:02:43 -06:00
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
Sean Larkin e128cdd64b ci(yarn): fix an issue where CI is failling to link (#3654) 2016-12-30 14:55:11 -06:00
Tobias Koppers dcb1d4599c removed unused stuff in NormalModule
It was used for the DedupePlugin
2016-12-30 13:57:48 +01:00
Tobias Koppers 862478e3b4 reset meta on recompile 2016-12-21 13:22:14 +01:00
Tobias Koppers ea3b2303a8 fixes an error where errors are not cleared in cached module 2016-12-16 19:12:47 +01:00
Tushar Sonawane 6b39a5325c fix 'no-inner-declarations' warnings 2016-10-29 19:30:01 +05:30
Tobias Koppers a53799c0ac use new RuleSet matching instead of LoadersList
pass issuer via contextInfo
2016-09-15 00:22:10 +02:00
Tobias Koppers 1ee3585fa1 compilation error don't affect parent module
recover after syntax error
assume es6 module on syntax error

#2117
2016-07-03 13:13:01 +02:00
Tobias Koppers cf00a1a22d rewrite cases where js beautify and eslint disagree on formatting 2016-06-20 21:46:27 +02:00
Simen Bekkhus b1bdd6989f Use eslint's indent rule 2016-06-20 08:21:00 +02:00
e-cloud 13322ca35c add missing constructors for all classes needed
As i walk through the source, i've tried to trace the webpack running stack.
Then, i find the missing constructors result in uncleasr stack and create a patch
for them.
2016-05-20 13:39:36 +08:00
Tobias Koppers d483ed2878 fixed a edge case with var injection 2016-03-10 10:50:29 +01:00
Tobias Koppers ca0702b993 free var injection should go before export and import 2016-02-22 17:13:28 +01:00
Tobias Koppers 4a52440ea8 track dependencies even if error occur
fixes #1975

merged #1985
2016-02-03 23:46:51 +01:00
Tobias Koppers a803902ed8 fixed #1883 2016-01-30 12:50:42 +01:00
Tobias Koppers 9a901a9f1c fixed a bug with watching 2016-01-21 01:11:32 +01:00
Tobias Koppers fecf07dd1f integrated new enhanced-resolve version 2016-01-03 21:42:56 +01:00
Tobias Koppers ded70aef28 moves stuff from webpack-core to webpack-sources 2015-12-29 17:44:55 +01: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 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 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 8cfeb51c30 refactoring and bug fixes 2015-07-07 00:11:13 +02:00