Commit Graph

17 Commits

Author SHA1 Message Date
Tobias Koppers 3c244d9fc9 Optimize error origin handling and module trace
Improve warnings and errors sorting
2018-09-12 13:16:59 +02:00
Tobias Koppers a4825654eb upgrade jest 2018-07-10 16:02:02 +02:00
Tobias Koppers 023d4ca945 add more test cases 2018-05-29 00:45:39 +02:00
Tobias Koppers a926a19715 create better namespace objects
avoid using Object.assign (fixes #7162)
2018-05-03 12:55:00 +02:00
Bazyli Brzóska b579658d22 Merge branch 'profiling-race' into jest
# Conflicts:
#	lib/debug/ProfilingPlugin.js
#	test/ConfigTestCases.test.js
#	test/DependenciesBlockVariable.unittest.js
#	test/Examples.test.js
#	test/ExternalModule.unittest.js
#	test/HotTestCases.test.js
#	test/Schemas.lint.js
#	test/WebEnvironmentPlugin.unittest.js
#	test/cases/mjs/non-mjs-namespace-object-lazy/index.js
#	test/cases/runtime/module-caching/index.js
#	test/compareLocations.unittest.js
#	test/configCases/library/1-use-library/index.js
#	test/configCases/plugins/define-plugin/index.js
#	yarn.lock
2018-03-07 21:56:06 +01:00
Tobias Koppers 8bf15740bb CJS fake namespace object contains exports now
#6576
2018-02-26 19:11:53 +01:00
Bazyli Brzóska 7b5c3516f6 Merge branch 'v4-beta3' into jest
# Conflicts:
#	test/BenchmarkTestCases.benchmark.js
#	test/CachePlugin.unittest.js
#	test/HotTestCases.test.js
#	test/NormalModule.unittest.js
#	test/ProfilingPlugin.unittest.js
#	test/TestCases.test.js
#	test/configCases/parsing/harmony-this/index.js
#	test/configCases/plugins/profiling-plugin/index.js
#	test/configCases/plugins/profiling-plugin/webpack.config.js
#	test/watchCases/runtime/static-import/0/index.js
#	yarn.lock
2018-02-25 11:41:05 +01:00
Bazyli Brzóska e7a671fe65 fix a few more expects and make the test output paths more sturdy 2018-02-25 01:20:45 +01:00
Tobias Koppers 85ff5507a5 fixes #6459 2018-02-09 18:01:31 +01:00
Florent Cailhol aa217e9abc Fix wrong regexp replacements 2018-01-30 21:03:23 +01:00
Bazyli Brzóska 5a8083a930 migrate should to expect, part 1
used regexps:

([\(\)a-zA-Z0-9\."'/ +{}\[\]=\-,:?_!]+)\.should\.be\.eql
➡️
expect($1).toBe

expect\(([\(\)a-zA-Z0-9\."'/ +{}\[\]=\-,:?_!]+)\)\.toBe\(\[
➡️
expect($1).toEqual([

expect\(([\(\)a-zA-Z0-9\."'/ +{}\[\]=\-,:?_!]+)\)\.toBe\(\{
➡️
expect($1).toEqual({
2018-01-26 22:51:03 +01:00
Tobias Koppers 5de82eb251 remove no extensions "feature" from mjs 2017-12-14 12:40:12 +01:00
Tobias Koppers 515a07adbf fix non-harmony import() handling for `null` 2017-12-04 15:49:34 +01:00
Tobias Koppers 3803c8ad4e handle non-esm correctly in import()
return namespace object in normal import() and context import()
add namespaceObject flag to ContextModule options
change tests for updated behavior
2017-12-04 12:58:32 +01:00
Tobias Koppers 21cdc84b71 process imports from mjs to non-esm correctly
give nice error messages when importing non-esm the wrong way
It also disallows using namespace object from non-esm modules

fixes #5686
2017-11-23 14:10:52 +01:00
Tobias Koppers 6dc350ddb7 mjs can't import modules without extension 2017-11-23 12:03:34 +01:00
Tobias Koppers 00f2b5ede7 advanced module type refactoring
added json type
.mjs default to javascript/esm type
adjusted parser plugins to react on module type
2017-11-11 19:27:19 +01:00