Commit Graph

275 Commits

Author SHA1 Message Date
ahabhgk 9ed525550e remove toString 2024-06-10 22:33:46 +08:00
ahabhgk 0b92e07d03 add css render module cache 2024-06-10 22:33:44 +08:00
ahabhgk 3afed0618b fix module rule output path 2024-06-10 22:29:15 +08:00
ahabhgk 4a360f63f5 works for node10 2024-06-10 22:29:15 +08:00
ahabhgk c5617482b7 fix: css url public path 2024-06-10 22:29:15 +08:00
ahabhgk 7ff0a7a13e feat: support css esModule generator options 2024-04-26 14:53:52 +08:00
ahabhgk 0e28b6e359 fix: parse minimized css import 2024-04-23 14:29:13 +08:00
ahabhgk bf2571b957 remove exportsConvention for css 2024-04-20 12:10:56 +08:00
ahabhgk 42160d0232 fix: avoid hash @keyframe and @property in css/global 2024-04-20 11:29:06 +08:00
ahabhgk 3e36ddf74a fix: css should not allowModeSwitch 2024-04-20 11:28:19 +08:00
alexander.akait f3dbf6bc39 feat(css): allow to use default and named export 2024-04-02 16:57:29 +03:00
alexander.akait 8591ba2c6f feat: support prefetch/preload for module chunk format 2024-03-25 15:39:18 +03:00
alexander.akait 2779470f89 fix: enable CSS runtime when chunk format is module 2024-03-21 17:52:57 +03:00
alexander.akait be1d35eb02 fix(types): more 2024-03-18 18:50:56 +03:00
alexander.akait 5967329cd1 feat: support prefetch/preload for CSS 2024-03-14 18:44:49 +03:00
ahabhgk 074fccb38b feat: add css head data compression 2024-03-06 14:29:57 +08:00
ahabhgk c8e9b0f49c fix: use LZW to compress css head meta 2024-03-01 17:15:42 +08:00
alexander.akait 590f8f969d fix: support `fetchPriority` for CSS chunks 2024-02-27 21:39:58 +03:00
alexander.akait 9c2bf0c52e fix: support `__webpack_nonce__` for CSS chunks 2024-02-27 20:27:45 +03:00
ahabhgk cadae063fa add test and fix node10 2024-02-23 19:40:33 +08:00
ahabhgk d4dc533fc3 feat: support css local ident name 2024-02-22 20:10:45 +08:00
ahabhgk 47ce233333 add test 2024-02-21 18:34:40 +08:00
ahabhgk d4a5766bbe feat: support css exports convention 2024-02-21 16:00:24 +08:00
ahabhgk 2360e3a623 fix: clean up export css local vars 2024-02-18 20:53:14 +08:00
ahabhgk 92b33021ff feat: css named exports parser options 2024-01-16 00:23:07 +08:00
Nitin Kumar 412ae5425e chore: udpate prettier to v3 2024-01-14 07:11:34 +05:30
ahabhgk 2715265126 wip 2024-01-12 15:57:52 +08:00
alexander.akait 81bd9b4e00 fix: css runtime chunk loading error 2024-01-10 18:43:19 +03:00
Alexander Yamakin ce6b0618ff
Merge branch 'main' into feature-14072 2024-01-09 02:59:32 +03:00
alexander.akait 4809421990 refactor(types): more 2023-06-21 19:00:24 +03:00
Sean Larkin da76b19bf4
Merge pull request #17399 from burhanuday/feat/auto-css-modes
feat: use css/auto as the default css mode
2023-06-21 08:32:24 -07:00
alexander.akait 5a49b861dc fix: runtime for CSS loading 2023-06-21 12:43:08 +03:00
alexander.akait f778bde634 fix: bug with css/auto 2023-06-20 23:40:47 +03:00
Burhanuddin Udaipurwala d2bc40cf73 feat: update regex to match valid css file names 2023-06-19 21:36:01 +05:30
Burhanuddin Udaipurwala d06b22d9b4 feat: use css/auto as default css type 2023-06-18 21:51:48 +05:30
ahabhgk efeb6ed0d6 fix path 2023-06-11 21:33:10 +08:00
ahabhgk d4b3185ede feat: css/auto 2023-06-10 21:11:23 +08:00
alexander.akait ab47c696a4 refactor(types): more 2023-06-03 20:52:25 +03:00
Sean Larkin 27e95ff3b5
Merge pull request #17229 from webpack/css-empty-import
fix: CSS `@import` parsing edge cases
2023-05-23 14:04:33 -07:00
alexander.akait 055737dc0c refactor(types): more 2023-05-21 23:31:30 +03:00
alexander.akait 79616654c7 test: more 2023-05-19 20:03:58 +03:00
alexander.akait 6b8d4f9f5e fix: improve error reporting 2023-05-19 19:05:14 +03:00
alexander.akait e063ddfbe7 fix: more stricky handle 2023-05-19 17:37:38 +03:00
alexander.akait 94ee6f84a1 fix: error reporting 2023-05-19 15:36:06 +03:00
alexander.akait e15c0bb64b fix: empty CSS `@import` 2023-05-19 14:44:13 +03:00
Sean Larkin 282ed8d0e6
Merge pull request #17140 from webpack/issue-17139
fix: crash with importModule when CSS enabled
2023-05-08 08:46:03 -07:00
alexander.akait 1f8637ce0b fix: crash with importModule when CSS enabled 2023-05-05 16:28:57 +03:00
alexander.akait 9810b5712e fix: nesting 2023-05-05 05:28:27 +03:00
alexander.akait 5950351f15 fix: reset modeData in nested 2023-05-05 05:13:13 +03:00
alexander.akait e6bbe7e5a8 test: more 2023-05-05 04:57:53 +03:00
alexander.akait 1ef9420d9d refactor: more 2023-05-05 04:36:35 +03:00
alexander.akait c5b7917674 fix: more bugs 2023-05-05 04:28:48 +03:00
alexander.akait 0a7c9c8938 refactor: code 2023-05-05 04:21:25 +03:00
alexander.akait b5cbf180ff fix: more bugs with nesting 2023-05-05 03:46:24 +03:00
alexander.akait 6c5ff154f0 fix: regression with url inside at-rules 2023-05-05 03:01:12 +03:00
alexander.akait c527251284 test: pure 2023-05-05 02:57:22 +03:00
alexander.akait 0191e366b9 refactor: code 2023-05-05 02:53:57 +03:00
alexander.akait d6e678792e refactor: code 2023-05-05 02:49:09 +03:00
alexander.akait 9e927fe2b2 fix: handle `var()` function in at-rules 2023-05-05 02:37:24 +03:00
alexander.akait 14660fee75 refactor: logic 2023-05-05 02:20:26 +03:00
alexander.akait 410b964737 fix: avoid extra space 2023-05-05 02:05:37 +03:00
alexander.akait 8b0a90a1a4 fix: handle nested syntax 2023-05-05 01:52:08 +03:00
alexander.akait 9402ed2970 refactor: prepare 2023-05-05 01:13:27 +03:00
alexander.akait 8e1d5ef4ae refactor: more types 2023-05-05 00:38:41 +03:00
alexander.akait 5b58a0f095 fix: bug wrong dependency position 2023-05-05 00:27:59 +03:00
alexander.akait 3074eaabf4 fix: bug with animation rename 2023-05-04 23:59:30 +03:00
alexander.akait 79d1edc5a2 fix: bug with nested indentifier 2023-05-04 23:41:12 +03:00
alexander.akait 4c8764449b refactor: logic 2023-05-04 23:01:16 +03:00
alexander.akait 5cd2e0dd4a fix: logic 2023-05-04 22:40:00 +03:00
alexander.akait 252c1e606b refactor: logic 2023-05-04 22:24:13 +03:00
alexander.akait 72559325ca refactor: logic 2023-05-04 21:56:12 +03:00
alexander.akait e21392ca2e refactor: types and better name 2023-05-04 21:28:09 +03:00
alexander.akait 2c79741042 refactor: put id and class together 2023-05-04 21:26:32 +03:00
alexander.akait 3a0f49ed5c fix: do not reset mode after semicolon 2023-05-04 21:25:23 +03:00
alexander.akait 5379952451 fix: improve error message 2023-05-04 20:50:29 +03:00
alexander.akait c3cfc6775f fix: bug with container and unknown at-rules 2023-05-04 20:24:37 +03:00
alexander.akait 2a4725750e fix: bug 2023-05-04 19:47:38 +03:00
alexander.akait 65bf52de87 fix: bug 2023-05-04 19:18:13 +03:00
alexander.akait 4e8f8144fd fix: perf 2023-05-04 18:21:57 +03:00
alexander.akait a8964745de fix: avoid extra check 2023-05-04 17:34:48 +03:00
alexander.akait 8c0fc4de86 refactor: remove nothing code 2023-05-04 16:39:40 +03:00
alexander.akait fdcf4c4af6 fix: handle `@property` 2023-05-04 14:50:11 +03:00
alexander.akait 8f2fd02363 fix: handle `@layer` 2023-05-04 14:38:10 +03:00
Sean Larkin 0023a8f43b
Merge pull request #17118 from webpack/fix-do-not-parse-broken-import
fix: any @import rules must precede all other rules
2023-05-03 09:43:03 -07:00
Sean Larkin ffcb480ad1
Merge pull request #17115 from webpack/fix-css-nested-output
fix: respect `media`/`supports`/`layer` from parent CSS module
2023-05-03 09:34:24 -07:00
alexander.akait e80bf86055 fix: do not handle keyframes in global mode 2023-05-02 14:23:58 +03:00
alexander.akait dd89b19c1a chore: fix lint 2023-05-02 13:12:41 +03:00
alexander.akait 4d544554e1 fix: error resistence for other errors 2023-05-02 12:15:52 +03:00
alexander.akait 0ddc4e1b63 fix: error resistence for broken keyframes 2023-05-02 04:58:58 +03:00
alexander.akait e682fce6f7 fix: do not handle @namespace 2023-05-02 04:23:46 +03:00
alexander.akait a3d6ad0cfe fix: do not handle @import after rule 2023-05-02 04:04:33 +03:00
alexander.akait 62d2a17ce4 fix: handle `#hash` URL as external 2023-05-02 01:24:01 +03:00
alexander.akait 14a9ea55e1 fix: avoid extra inheritance 2023-05-02 00:33:09 +03:00
alexander.akait e5e86206f8 fix: respect inherit for CSS modules 2023-05-01 23:29:18 +03:00
alexander.akait dbca487f47 refactor(types): more types 2023-04-28 22:26:27 +03:00
alexander.akait 0bc0339892 refactor(types): more types 2023-04-28 21:50:41 +03:00
alexander.akait a126050331 refactor(types): more types 2023-04-28 21:29:59 +03:00
alexander.akait 9d930f7a67 fix: bug with balanced parens 2023-04-26 03:52:17 +03:00
alexander.akait e3f83e2edc fix: bug with balanced 2023-04-26 03:45:15 +03:00
alexander.akait d9dd04e0cf refactor: reuse comment logic 2023-04-26 03:36:44 +03:00
alexander.akait 83d60f9370 fix: bug with comments in media 2023-04-26 03:07:13 +03:00
alexander.akait fd93ed41de test: more 2023-04-26 02:55:59 +03:00
alexander.akait c3e393e7d7 refactor: code 2023-04-26 01:22:09 +03:00
alexander.akait e8687e70be test: more 2023-04-26 01:00:39 +03:00
alexander.akait 0453010622 fix: anonymous layers 2023-04-26 00:25:43 +03:00
alexander.akait 6b1c23c205 fix: anonymous layer 2023-04-26 00:23:21 +03:00
alexander.akait 16a1a042b6 fix: windows issue 2023-04-25 23:51:01 +03:00
alexander.akait dfd0be0667 test: more 2023-04-25 23:37:11 +03:00
alexander.akait 619e4b9cf6 fix: layer output 2023-04-25 19:34:44 +03:00
alexander.akait 756dd16c53 fix: bugs and improve testing 2023-04-25 19:34:44 +03:00
alexander.akait be3d54d353 fix: implement CSS imports render 2023-04-25 19:34:44 +03:00
alexander.akait da28801114 feat: implement CssModule 2023-04-25 19:34:44 +03:00
alexander.akait 5c8bccaf28 feat: allow to override module in factory 2023-04-25 19:34:44 +03:00
alexander.akait 1251e7cc55 fix: parser 2023-04-25 19:34:44 +03:00
alexander.akait bd46fc3c93 refactor: rename variables 2023-04-18 04:35:50 +03:00
alexander.akait a7a2dfe4cb fix: handle vendor prefixed keyframes and animation in CSS modules 2023-04-18 04:35:49 +03:00
alexander.akait d1634b86af refactor: improve 2023-04-14 19:19:27 +03:00
alexander.akait f1cf224c69 fix: parsing comments 2023-04-14 17:57:18 +03:00
alexander.akait bfcce62794 fix: parsing comments 2023-04-14 17:15:43 +03:00
alexander.akait 65b521659b fix: parsing comments and escaped 2023-04-14 03:31:58 +03:00
alexander.akait 308e405806 refactor: parser 2023-04-14 03:13:47 +03:00
alexander.akait bb1f0ca17f fix: logic with espaced 2023-04-14 02:35:53 +03:00
alexander.akait aeafcf6a44 fix: logic 2023-04-14 01:52:50 +03:00
alexander.akait 758ce778d6 feat: support `image-set` 2023-04-13 23:25:46 +03:00
alexander.akait 432ead05b5 fix: typo 2023-04-13 04:08:07 +03:00
alexander.akait 6bd80baaea fix: more bugs 2023-04-13 02:36:01 +03:00
alexander.akait 7ee28a7cc8 fix: more bugs 2023-04-13 02:27:04 +03:00
alexander.akait c3c5c54db7 fix: spaces 2023-04-13 01:56:55 +03:00
alexander.akait 182559b5c5 fix: handle `url()`/`src()`/`image-set`/`image` 2023-04-13 01:23:57 +03:00
Sean Larkin a9ea0d94a6
Merge pull request #16915 from webpack/fix-case-sensitivity-in-css
fix: case insensivity in CSS
2023-04-12 07:45:59 -07:00
chenjiahan be6391514f fix: crossOriginLoading anonymous not work when loading styles 2023-04-07 10:46:48 +08:00
alexander.akait b735a56a47 fix: more cases 2023-04-06 02:09:08 +03:00
alexander.akait 5a5b140e26 fix: handle at-rules 2023-04-05 23:06:29 +03:00
alexander.akait d7335471cf fix: different case `url` function 2023-04-05 23:00:57 +03:00
Alexander Akait b2cd77908e
Merge pull request #16864 from janlent1/fixnativecssparsingissue
Fix faulty css parser processing
2023-04-05 19:50:26 +03:00
Alexander Akait 7c7ca776a2
Merge pull request #15812 from noreiller/fix-experiments-css-at-rule-nested
fix(css parser): handle nested atRule
2023-04-05 19:47:43 +03:00
janlent1 d511c9feef
Always add a ) when using pseudofunctions 2023-04-01 13:44:24 +02:00
Jan Lentmaier 4a41029d46 Adding other available pseudofunctionnames+tests 2023-03-28 07:54:20 +00:00
Jan Lentmaier 97c40376d1 Add same logic for :is 2023-03-27 08:11:53 +00:00
Jan Lentmaier 9b63cfc787 Fix test css and remove allowmodeswitch
The mode switch is not needed as :not( is not a mode switch
2023-03-26 18:14:48 +00:00
Jan Lentmaier c138b127a3 Allow multiple parameters in not(
Adds a test as well.
2023-03-26 17:31:57 +00:00
Jan Lentmaier b767e52c89 Fix if check error 2023-03-25 21:54:37 +00:00
Jan Lentmaier e10b29a2e8 Fix faulty css parser processing 2023-03-25 21:49:58 +00:00
wangqi cbc7beddfa change api trimRight -> trimEnd 2022-08-31 21:41:44 +08:00
Aurélien MANCA a842049665
test(css): add more @supports/@media cases 2022-05-27 15:21:44 +02:00
Aurelien MANCA 7b71e81aa0
fix(css parser): handle nested atRule
This will handle @media and @supports atRule identifiers and
enable the replacements of the nested rules names with the
unique ids.
2022-05-11 10:00:54 +02:00
Ivan Kopeykin 8729f2e787 set crossOrigin=use-credentials without origin check 2022-04-08 15:53:28 +03:00
Ivan Kopeykin d6d6fb584d Merge branch 'main' into feature-14072
# Conflicts:
#	lib/DependencyTemplate.js
#	lib/javascript/JavascriptGenerator.js
#	schemas/WebpackOptions.check.js
#	types.d.ts
2022-04-05 09:34:50 +03:00
Ivan Kopeykin b531eb629f fix types 2022-02-08 21:48:57 +03:00
Ivan Kopeykin f1d329cc0e use nonNumericOnlyHash function for contentHash 2022-02-01 20:10:45 +03:00