Commit Graph

179 Commits

Author SHA1 Message Date
alexander.akait 427f02e07a test: added 2024-03-21 18:55:58 +03:00
alexander.akait d50aeb629e test: import attributes 2024-03-15 19:03:28 +03:00
alexander.akait 22a701d628 test: fix 2024-03-14 19:53:39 +03:00
alexander.akait 8273948d9d chore: improve eslint configuration 2024-01-13 16:35:31 +03:00
alexander.akait 39b883ec4f test: fixed 2023-06-16 00:39:16 +03:00
Alexander Akait 2a669ff061
Merge pull request #17212 from webpack/feat-support-custom-syntax
feat: introduce a new syntax for worklets - `*context.audioWorklet.addModule()`
2023-05-31 21:26:59 +03:00
alexander.akait 5ea17cd104 test: run only when supports 2023-05-24 00:28:23 +03:00
alexander.akait 94ee6f84a1 fix: error reporting 2023-05-19 15:36:06 +03:00
alexander.akait 20c690025d feat: introduce a new syntax for worklets - `*context.audioWorklet.addModule()` 2023-05-17 19:59:51 +03:00
Ben Worline c70277db4e cspell lint fix 2023-05-09 15:13:20 -07:00
Ben Worline f7d83a4a66 move expectSourceToContain, expectSourceToMatch, regexEscape to helper files 2023-05-09 12:01:55 -07:00
alexander.akait 62d2a17ce4 fix: handle `#hash` URL as external 2023-05-02 01:24:01 +03:00
alexander.akait 756dd16c53 fix: bugs and improve testing 2023-04-25 19:34:44 +03:00
Sean Larkin 7f08e4d45f
Merge pull request #16925 from chenjiahan/fix/css_cross_origin_loading
fix: crossOriginLoading anonymous not work when loading styles
2023-04-12 07:35:22 -07:00
alexander.akait 9c3af2f615 chore: try jest on new versions 2023-04-11 22:25:42 +03:00
chenjiahan be6391514f fix: crossOriginLoading anonymous not work when loading styles 2023-04-07 10:46:48 +08:00
Tobias Speicher 8f56fcba72
Replace deprecated String.prototype.substr()
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-13 22:54:18 +01:00
Tobias Koppers d77b8dd01e
Merge pull request #14857 from webpack/fix-14839
fix asset module hash
2022-02-28 12:42:35 +01:00
Tobias Koppers 5a446d81e3 Merge branch 'main' into fix-14839 2022-02-22 11:12:13 +01:00
Ivan Kopeykin 157b420a1e use infrastructure-log file 2022-02-15 09:08:02 +03:00
Ivan Kopeykin 1e7acc5e77 refactor infrastructure log functionality 2022-02-14 11:36:32 +03:00
Tobias Koppers 54fff4dd0a add support for `@keyframes`, `animation`, CSS Variables 2021-12-16 20:42:44 +01:00
Tobias Koppers 3c9801a549 add support for external css 2021-12-03 08:47:21 +01:00
Tobias Koppers 110e8044dc add test case 2021-12-03 08:47:06 +01:00
Ivan Kopeykin 8d8e2e3fa4 fix asset module hash 2021-11-29 19:37:32 +03:00
Tobias Koppers ba154bc741 refactor and add test case 2021-10-25 12:12:52 +02:00
Tobias Koppers 4e8a621bfa fix null module externals 2021-09-03 13:47:09 +02:00
Tobias Koppers 8fc0d28e3d filter experimental warnings 2021-07-15 16:37:54 +02:00
Tobias Koppers c6c88ca1db increase timeout of warmup 2021-07-15 16:37:54 +02:00
Tobias Koppers b29c44e223 add separate webpack warmup step with large timeout 2021-07-15 16:37:54 +02:00
Tobias Koppers bfdeade65d workaround for memory leak in jest
see also https://github.com/facebook/jest/pull/6965
cc @SimenB
2021-07-12 10:19:58 +02:00
Tobias Koppers 6dbfb93f8a Merge branch 'master' into dependabot/npm_and_yarn/jest-27.0.4 2021-06-28 11:38:29 +02:00
Tobias Koppers 18e93eb10e
Merge pull request #13647 from webpack/perf/memory-improvements
improve disposing of lazy compilation backend server
2021-06-28 11:35:23 +02:00
Tobias Koppers 291321c77a fix memory leaks 2021-06-28 09:58:03 +02:00
Tobias Koppers 978c994f28 fix lint error 2021-06-25 22:08:54 +02:00
Tobias Koppers d02c9bb7a5 filter out node commonjs in module externals tests on node 10 2021-06-25 20:32:55 +02:00
Tobias Koppers e05652e535 fix timeout handling 2021-06-25 17:41:52 +02:00
Tobias Koppers 89aa0c5280 fix memory leaks 2021-06-25 13:38:38 +02:00
Tobias Koppers a53578be7e implement synthetic modules for node 10 2021-06-25 10:37:35 +02:00
Tobias Koppers 629f9f031c add support for module externals and automatic externals 2021-06-24 16:44:14 +02:00
Tobias Koppers d51c4277d3 fix Symbol lookup for older node.js versions 2021-06-22 09:39:17 +02:00
Tobias Koppers 9d123b1b53 fix createLazyTestEnv for new jest major version 2021-06-22 09:39:17 +02:00
Tobias Koppers cf0c816648 add test case for moving modules and chunks between runtimes 2021-05-26 23:29:49 +02:00
Tobias Koppers 94facd387d add support for class fields 2021-04-27 10:28:13 +02:00
Tobias Koppers 4e117781e8 improvements
add appendOnly flag
add custom console
add custom stream
2021-04-06 15:20:27 +02:00
Hyeonmin Park f000617d9f chore: fix typo collaped 2021-04-04 13:39:30 +09:00
Anshuman Verma eb63cb78b6 fix: prefix public path in importScripts 2021-03-15 16:08:59 +01:00
Ingvar Stepanyan e839494ff0 Disallow type:module + importScripts in tests 2021-03-12 11:00:40 +01:00
Tobias Koppers c7f93af138 refactor startup logic to better integrate with libraries
get rid of startupNoDefault and many custom logic regarding this in jsonp chunk loading
add onChunksLoaded runtime method to cover that for all chunk loading types
add `__webpack_runtime_id__` to access the current runtime
allow to use onChunksLoaded for other module types too
2021-03-08 20:25:09 +01:00
Karlis Gangis c15fc1bae4 Fix new Worker() compatibility check in unit tests for older node versions 2021-02-01 18:01:20 +02:00
Tobias Koppers 988cf8d47a improve error handling 2021-01-21 21:05:23 +01:00
Tobias Koppers a1515fa9f0 add experimental lazy compilation 2021-01-21 17:39:56 +01:00
Tobias Koppers d034c89c8b terminate WebWorkers correctly 2021-01-09 19:06:02 +01:00
Tobias Koppers d46f945572 fix problem when HMR and different runtimes
allow HMR to work in WebWorkers too
2020-11-28 13:53:32 +01:00
Huáng Jùnliàng b687d82ad4 nit 2020-09-30 08:49:05 -04:00
Huáng Jùnliàng 92f9991647 add supportsLogicalAssignment 2020-09-30 08:49:05 -04:00
Tobias Koppers 442dc46740 improve test case, convert trace into warning 2020-09-27 11:26:32 +02:00
Tran Sang 94b1f86170 refac console.warn mocking 2020-09-26 10:05:55 +09:00
Ivan Kopeykin 49009486df support undo path 2020-09-16 23:20:44 +03:00
Ivan Kopeykin 580de0873a update publicPath
- support option output.publicPath="auto"
- add test cases
- render import.meta.url for output.scriptType="module"
2020-09-15 00:27:38 +03:00
Tobias Koppers 1a2b7751eb run worker tests only on supported node versions 2020-09-08 10:03:54 +02:00
Ivan Kopeykin 4157166263 Merge branch 'master' into feature/asset-url
# Conflicts:
#	test/Defaults.unittest.js
2020-08-16 15:47:05 +03:00
Ivan Kopeykin 70c0b28d00 add tests, refactor how optional chaining handles 2020-08-07 14:44:54 +02:00
Ivan Kopeykin ddc83b0d70 feat: url assets 2020-08-05 00:55:38 +03:00
Tobias Koppers d0ef2ce43f display assets in stats in a list instead of a table
group related assets below the parent asset
2020-08-02 08:07:32 +02:00
Tobias Koppers 5876cf6210 improvements, test support check fix 2020-07-21 10:30:11 +02:00
Tobias Koppers fd9b399ae9 Create Cache facade to make it easier to use
add missing serializers for classes used in test suite
2020-07-15 11:14:28 +02:00
Tobias Koppers 531f7b47f6 move script loading into separate runtime module
attach to existing script tags
2020-06-04 03:01:22 +02:00
Tobias Koppers 15eefadcea
Merge pull request #10838 from webpack/dev-1
Merge Module Federation into webpack 5 beta
2020-05-05 23:57:00 +02:00
Tobias Koppers b6c3cc5b42 update stats test cases
fix node 14 warnings
2020-04-30 23:18:47 +02:00
Tobias Koppers 0ccb4da411 fix using global library as fallback
test module federation without library provided
test circular dependencies between containers
test multiple containers in a single build
test System.js module federation
improve fakeSystem implementation for circular dependencies and local files
2020-04-14 15:14:53 +02:00
zackjackson 4a01c4cfda tests: system.js registering properly 2020-04-14 15:11:33 +02:00
ScriptedAlchemy aabcb3ceac wip on fakeSystem 2020-04-14 15:11:32 +02:00
Tobias Koppers ee94677a77
Merge pull request #10632 from mohsen1/mohsen--prettier-3
Upgrade to Prettier 2
2020-03-30 11:37:23 +02:00
Mohsen Azimi 7b07a8db66 Upgrade to Prettier 2 2020-03-28 18:20:24 -04:00
Joel Denning ccd24605ef Merge branch 'master' into system-context 2020-03-10 10:37:28 -06:00
Tobias Koppers 712711d2a1 setters are non-optional 2020-03-09 11:03:41 +01:00
Tobias Koppers c94aea82cc enable export mangling for system.js externals
add __esModule flag only when needed
2020-03-05 14:07:55 +01:00
Joel Denning 0f488f14ca Triggering build 2020-02-29 17:12:21 -07:00
Joel Denning 4627fe2886 Triggering build 2020-02-29 16:01:39 -07:00
Joel Denning 76d5cd579c Exposing System.register _context variable to bundled code.
Making __system_context__ available to code splits.

Fixing git problem

Making PR compatible with webpack 5

Undoing prettier changes to open-bot

Adding test

Triggering build

Triggering build

Reimplementing with new file

Exposing System.register _context variable to bundled code.

Making __system_context__ available to code splits.

Making PR compatible with webpack 5

Undoing prettier changes to open-bot

Adding test

Triggering build

Triggering build

Self review

Self review

Fixing license

Removing deleted file

Fix
2020-02-29 15:24:52 -07:00
Tobias Koppers 63afbf9bf1 add deprecation testing for config test cases 2019-12-17 17:18:52 +01:00
Tobias Koppers d7dc764d1a filter DeprecationWarnings from captured stdio 2019-10-09 09:51:34 +02:00
Tobias Koppers 53f68c9e7b update deprecated usage of chunk and main templates 2019-10-08 23:46:33 +02:00
Tobias Koppers 1e287169d9 add mini-css-extract-plugin test case 2019-09-26 22:07:07 +02:00
Tobias Koppers 92e362544f Merge tag 'v4.39.3' into next
4.39.3
2019-08-27 19:17:06 +02:00
Tobias Koppers 94d17681c4 resolve linting issues in test/helpers 2019-08-22 13:26:45 +02:00
Tobias Koppers b73d35bbee Merge tag 'v4.39.0' into next
4.39.0
2019-08-05 13:12:09 +02:00
Tobias Koppers 1963e4018f improve tests for different infrastructure logging levels 2019-08-01 16:26:54 +02:00
Tobias Koppers 0b0e9e9608 fix Progress and Stats Tests for colors and output 2019-08-01 14:04:24 +02:00
Tobias Koppers 4c472adbf1 capture infrastructure log 2019-08-01 14:04:20 +02:00
Tobias Koppers 56e12fd620 extract LogTestPlugin 2019-08-01 13:51:22 +02:00
Tobias Koppers 4d8a1003cd avoid writing to stderr while testing 2019-07-26 13:16:25 +02:00
Ben Kucera 7aefa64b0a refactor test, evenly truncate details text, properly handle undefined stderr.columns 2019-06-04 12:33:55 -04:00
Tobias Koppers f7d0c2545f Improve way how System is tested 2019-04-10 13:48:47 +02:00
Tobias Koppers 523ddd7220 avoid memory leak 2018-10-24 15:30:33 +02:00
Tobias Koppers f5be9a62d4 update watch test cases for new jest integration 2018-08-02 16:58:41 +02:00
Tobias Koppers 01cfe5b67a improve way of adding exported tests to test tree 2018-08-02 14:45:50 +02:00
Tobias Koppers 5c4ffd5b90 fix tests and code 2018-06-28 11:11:24 +02:00
Florent Cailhol 4e15f64402 Add optional catch binding support 2018-06-06 21:30:53 +02:00