diff --git a/Cargo.lock b/Cargo.lock index 3bbded2..1520fd4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3171,18 +3171,18 @@ dependencies = [ [[package]] name = "rspack_allocator" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e97ab1e497426ebfb97171c97ad69e26b6e30351e16b27ec23a7932c67bb019b" +checksum = "d78bda13a35771ed9d0ac92b60984c4f7d01c59469eaa3416edacf0fac5992d7" dependencies = [ "mimalloc-rspack", ] [[package]] name = "rspack_base64" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9072309149193ce8e552d766c887f19b239b549a05e65afec786c8384c3e9bff" +checksum = "41e857158fe0d619df3a4cf16a1256d42361c001c90a99e0b627acc61a095a46" dependencies = [ "base64-simd 0.8.0", "regex", @@ -3190,9 +3190,9 @@ dependencies = [ [[package]] name = "rspack_binding_api" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d900c005c4ee177434180cbaa40bf04e25789210c2852b12a3f849f954d183ff" +checksum = "f8a39198f26176aa7b5e0bb48c4ff094a3af158ff9d5819def01b92352687d18" dependencies = [ "anyhow", "async-trait", @@ -3291,27 +3291,27 @@ dependencies = [ [[package]] name = "rspack_binding_build" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af32e7c47195fe86f8256183c4bd248baf1b6837780bdbdaa5d06fcc93860cfb" +checksum = "8ac83379e9a250422535b5bd15be06cf647c6733908278ed909c2490ba0466f6" dependencies = [ "napi-build", ] [[package]] name = "rspack_binding_builder" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a8d3ad30e54166d67bd56c7fad5194cc0ea30df1443505076a58821385eeb00" +checksum = "6504e8a4ddd63b88255374272a82db1f91bf403a2e99a4d475d2ae881f4b1d7f" dependencies = [ "rspack_binding_api", ] [[package]] name = "rspack_binding_builder_macros" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07bf588a9f64d53ea0e4aea83d45bc3aafa46ac0088d7066acdbbdd52666f1ad" +checksum = "428d522cb0b20cfa449fc9be344cfe37b85cf558201113241e14cf07c27dba71" dependencies = [ "proc-macro2", "quote", @@ -3321,9 +3321,9 @@ dependencies = [ [[package]] name = "rspack_browserslist" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86096442475026bd6ad6e140c78da6544908a8e5549f8a0602e46d38f8f1222f" +checksum = "5df08571b40f09f55dcd14809244fdc5e3fdb861f404d60d6f4adcb914079842" dependencies = [ "browserslist-rs", "lightningcss", @@ -3332,9 +3332,9 @@ dependencies = [ [[package]] name = "rspack_cacheable" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d81494cde1a2b0d0167857b134ade4983c69232033bdb999977efe699f679e4b" +checksum = "0b7e91df6f35fd16ac15d7c3abff25372a035515e2d29355ae191decaa0ab3be" dependencies = [ "camino", "dashmap 6.1.0", @@ -3357,9 +3357,9 @@ dependencies = [ [[package]] name = "rspack_collections" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10d3d55f9cfad661c8783c636cd0ad0132d6b8784fbd49e525432c47ee07e71e" +checksum = "24e6b9c4a773aea1efdbedc6a3168b17380f8052dd74f519796e328db420b2f0" dependencies = [ "dashmap 6.1.0", "hashlink", @@ -3372,9 +3372,9 @@ dependencies = [ [[package]] name = "rspack_core" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d14427ccfecaf27dc1a6bd662f687e433431a1506d23eb1f77a4b5cd83748c8e" +checksum = "725444500505823b818898a67b8f3e8af46123d129148bdc91c7fac22f592011" dependencies = [ "anymap3", "async-recursion", @@ -3448,9 +3448,9 @@ dependencies = [ [[package]] name = "rspack_error" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b289041b9927790402b1ab81b21b899eaae55e7c0a94cbc605d063c8c1f7dd42" +checksum = "2a785f69b15b95946fba359089e3b3e878f3311adc6a9782bcc7cc9f9d1cca24" dependencies = [ "anyhow", "cow-utils", @@ -3473,9 +3473,9 @@ dependencies = [ [[package]] name = "rspack_fs" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbb792c1e0abe355ece2953513b7c5bf861f972838d04fc7284f77985f943f69" +checksum = "e3e2a0fb2021ee6f82cd2b231851717d4526f6067e7cc2a147931c3e42121890" dependencies = [ "async-trait", "cfg-if", @@ -3495,9 +3495,9 @@ dependencies = [ [[package]] name = "rspack_futures" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa9d2427458bea7503cc063656ac93d05e8ee81b5a8fa9f51f9c315675caa7fb" +checksum = "485b27e47e6d211431238f787ed60b3770f981d479c89a00650aa87b1e6c9e8c" dependencies = [ "rspack_tasks", "tokio", @@ -3505,9 +3505,9 @@ dependencies = [ [[package]] name = "rspack_hash" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f18e4c17cdaa929c36039e0320732c31452cb325ecf43998ba12799ccdf2ef91" +checksum = "ecd332418d9014fc81278894829af2b501efeefcb76cc27de101cd1d9c911aa9" dependencies = [ "md4", "rspack_cacheable", @@ -3518,9 +3518,9 @@ dependencies = [ [[package]] name = "rspack_hook" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d83bf983facf650f55ee572c45b6dad71f936a0c4331b5cc2d3a9489b72f72" +checksum = "d7c0714e07637e0c0625130ab84e73737fc34f97a72cd5700497aaa569038a94" dependencies = [ "async-trait", "rspack_error", @@ -3531,9 +3531,9 @@ dependencies = [ [[package]] name = "rspack_ids" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03c54773a114bcc59c2c4c331c4d04fd543d78a499bd65847ffeb9645a58e660" +checksum = "3c260e1aaeaa4629c63ffad9f8710ed8997895ca741b9f5a04a4d2ea6525f246" dependencies = [ "itertools 0.14.0", "rayon", @@ -3549,9 +3549,9 @@ dependencies = [ [[package]] name = "rspack_javascript_compiler" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5304debbfd682f98699ea7969c8bc55b746909fbe8efdb0000d1e271c8b9d6d" +checksum = "0acd67bb854d8693c23e1d15acb28b0801a0f452a775d3b1421e6a2070f686bb" dependencies = [ "anyhow", "base64", @@ -3576,9 +3576,9 @@ dependencies = [ [[package]] name = "rspack_loader_lightningcss" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57dc7cb6fe1e305d182c899f25f34f8e2ff5e92d1f32939a0414d2d75e440f1a" +checksum = "efad156a482e65d5a0e4563daa23bb5cba9e3eae6dc0f79d26a28746898efe7b" dependencies = [ "async-trait", "derive_more", @@ -3598,9 +3598,9 @@ dependencies = [ [[package]] name = "rspack_loader_preact_refresh" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82cb4bebf4f5b20592daadb87755c1f324872755481f0db9f5d8ec98b38cdcfb" +checksum = "6fc874c2e9800302b45bcdae56df803e6d0dfe1983221f4978dc212920713d94" dependencies = [ "async-trait", "rspack_cacheable", @@ -3613,9 +3613,9 @@ dependencies = [ [[package]] name = "rspack_loader_react_refresh" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e682f498742c45935f173e887d495f560905b5ac46c0f6df78e3c5e97a826d1" +checksum = "8a3bce52a02e085f2d90d18fa43242606af6322af8b6bf8eec09d2580fb81e6d" dependencies = [ "async-trait", "rspack_cacheable", @@ -3628,13 +3628,14 @@ dependencies = [ [[package]] name = "rspack_loader_runner" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793991e6988bcc54252a8513a982002e2a5d7dfa0ce7cda032d4febd2754139c" +checksum = "3dfddb259f63d79734f5788598195a792a7744541dc8c92d035d478b21f28c7c" dependencies = [ "anymap3", "async-trait", "derive_more", + "memchr", "once_cell", "rspack_cacheable", "rspack_collections", @@ -3652,9 +3653,9 @@ dependencies = [ [[package]] name = "rspack_loader_swc" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c9a9333089f72585546bcdec3eb8f9431a29ea54b8fb7e79e1f12d542cc2d8f" +checksum = "d9da6e4667867994828a0d84c3c9710b152f05e19b366115fd568467fa76ad52" dependencies = [ "async-trait", "either", @@ -3681,9 +3682,9 @@ dependencies = [ [[package]] name = "rspack_loader_testing" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "932d2889f9df50793b41c613fb0de4020c22e12533fa77639bec516b02825f57" +checksum = "ee2f8e3e64bf7dda5c63ffcad27626a8ecbae8fa2ecc40a44eba0256fd1617a8" dependencies = [ "async-trait", "rspack_cacheable", @@ -3695,9 +3696,9 @@ dependencies = [ [[package]] name = "rspack_location" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e02b125286d4840f32cd21437e75cb4240508cae3367df6b3ec8c39624ad45b9" +checksum = "e9d6bc12bb6e0d79f738c4f294c5678a7e97c5c95781e952145500c2e366fba2" dependencies = [ "itoa", "rspack_cacheable", @@ -3706,9 +3707,9 @@ dependencies = [ [[package]] name = "rspack_macros" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4eddcab6a2361fe0f13759e0fe5febb25f8d29e9c587950eda6b052f246340ec" +checksum = "ee9a1858c954e5cfac71e0117ec296b3764e8c1ec51da98f1c8c787993a78f20" dependencies = [ "proc-macro2", "quote", @@ -3717,9 +3718,9 @@ dependencies = [ [[package]] name = "rspack_napi" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "699232e52367d0ed70e2b244018ca59cbf504cfc313f1c5e55058fe7059a9b77" +checksum = "b4f99f6d4084b84ffc2767ea412f15fe9a7c6d1b0bd0caeae4d5f06b0493ffdf" dependencies = [ "napi", "oneshot", @@ -3730,9 +3731,9 @@ dependencies = [ [[package]] name = "rspack_napi_macros" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b787bd46004970baca01300adc6692b9d7348e9e1f201a69cbf28f035e0553" +checksum = "d315331a93e78f91616c6710c93b7828c0995d1fdfa368e0604a59847565963b" dependencies = [ "proc-macro2", "quote", @@ -3741,9 +3742,9 @@ dependencies = [ [[package]] name = "rspack_paths" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "540c7bd9eaa9365026f2917a4e88e78e9106c14f5ed45fa6b9d6797d40ebcf94" +checksum = "972775ac3f30969baee1649b595f96f3e3be788db09fa52b753ee4870610e2cb" dependencies = [ "camino", "rspack_cacheable", @@ -3751,9 +3752,9 @@ dependencies = [ [[package]] name = "rspack_plugin_asset" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5458758a375535dde15850b1567c8b2338bffe5b5d93f948e459151591dffe38" +checksum = "609b0374124b078310f8307ea821b4980bcfb48673e739cc62934a02c3519767" dependencies = [ "async-trait", "mime_guess", @@ -3772,9 +3773,9 @@ dependencies = [ [[package]] name = "rspack_plugin_banner" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d06dfbe73111a995ca194cf6d6906818987fe10f2306c142d55abc785aa346a" +checksum = "2a34d31dc6f095ef10241f5f2eea778cf1e0cf09f08b55d2bbff7badc756fc8a" dependencies = [ "cow-utils", "futures", @@ -3788,9 +3789,9 @@ dependencies = [ [[package]] name = "rspack_plugin_circular_dependencies" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaf2b3b4ad242312c51ac0f985865916651c2e05463b29305e19de3eceb95773" +checksum = "db83740b775aa7ce0b2d7eae9895e3f28bab5b492c5c2c92134067fb44ca53a7" dependencies = [ "cow-utils", "derive_more", @@ -3807,9 +3808,9 @@ dependencies = [ [[package]] name = "rspack_plugin_copy" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c3d97e313a22ece6bf6bcfa7ec40bb14e3e938b785800b499968eaae99142a9" +checksum = "a9d2eecd02fe5f5b1413c74daf0a1c2216118fe1eb4476968b1059ba5d19f01c" dependencies = [ "dashmap 6.1.0", "derive_more", @@ -3829,9 +3830,9 @@ dependencies = [ [[package]] name = "rspack_plugin_css" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5f7aadef47204dbc58a5d203b8a6c5867f5c27766fd505f002705447d6fcd92" +checksum = "61ce3ad942429b87b20aed97bbddc2d892a6781c5034151b313f11a36d6ddb02" dependencies = [ "async-trait", "atomic_refcell", @@ -3859,9 +3860,9 @@ dependencies = [ [[package]] name = "rspack_plugin_css_chunking" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b50ed18c28b185e86929c18c3487918b2c91673258df92b18453db4a0ebd0546" +checksum = "232497ac1313394e426640b15f0d5eb86a179f23a76dd0e51c2c82bbe4a212a7" dependencies = [ "indexmap", "rspack_collections", @@ -3876,9 +3877,9 @@ dependencies = [ [[package]] name = "rspack_plugin_devtool" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4861ba49fe6f918b8b7d9b2aef941775f40d3b7ec6ff72dacfcec3bc99879527" +checksum = "64356841da74093045e9ca7d03cc122152db95d2b421d2f4ec2cefcfcf7fdc08" dependencies = [ "cow-utils", "dashmap 6.1.0", @@ -3905,9 +3906,9 @@ dependencies = [ [[package]] name = "rspack_plugin_dll" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9496b6b614bc0a462282b6fe107d41890f99d1e393232cc5c4d9dcdd259c5d9" +checksum = "27a150799ed8f03af87aa7b398f20452390c0412c030c1c7354a5deb520aa7d0" dependencies = [ "async-trait", "rspack_cacheable", @@ -3927,9 +3928,9 @@ dependencies = [ [[package]] name = "rspack_plugin_dynamic_entry" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb3f5af1f74fec00294a3167c6bff7408e5f860e704fcca073dc3400c65b220" +checksum = "5603f9dffb999aaa94ab60ed7389ecf98147e00e18f606e261af204a46853bbf" dependencies = [ "derive_more", "futures", @@ -3942,9 +3943,9 @@ dependencies = [ [[package]] name = "rspack_plugin_ensure_chunk_conditions" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fdcbc3c5b87e7474c415b339e7a44c7908bc4efeaba4519c2e682eed517273a" +checksum = "b35a1099e91b9f4bee6e134fe2c18d38e32833030b7eb91a05af882a663528d2" dependencies = [ "rspack_core", "rspack_error", @@ -3955,9 +3956,9 @@ dependencies = [ [[package]] name = "rspack_plugin_entry" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37173dbb21ef83b50d52cc4ebd0c4afe3da9e76624ec48a90fafcb6ac921afcb" +checksum = "063cc086b81bd7f7e630b54b7c1a2af5c11b46ee86d2061adffa4759ca0455ab" dependencies = [ "rspack_core", "rspack_error", @@ -3967,9 +3968,9 @@ dependencies = [ [[package]] name = "rspack_plugin_externals" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c87e3db44169ccd8cc6b6c5425be50285f9bece0ca0ecd36938b6e68571f0a0" +checksum = "a7c130dc4f259df57e6386580e5d2771ea7d82678d4c9518cbf75b040803bf8d" dependencies = [ "regex", "rspack_core", @@ -3982,9 +3983,9 @@ dependencies = [ [[package]] name = "rspack_plugin_extract_css" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27976fc9d076cdffbac26151a22fa900d9c60d41ad5235c5816959a538a45fa3" +checksum = "bf91ee243be73404056c2320423e14198fe9ae77d859ff83d79b304a602094ef" dependencies = [ "async-trait", "cow-utils", @@ -4009,9 +4010,9 @@ dependencies = [ [[package]] name = "rspack_plugin_hmr" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89d67de3b57f7ee54d010be34816940c20cf3caee0812ebe53b698f0137e1941" +checksum = "62f89a75c21cd450798fdbc05d4164a4b1aa2413f423789825140f3fe311dd31" dependencies = [ "async-trait", "cow-utils", @@ -4032,9 +4033,9 @@ dependencies = [ [[package]] name = "rspack_plugin_html" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60e9e748a493bdf6559482afe515142a71a32efebeac9b185dffb01622328f72" +checksum = "5b16c2b709c575d7dca842fa66324856281e3cc3244aa85074262c87b8a46878" dependencies = [ "anyhow", "atomic_refcell", @@ -4063,9 +4064,9 @@ dependencies = [ [[package]] name = "rspack_plugin_ignore" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "584ba3fc8bb4cdbe0d4d905e29c5867bb4ce8703c494a471b5ce659811103d69" +checksum = "4307e91d1cc90d7a3fbe4e2c4ba77985f0c30e97106675f7520a3c57f2a56aaa" dependencies = [ "derive_more", "futures", @@ -4078,9 +4079,9 @@ dependencies = [ [[package]] name = "rspack_plugin_javascript" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af23c8099c9435ddb2873526d21cb552a2b9c0dce65aa4939d923d1718304267" +checksum = "ed16d274c5c6a3aa8227567496752d0bbd1de7b3c07700c1e90e5c6daff6d30d" dependencies = [ "anymap3", "async-trait", @@ -4123,9 +4124,9 @@ dependencies = [ [[package]] name = "rspack_plugin_json" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebb201bdefb4f51221898b0259b78e78c4c91ae91f41340ba3867c7736f6afdc" +checksum = "0032a6645db62a6dd71fde6912adf647ec9321260eb40f544bcc36827a659373" dependencies = [ "async-trait", "cow-utils", @@ -4139,9 +4140,9 @@ dependencies = [ [[package]] name = "rspack_plugin_lazy_compilation" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c949f238d0729567089f0eda82dbbf0751daf3bc3d1e9e8e9f6919ff89fdf38" +checksum = "c425e7ed0713d58deb0c4697f09275fddcf7872c7314d4f04d023b6f8cad0434" dependencies = [ "async-trait", "rspack_cacheable", @@ -4160,9 +4161,9 @@ dependencies = [ [[package]] name = "rspack_plugin_library" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5959bbaac04c14c017e063ddfdc129e8d170ecf647572ca5facc84122a60822" +checksum = "640514a22fbee1a1a4a5a889d4c7a9fedf4edc21ee950ae84e5d9b1fe163e72a" dependencies = [ "futures", "regex", @@ -4181,9 +4182,9 @@ dependencies = [ [[package]] name = "rspack_plugin_lightning_css_minimizer" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f56050223dea874af1a78712db0a63f89121749aff35813f60df009627f77d76" +checksum = "64cf4b3af1bc2beeb3c7593e9df7b0d2a416a25a781a8ad3c7575757cad7b5b9" dependencies = [ "lightningcss", "parcel_sourcemap", @@ -4200,9 +4201,9 @@ dependencies = [ [[package]] name = "rspack_plugin_limit_chunk_count" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09c9f60975dbe304f30d4e852508e256c06ef6913898ffd27ba517c0ebf49b90" +checksum = "489f7d67061312c73f38f80ae03fd5712eb5e45379d4221352767372454fd7df" dependencies = [ "rspack_collections", "rspack_core", @@ -4213,9 +4214,9 @@ dependencies = [ [[package]] name = "rspack_plugin_merge_duplicate_chunks" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9204b016b4727923be188c1060aaaccdb24197abbbb6a3d6a7617c2ff9f182b7" +checksum = "42f7bd248a104b6be9148f9662ab285e7afbabbf3b2fa87a589b3755b50d6401" dependencies = [ "rayon", "rspack_collections", @@ -4228,9 +4229,9 @@ dependencies = [ [[package]] name = "rspack_plugin_mf" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3ea0ff2bc7b50069776d5a40b216f9fd74396aa337a5cbc43117d3d73a699cb" +checksum = "adc1900348e3fec60e54f59e04da546a0c8d190b0b30b9a5fed7ea10217d6889" dependencies = [ "async-trait", "camino", @@ -4258,9 +4259,9 @@ dependencies = [ [[package]] name = "rspack_plugin_module_info_header" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a8a0f81160ee4fc64b27491737b184b320be722de2c8bb3f60831d2d7629488" +checksum = "b4df04d22761a0c9e9c5d7e057912d09d5ccd9f2cc2bed9f8fa0da77f41ada14" dependencies = [ "regex", "rspack_cacheable", @@ -4277,9 +4278,9 @@ dependencies = [ [[package]] name = "rspack_plugin_module_replacement" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4adfd0f7b80a1f206c6074a6fceb9bb743b1e724068f510dd3faab65c6e086b" +checksum = "e7f5b081159f4ce79b214ebef2ccb7e8908adfafd166ef5c9ef6059ddb657f50" dependencies = [ "derive_more", "futures", @@ -4294,9 +4295,9 @@ dependencies = [ [[package]] name = "rspack_plugin_no_emit_on_errors" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "761470ec49029ed3ee9505edbcaba0209b6ebcd1a23e67807ee990cf4b8ef07b" +checksum = "aa8470d2d8dd8484bc4ac9a2a96935ff09474667c56266123614e87fe33afa4c" dependencies = [ "rspack_core", "rspack_error", @@ -4306,9 +4307,9 @@ dependencies = [ [[package]] name = "rspack_plugin_progress" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11284e5337a76a71c757f7f7d0a9ebdb083401bf21b37a0789af23eb0a1976ad" +checksum = "d94dd161a3d7b52d8ac15b4a9dbef8b124899cab56781af2df6988dfa91efee9" dependencies = [ "futures", "indicatif", @@ -4322,9 +4323,9 @@ dependencies = [ [[package]] name = "rspack_plugin_real_content_hash" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "336c9b09a7df29f6f218a67265f798ad34ce8187540848497e21b80dc8f26199" +checksum = "38eadd5568ea776cda1f905e53fd07800fb934f4e1edcaf992eda35f3bc6e58d" dependencies = [ "aho-corasick", "atomic_refcell", @@ -4345,9 +4346,9 @@ dependencies = [ [[package]] name = "rspack_plugin_remove_duplicate_modules" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5c767377ef8c171350bf7936f347b39c72a81be05ea552cee81e310f4aed587" +checksum = "7615657829fff6df9e0fd25a45f8e7ea13c0acafc9465f870670f2b0ea825428" dependencies = [ "rspack_core", "rspack_error", @@ -4358,9 +4359,9 @@ dependencies = [ [[package]] name = "rspack_plugin_remove_empty_chunks" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "062a3f554de4088a074a5f549153cb16280a17d714707a84eea8c33bb4bb7e1a" +checksum = "2af87ae6617d5df49987db047c3f21301caeb54a8557ee9dd9ab4a2e42591d21" dependencies = [ "rspack_collections", "rspack_core", @@ -4371,9 +4372,9 @@ dependencies = [ [[package]] name = "rspack_plugin_rsdoctor" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f25aff75c05138466d9fbd7d0ce76a7e236a63c003ab4f113ce77e61cf5b428b" +checksum = "91e9287880306f43d05161c6c8637ef6ca8a17a97d7c4d6fd0d3e184b7abd93a" dependencies = [ "atomic_refcell", "futures", @@ -4393,9 +4394,9 @@ dependencies = [ [[package]] name = "rspack_plugin_rslib" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e209aae0a10e2fab15aee31aee4f429cf9fd174a6cdb488243372bd9283b3e6" +checksum = "8df173685fec17037e09011c6bb5cbcae3a4ce6b116f9022e5420c3e6dd0e80e" dependencies = [ "rspack_core", "rspack_error", @@ -4408,9 +4409,9 @@ dependencies = [ [[package]] name = "rspack_plugin_rstest" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aff3c0f74bd162e9296e9cbf60354fd5a8f0ecb4ff8bef5608b2705c57248e83" +checksum = "c01512371ebf528a6177d32339799c94eb368ec74efe03d846b3f5e88aaffe58" dependencies = [ "camino", "regex", @@ -4426,9 +4427,9 @@ dependencies = [ [[package]] name = "rspack_plugin_runtime" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7d718b451d946f56e98a9d090836cdc489c8ce6e532b3ac2e8f06b94bf6bddf" +checksum = "5b529351c842e483b24a6cd505289cc6cb472ae7a9afa0b53e786e9b273cf98d" dependencies = [ "async-trait", "atomic_refcell", @@ -4453,9 +4454,9 @@ dependencies = [ [[package]] name = "rspack_plugin_runtime_chunk" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6f20afc08281fdb6f9e9aedd436768ec4720cd9e179a756f13c8e2e0f15f783" +checksum = "cd8f67e8ebf4e0e1e995584e7ee643b4d614420d7b4cb0d47cc6a9435b9f7f23" dependencies = [ "futures", "rspack_core", @@ -4466,9 +4467,9 @@ dependencies = [ [[package]] name = "rspack_plugin_schemes" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6cf31577843bd58f9875fcf74dc670a1f297d80ca8cbf89e11d911ef55f91fb3" +checksum = "27274b8301498380483cd7bf5a05ed6a21d93bbf1162df89e5cb2af1fa7a2f6a" dependencies = [ "anyhow", "async-trait", @@ -4493,9 +4494,9 @@ dependencies = [ [[package]] name = "rspack_plugin_size_limits" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc0f7ba4b6e5eeed22447983e4f2c599df88ff4326346b4e4ffaa83659ce29e2" +checksum = "3acb6763a9d7302b426402a5c88899746cdcd8a044c6a5484860385150d43962" dependencies = [ "derive_more", "futures", @@ -4509,9 +4510,9 @@ dependencies = [ [[package]] name = "rspack_plugin_split_chunks" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afc9cf5396bafa773ef4cb3c29aa1803b06e6c7fefbee4d01d86e7697de5f582" +checksum = "636122040eb244476a04ce21394ddc9ea35cfd3dd9e80a35e56dec872f47e574" dependencies = [ "dashmap 6.1.0", "derive_more", @@ -4532,9 +4533,9 @@ dependencies = [ [[package]] name = "rspack_plugin_sri" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7dbb39b10a7044ce983811a7db76f106620541ad253a44d8a6722fb9aa74128" +checksum = "45f142854ee8811dbacd7a16acf56f99a3185975a1a20ef2cce83f6d4ec1ad80" dependencies = [ "async-trait", "cow-utils", @@ -4568,9 +4569,9 @@ dependencies = [ [[package]] name = "rspack_plugin_swc_js_minimizer" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "002d2415c4698f9a4a052be6cccf3bdef8293a9b27a990a3cf5dd5d6ff2c264f" +checksum = "a78c7f8084afa79a7d03314980ef081dc3cb3e4971848f8bdf86b1e1d0a2e999" dependencies = [ "cow-utils", "once_cell", @@ -4592,9 +4593,9 @@ dependencies = [ [[package]] name = "rspack_plugin_warn_sensitive_module" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8595917daac35e455ceed200b6440e977152f9769d716a96ef77f63f5179a487" +checksum = "f37cd924ecbfb25a881acbbed32e9cd3d260dccb121ac502cff43c128567a4f0" dependencies = [ "cow-utils", "rspack_collections", @@ -4607,9 +4608,9 @@ dependencies = [ [[package]] name = "rspack_plugin_wasm" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea75b55d633632e9a3f9a2d6268d3422e13432badf99af358c6db88efd9164cc" +checksum = "b5c5c8ee041c3f84302d64b4bb65d85c42ffbf9a50644f8c8eea7d0dc8ca3473" dependencies = [ "async-trait", "cow-utils", @@ -4632,9 +4633,9 @@ dependencies = [ [[package]] name = "rspack_plugin_web_worker_template" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c64faf3635560627d9f8c17f86e25db3b52fc7d6d2b9c54dda5521c7fbc85d25" +checksum = "aaf1f597919ca8f19a13c76591d0cb99013dad1d774e218800acaae40a43b1db" dependencies = [ "rspack_core", "rspack_plugin_runtime", @@ -4642,9 +4643,9 @@ dependencies = [ [[package]] name = "rspack_plugin_worker" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df947fd918e0a2969aca80637386a33ab99020b567d5253caf1e69c3e92dbc15" +checksum = "f625cb9c7e3224a62dbcf6012675cadfec83cf6767b9a41caa4282903e0e9b2c" dependencies = [ "rspack_core", "rspack_error", @@ -4654,9 +4655,9 @@ dependencies = [ [[package]] name = "rspack_regex" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8358d73754064c66ce909db93d256e92d35c925059bbc45acd2bf41ac53a4bf7" +checksum = "28131d35a7abddb7d335e971d41fb972f24409145fcdb799f3325185e1a2a2dc" dependencies = [ "cow-utils", "napi", @@ -4708,9 +4709,9 @@ dependencies = [ [[package]] name = "rspack_storage" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92a725d5cbf8ee7655ce65d7adf13eba0018a6929c0f6b91d53b070c4071aa81" +checksum = "dedbf1233311f58c4c1191feebb23aee6556f52bacf75db45d2d723140af5b64" dependencies = [ "async-trait", "cow-utils", @@ -4727,9 +4728,9 @@ dependencies = [ [[package]] name = "rspack_swc_plugin_import" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78fafc85626725d74cb2d7f0e9fe47620581cacf46e1657567c40fe43194d9a5" +checksum = "1b535af82451ab4fb9c18c826596784bc24db2bdecd9d9ef123bd5a7218514bd" dependencies = [ "cow-utils", "handlebars", @@ -4741,9 +4742,9 @@ dependencies = [ [[package]] name = "rspack_swc_plugin_ts_collector" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30c1ef476764277e175e2ad64d97f1b51848e5c1b3fb16d3705c31380b392cb7" +checksum = "8e8e92d86609bb5115be9d43b27e77842175007b4a3a0a0a51fa982ccd7550d5" dependencies = [ "rustc-hash", "swc_core", @@ -4751,18 +4752,18 @@ dependencies = [ [[package]] name = "rspack_tasks" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f34d274cf3d746b2085cbda457fabf0f334c16929458339dbb889ba46795916e" +checksum = "a3fc91fb1e6e848d4be1f9efaac14856e2a44e1fc71589c9d6ea370d2f2bc2b1" dependencies = [ "tokio", ] [[package]] name = "rspack_tracing" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05a73cad093e52086789647d5e374d84457a6ee01c9ca672d4b11417a0ffac09" +checksum = "c9819d1d7a39dc2e4d2ce199ae9bb199cba4c4e4901cc988a728d9b84ce4e0a5" dependencies = [ "rspack_tracing_perfetto", "tracing-subscriber", @@ -4770,9 +4771,9 @@ dependencies = [ [[package]] name = "rspack_tracing_perfetto" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f76587da965aceadb0fedf5b672a120dee492f4c53419059322d5517b3f9694b" +checksum = "574f3172a31cc265466922d475738c59eb4a4e074bbd603c624ccc67d5cf86fb" dependencies = [ "bytes", "micromegas-perfetto", @@ -4783,9 +4784,9 @@ dependencies = [ [[package]] name = "rspack_util" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02035a701b063487d23e49460ce9cfb63a02db0ecd4b1dc5505a504f933dbf5e" +checksum = "dd3c0cd7e98689a5e6ecf1950916e3ded971763909c3954d55236405f0acf7ab" dependencies = [ "anyhow", "bitflags 2.9.3", @@ -4815,9 +4816,9 @@ dependencies = [ [[package]] name = "rspack_workspace" -version = "0.5.0-beta.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c541bb9ac8f6a2f76982e068b29999fda99c90f52c8ff9bf4b5e7793ec390050" +checksum = "c09bd5a20504a1d59d5d84c080bdda0ad35e08fd620932ba6f950cfa9f199fac" [[package]] name = "rustc-demangle" @@ -5191,9 +5192,9 @@ checksum = "b7401a30af6cb5818bb64852270bb722533397edcfc7344954a38f420819ece2" [[package]] name = "swc" -version = "34.0.0" +version = "35.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f255e0dc84919daf87b343bc524234b235905dd63450fb63e9c4c55bfd68dd5" +checksum = "405fab2e64e8585034267a4b073118f592ace283dcb96f7b9c0ffde177c67084" dependencies = [ "anyhow", "base64", @@ -5299,9 +5300,9 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "31.0.0" +version = "32.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2882f7c90017a582df1c8cf08f06447a7d34e4042b59eea95e8b3306c8b0722c" +checksum = "e23018058d027c09b1aaf49d0e5939daa3ea7ca0f39f166f08d170352e1a1cc6" dependencies = [ "anyhow", "base64", @@ -5358,9 +5359,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "35.0.0" +version = "36.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2227216559bab16ea85598b846e584dac9b94c83686eb0404340ea69f4cba37d" +checksum = "84c7646f17f3a99183d22f804152a3aec4eb0f9c395bdeacd4a7531527d596bf" dependencies = [ "par-core", "swc", @@ -5387,9 +5388,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "14.0.0" +version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5d8d26e697ce58654f0816890af7a28efd8660c154b613acefa2d3727e8ec93" +checksum = "65c25af97d53cf8aab66a6c68f3418663313fc969ad267fc2a4d19402c329be1" dependencies = [ "bitflags 2.9.3", "bytecheck 0.8.1", @@ -5410,9 +5411,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "16.0.0" +version = "17.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b3a46868f249b86a74f91774c8faf12340abb86ba7c3ff152bdc7a8f94011b6" +checksum = "b91da8222bd2e868a6977ef402b3ca5c29a41d18cd84772441d9e06ec95ded1f" dependencies = [ "ascii", "compact_str", @@ -5445,9 +5446,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_bugfixes" -version = "25.0.0" +version = "26.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffef0b48ddda013679af17ea3a959fb39bb8e9012818dcd4808bcd92129d0f78" +checksum = "476691e063132a2629471189780223492c45dfc5b105fd8081684bce03fcc2ab" dependencies = [ "rustc-hash", "swc_atoms", @@ -5463,9 +5464,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_common" -version = "20.0.0" +version = "21.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b443d7e2dff665a451392a4f1c21b9b0ed547fffb5fe167c3a3b6ec36a174de" +checksum = "2949ac4924597be747348639eadedf8e54818fb26641f050d3d78361b15d1e0d" dependencies = [ "swc_common", "swc_ecma_ast", @@ -5475,9 +5476,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2015" -version = "25.0.0" +version = "26.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cd5f7fa8e58bd50867c258913438e534124d71eafaee67f725a588a6ae3cb58" +checksum = "8c2d7bf2c6a6b2ce2453f52a3f90b82f0cfa9525c7622592acf1ce847673af5c" dependencies = [ "arrayvec", "indexmap", @@ -5502,9 +5503,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2016" -version = "24.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "daed535b0950ff6df53f469295ef8a0e84bb7d00570efd8555a77470f0ead993" +checksum = "681559e1246cca71bfd3554e369e6ea73f9ccaed3697b8a6600b73d4a6d4a2b5" dependencies = [ "swc_common", "swc_ecma_ast", @@ -5518,9 +5519,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2017" -version = "24.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27aa6b91e628383adc764589b5d700c0001fc2cf52736b5fb72f9287c2c14cc5" +checksum = "8066d91752055dd73b3fbca713c678569a58acd072d31c5dc30c9ac881b95d76" dependencies = [ "serde", "swc_common", @@ -5534,9 +5535,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2018" -version = "24.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db98e87a9285fa949e4cb686b409849dd3b9bffd64824fa5319e51d3fe88a486" +checksum = "735b1d1ea60be161bddeca4373edfbba29dcf00e1be8a846f19c8692fc2b703f" dependencies = [ "serde", "swc_common", @@ -5552,9 +5553,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2019" -version = "24.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9db0727feeb08e75f2cb61ba60063f758035e595cc3a54232c19e6ddbfff1995" +checksum = "0e34d4a9667211f79529e298d7f01b54dd17edcf0ee345da96c5d9269df859f9" dependencies = [ "swc_common", "swc_ecma_ast", @@ -5567,9 +5568,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2020" -version = "25.0.0" +version = "26.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "392c2f1bd56b71018249d32be0608e563dd28604493907ee68827f005c9aa410" +checksum = "7ffa90402a30e7d7b01f6c8e8105ffac7e003337b127c39279e872f7f42a6f47" dependencies = [ "serde", "swc_common", @@ -5584,9 +5585,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2021" -version = "24.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d932286798c909f6e167cd3ee1def665e82279798b2a783c74417b6a3b866ec" +checksum = "55969e109ac2e987548b0295ffd77553dc13a50e19ada2922d90888f3958ad22" dependencies = [ "swc_ecma_ast", "swc_ecma_compiler", @@ -5597,9 +5598,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2022" -version = "25.0.0" +version = "26.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43974853b33c3582b9ac97ee17605c3fae72f02e1260f93dccc6da9e8c6948bd" +checksum = "2dfba84b71f681f69d83274f9c275424eaf5757ad247ddda3a3c4195c7584583" dependencies = [ "rustc-hash", "swc_atoms", @@ -5618,9 +5619,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es3" -version = "21.0.0" +version = "22.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cfd800a81e5ea2af58edb7e3b478c4d4cc8883d39412ff8f3be741b47125aa6" +checksum = "248256b4708793bc05ddd67a3e5f5096fcb10349ffb147697bddd368311928f3" dependencies = [ "swc_common", "swc_ecma_ast", @@ -5632,9 +5633,9 @@ dependencies = [ [[package]] name = "swc_ecma_compiler" -version = "2.0.0" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ec83cdd0f63377548117c270997815cb5414a63314b0c40795cbf66273a378" +checksum = "af74a91e65d8931aad16939c1be84e6ba9540642573a3479aeed22a52f83abb6" dependencies = [ "bitflags 2.9.3", "rustc-hash", @@ -5650,9 +5651,9 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "20.0.0" +version = "21.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d20518c036caa786e701b875004f9f07c04ffa7371d75c1a36593290fc0c8a97" +checksum = "bf730dc1404ebc2fc6ccbb9e0aa5f25b3a89bd477f8ca79d4fe8257eb0c87742" dependencies = [ "phf", "swc_common", @@ -5663,9 +5664,9 @@ dependencies = [ [[package]] name = "swc_ecma_lexer" -version = "22.0.2" +version = "23.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69ec39d3c46e3a76129ad5b7032d509240fb150cf1a2e8a57b368bfd5ec3f9cd" +checksum = "5ce0ddc31928f622709555e3fd105e0ae679897c583f5d8a1df5236650fde859" dependencies = [ "arrayvec", "bitflags 2.9.3", @@ -5708,9 +5709,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "29.0.0" +version = "30.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e966ffac5cb6867e117d945bb5726d9a617c591ba14681da08f19bbbcabbc8b8" +checksum = "142e41bb890fa5d2b2b3f211f2a125e15cf0188f4413770270d924631f9e9efb" dependencies = [ "arrayvec", "bitflags 2.9.3", @@ -5744,9 +5745,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "22.0.3" +version = "23.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a43a77589c03110cb7f749b0e3feb8a75c5a81e9e539bde2873ddd5072fcb13" +checksum = "9166873bb660bed50b5f422233537d3e946336398570a4a13e57d8c63d6a01c5" dependencies = [ "either", "num-bigint", @@ -5760,9 +5761,9 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "29.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63be99d734422161448b851bc91f498a587f97485d99731456c790692863c804" +checksum = "825087e27292bf5f41760cab1ccabaa60523c6ad27a02bee229a4ad95679d1ad" dependencies = [ "anyhow", "foldhash", @@ -5785,9 +5786,9 @@ dependencies = [ [[package]] name = "swc_ecma_quote_macros" -version = "22.0.0" +version = "23.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6be24fed75ad626f2a9e05ceaf54a46607ab544be66eb5dfc917f8b69b6f00f" +checksum = "21ad39e02fedc409e1975789343e3570ee50c858ab260c6e88465ed1fef2411e" dependencies = [ "anyhow", "proc-macro2", @@ -5803,9 +5804,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "28.0.0" +version = "29.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff3c1c19ca86718b76ae295116c489446537df9377c2e82417b96cb8cf4f853d" +checksum = "3c40214d4e00b7a8e9c4b49dcb3c5a0bb04aecfa040ea37eda7df3294498caac" dependencies = [ "par-core", "swc_common", @@ -5822,9 +5823,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "24.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2912d21bb6e1db97430b4425cc374e042057f25b5f2380f5e77319b5ebb6cb77" +checksum = "9cc6454e1cf587b1d50509116350b503e7d647dbcc41bb5be9bf9a40fd792037" dependencies = [ "better_scoped_tls", "indexmap", @@ -5845,9 +5846,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_classes" -version = "24.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5492fee931cc323f21ff197bc609371edffce687449dd1fc6e29d73848c61bc" +checksum = "c48790332195e4163f1f49713a14f91a5614048ca6638c664050fe577c3fad5a" dependencies = [ "swc_common", "swc_ecma_ast", @@ -5858,9 +5859,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "26.0.0" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cadf45054bc7eafb930f54c70d1a453540a15b5ac8868ac01f27cd90b4bc7db6" +checksum = "3aad334cdbfe00544e711af7cd0744f30b1052479ba1d95032fc5a9cc14ac0ef" dependencies = [ "indexmap", "par-core", @@ -5899,9 +5900,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "26.0.0" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "641027f2e8c4a918f51c9d6bb74a64be7b7800bdd771017c207bcc1db4225b6e" +checksum = "a3dc988f1b06f5bb96eb76f25d193329cb070a2e4be4d48c795feb54879ecc60" dependencies = [ "Inflector", "anyhow", @@ -5927,9 +5928,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "25.0.0" +version = "26.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83ce93fa2796d0b2d4cc87dcf5beb64738ae3998bf079fdd6b7df8a3dda07e2e" +checksum = "03594f8ddc69865b0835e2a8ff017bdc0becf6ef22e120f22eff7f52ddb849a0" dependencies = [ "bytes-str", "dashmap 5.5.3", @@ -5951,9 +5952,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "24.0.0" +version = "25.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4a565dbeb2e039f47b6be986cc46326b64b1858e8e213b818dacf66c1de6318" +checksum = "3a1d5b2190c134d9b5c9b4d8c0d4b23b4fb5c433a7ae470f1c2103b8ff99160c" dependencies = [ "either", "rustc-hash", @@ -5969,9 +5970,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "26.0.0" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc54283b93c61ed8b0843c1a4c4586bad04a07741e9125b40b730259ff3d7133" +checksum = "861eda08f77f8e0553f3141b5ea25879636f9edf0237e8104db6fbd81fec6598" dependencies = [ "base64", "bytes-str", @@ -5993,9 +5994,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "26.0.0" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32498fbf7f22b72cc849b594e26b5ba63def490ee307943f8c3741b26566c058" +checksum = "b07cbe8b998c19897c309245bff119beec0dda20183ed4106bb58544b3791f45" dependencies = [ "bytes-str", "rustc-hash", @@ -6011,9 +6012,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "21.0.0" +version = "22.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "695c2eba9dedd3eb11e576513d5dfd051df415a83ae3c684515e5e0e7902d07c" +checksum = "8031a4473e5366165f23766f5bc8361c45e8ed57f7475c0227147727cbaf3342" dependencies = [ "bitflags 2.9.3", "indexmap", @@ -6029,9 +6030,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "20.0.0" +version = "21.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84c3600d3ec9d59bcdab174c8dc75d5ffa96d2a3ec6739ca32e665366e101b71" +checksum = "83259addd99ed4022aa9fc4d39428c008d3d42533769e1a005529da18cde4568" dependencies = [ "indexmap", "num_cpus", @@ -6048,9 +6049,9 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "14.0.0" +version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d187b3440f20dac5d5a61aaedff585aefac9c75c1a6650abb7f25936a4f0e67" +checksum = "75a579aa8f9e212af521588df720ccead079c09fe5c8f61007cf724324aed3a0" dependencies = [ "new_debug_unreachable", "num-bigint", @@ -6087,9 +6088,9 @@ dependencies = [ [[package]] name = "swc_html" -version = "25.0.0" +version = "26.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6a6d6e639f33de93b0e4c103f688db5379b9a126b4dcf06f550f67bbc3eeec" +checksum = "45354ce2319a8f8585d18bf2590b93876b962507316d7118244ae7d9ca517244" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -6111,9 +6112,9 @@ dependencies = [ [[package]] name = "swc_html_codegen" -version = "14.0.0" +version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4eb8fc6c275fb77887f35b28ef7db5b94843d4991a28ed2b488f884bf21ea4f" +checksum = "d321188cc1279f9981681aadb77b877fc662e83a8841903f51bd501b40ab5c31" dependencies = [ "auto_impl", "bitflags 2.9.3", @@ -6137,9 +6138,9 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "29.0.0" +version = "30.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d93c66acf964066e289ed9e0349b479004b6bdb24d553af61023e004aff9feb" +checksum = "da00a4a99023fc1a66980ed262cd3cd18edc6183d0bdb2406b963d3710b62282" dependencies = [ "once_cell", "rustc-hash", @@ -6225,9 +6226,9 @@ dependencies = [ [[package]] name = "swc_plugin_proxy" -version = "14.0.0" +version = "15.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb61022f33eb711aa1644788a76b854a795e0de89c38af3c7cd6071da34bbb58" +checksum = "79e78029030baf942203f11eae0ea47c07367d167060ba4c55a202a1341366c5" dependencies = [ "better_scoped_tls", "bytecheck 0.8.1", @@ -6242,9 +6243,9 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "18.0.0" +version = "19.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52e5402d2588445033040de136d51af480963e255c823f4d56faa45829108e9f" +checksum = "e4b41ddf0ac2c0386802ca7646c8ae77bbdbe65ba32d33da0f3bf9e82430abc2" dependencies = [ "anyhow", "blake3", diff --git a/Cargo.toml b/Cargo.toml index 61aa0e2..044da49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,18 +6,18 @@ resolver = "2" edition = "2021" [workspace.dependencies] -rspack_cacheable = { version = "=0.5.0-beta.1" } -rspack_collections = { version = "=0.5.0-beta.1" } -rspack_core = { version = "=0.5.0-beta.1" } -rspack_error = { version = "=0.5.0-beta.1" } -rspack_hook = { version = "=0.5.0-beta.1" } +rspack_cacheable = { version = "=0.5.0" } +rspack_collections = { version = "=0.5.0" } +rspack_core = { version = "=0.5.0" } +rspack_error = { version = "=0.5.0" } +rspack_hook = { version = "=0.5.0" } async-trait = { version = "0.1" } rspack_sources = { version = "0.4.8" } -rspack_binding_build = { version = "=0.5.0-beta.1" } -rspack_binding_builder = { version = "=0.5.0-beta.1" } -rspack_binding_builder_macros = { version = "=0.5.0-beta.1" } +rspack_binding_build = { version = "=0.5.0" } +rspack_binding_builder = { version = "=0.5.0" } +rspack_binding_builder_macros = { version = "=0.5.0" } napi = { version = "=3.2.2" } napi-derive = { version = "=3.2.2" } diff --git a/crates/binding/index.d.ts b/crates/binding/index.d.ts index 199f3e8..0359d26 100644 --- a/crates/binding/index.d.ts +++ b/crates/binding/index.d.ts @@ -87,20 +87,6 @@ export declare class CodeGenerationResults { } export declare class ConcatenatedModule { - -} - -export declare class ConcatenatedModule { - get rootModule(): Module - get modules(): Module[] - readableIdentifier(): string - _originalSource(): JsCompatSource | undefined - nameForCondition(): string | undefined - get blocks(): AsyncDependenciesBlock[] - get dependencies(): Dependency[] - size(ty?: string | undefined | null): number - libIdent(options: JsLibIdentOptions): string | null - _emitFile(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void get rootModule(): Module get modules(): Module[] readableIdentifier(): string @@ -114,18 +100,6 @@ export declare class ConcatenatedModule { } export declare class ContextModule { - -} - -export declare class ContextModule { - readableIdentifier(): string - _originalSource(): JsCompatSource | undefined - nameForCondition(): string | undefined - get blocks(): AsyncDependenciesBlock[] - get dependencies(): Dependency[] - size(ty?: string | undefined | null): number - libIdent(options: JsLibIdentOptions): string | null - _emitFile(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void readableIdentifier(): string _originalSource(): JsCompatSource | undefined nameForCondition(): string | undefined @@ -189,18 +163,6 @@ export declare class EntryOptionsDto { export type EntryOptionsDTO = EntryOptionsDto export declare class ExternalModule { - -} - -export declare class ExternalModule { - readableIdentifier(): string - _originalSource(): JsCompatSource | undefined - nameForCondition(): string | undefined - get blocks(): AsyncDependenciesBlock[] - get dependencies(): Dependency[] - size(ty?: string | undefined | null): number - libIdent(options: JsLibIdentOptions): string | null - _emitFile(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void readableIdentifier(): string _originalSource(): JsCompatSource | undefined nameForCondition(): string | undefined @@ -269,18 +231,6 @@ export declare class JsCompilation { } export declare class JsCompiler { - -} - -export declare class JsCompiler { - constructor(compilerPath: string, options: RawOptions, builtinPlugins: Array, registerJsTaps: RegisterJsTaps, outputFilesystem: ThreadsafeNodeFS, intermediateFilesystem: ThreadsafeNodeFS | undefined | null, inputFilesystem: ThreadsafeNodeFS | undefined | null, resolverFactoryReference: JsResolverFactory) - setNonSkippableRegisters(kinds: Array): void - /** Build with the given option passed to the constructor */ - build(callback: (err: null | Error) => void): void - /** Rebuild with the given option passed to the constructor */ - rebuild(changed_files: string[], removed_files: string[], callback: (err: null | Error) => void): void - close(): Promise - getVirtualFileStore(): VirtualFileStore | null constructor(compilerPath: string, options: RawOptions, builtinPlugins: Array, registerJsTaps: RegisterJsTaps, outputFilesystem: ThreadsafeNodeFS, intermediateFilesystem: ThreadsafeNodeFS | undefined | null, inputFilesystem: ThreadsafeNodeFS | undefined | null, resolverFactoryReference: JsResolverFactory) setNonSkippableRegisters(kinds: Array): void /** Build with the given option passed to the constructor */ @@ -350,22 +300,6 @@ export declare class JsExportsInfo { } export declare class JsModuleGraph { - -} - -export declare class JsModuleGraph { - getModule(dependency: Dependency): Module | null - getResolvedModule(dependency: Dependency): Module | null - getUsedExports(module: Module, runtime: string | string[]): boolean | Array | null - getIssuer(module: Module): Module | null - getExportsInfo(module: Module): JsExportsInfo - getConnection(dependency: Dependency): ModuleGraphConnection | null - getOutgoingConnections(module: Module): ModuleGraphConnection[] - getOutgoingConnectionsInOrder(module: Module): ModuleGraphConnection[] - getIncomingConnections(module: Module): ModuleGraphConnection[] - getParentModule(dependency: Dependency): Module | null - getParentBlockIndex(dependency: Dependency): number - isAsync(module: Module): boolean getModule(dependency: Dependency): Module | null getResolvedModule(dependency: Dependency): Module | null getUsedExports(module: Module, runtime: string | string[]): boolean | Array | null @@ -381,36 +315,18 @@ export declare class JsModuleGraph { } export declare class JsResolver { - -} - -export declare class JsResolver { - resolveSync(path: string, request: string): string | undefined - resolve(path: string, request: string, callback: (err: null | Error, req?: string) => void): void resolveSync(path: string, request: string): string | undefined resolve(path: string, request: string, callback: (err: null | Error, req?: string) => void): void } -export declare class JsResolverFactory { - -} - export declare class JsResolverFactory { constructor(pnp: boolean, jsResolveOptions: RawResolveOptions, jsLoaderResolveOptions: RawResolveOptions) get(type: string, options?: RawResolveOptionsWithDependencyType): JsResolver - constructor(pnp: boolean, jsResolveOptions: RawResolveOptions, jsLoaderResolveOptions: RawResolveOptions) - get(type: string, options?: RawResolveOptionsWithDependencyType): JsResolver -} - -export declare class JsStats { - } export declare class JsStats { toJson(jsOptions: JsStatsOptions): JsStatsCompilation getLogging(acceptedTypes: number): Array - toJson(jsOptions: JsStatsOptions): JsStatsCompilation - getLogging(acceptedTypes: number): Array } export declare class KnownBuildInfo { @@ -418,18 +334,6 @@ export declare class KnownBuildInfo { } export declare class Module { - -} - -export declare class Module { - readableIdentifier(): string - _originalSource(): JsCompatSource | undefined - nameForCondition(): string | undefined - get blocks(): AsyncDependenciesBlock[] - get dependencies(): Dependency[] - size(ty?: string | undefined | null): number - libIdent(options: JsLibIdentOptions): string | null - _emitFile(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void readableIdentifier(): string _originalSource(): JsCompatSource | undefined nameForCondition(): string | undefined @@ -441,14 +345,6 @@ export declare class Module { } export declare class ModuleGraphConnection { - -} - -export declare class ModuleGraphConnection { - get dependency(): Dependency - get module(): Module | null - get resolvedModule(): Module | null - get originModule(): Module | null get dependency(): Dependency get module(): Module | null get resolvedModule(): Module | null @@ -456,22 +352,6 @@ export declare class ModuleGraphConnection { } export declare class NativeWatcher { - -} - -export declare class NativeWatcher { - constructor(options: NativeWatcherOptions) - watch(files: [Array, Array], directories: [Array, Array], missing: [Array, Array], callback: (err: Error | null, result: NativeWatchResult) => void, callbackUndelayed: (path: string) => void): void - triggerEvent(kind: 'change' | 'remove' | 'create', path: string): void - /** - * # Safety - * - * This function is unsafe because it uses `&mut self` to call the watcher asynchronously. - * It's important to ensure that the watcher is not used in any other places before this function is finished. - * You must ensure that the watcher not call watch, close or pause in the same time, otherwise it may lead to undefined behavior. - */ - close(): Promise - pause(): void constructor(options: NativeWatcherOptions) watch(files: [Array, Array], directories: [Array, Array], missing: [Array, Array], callback: (err: Error | null, result: NativeWatchResult) => void, callbackUndelayed: (path: string) => void): void triggerEvent(kind: 'change' | 'remove' | 'create', path: string): void @@ -491,15 +371,6 @@ export declare class NativeWatchResult { removedFiles: Array } -export declare class NativeWatchResult { - changedFiles: Array - removedFiles: Array -} - -export declare class NormalModule { - -} - export declare class NormalModule { readableIdentifier(): string _originalSource(): JsCompatSource | undefined @@ -509,40 +380,16 @@ export declare class NormalModule { size(ty?: string | undefined | null): number libIdent(options: JsLibIdentOptions): string | null _emitFile(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void - readableIdentifier(): string - _originalSource(): JsCompatSource | undefined - nameForCondition(): string | undefined - get blocks(): AsyncDependenciesBlock[] - get dependencies(): Dependency[] - size(ty?: string | undefined | null): number - libIdent(options: JsLibIdentOptions): string | null - _emitFile(filename: string, source: JsCompatSource, assetInfo?: AssetInfo | undefined | null): void -} - -export declare class RawExternalItemFnCtx { - } export declare class RawExternalItemFnCtx { data(): RawExternalItemFnCtxData getResolve(options?: RawResolveOptionsWithDependencyType | undefined | null): (context: string, path: string, callback: (error?: Error, text?: string) => void) => void - data(): RawExternalItemFnCtxData - getResolve(options?: RawResolveOptionsWithDependencyType | undefined | null): (context: string, path: string, callback: (error?: Error, text?: string) => void) => void -} - -export declare class ReadonlyResourceData { - } export declare class ReadonlyResourceData { get descriptionFileData(): any get descriptionFilePath(): string - get descriptionFileData(): any - get descriptionFilePath(): string -} - -export declare class ResolverFactory { - } export declare class ResolverFactory { @@ -556,45 +403,20 @@ export declare class ResolverFactory { sync(directory: string, request: string): ResolveResult /** Asynchronously resolve `specifier` at an absolute path to a `directory`. */ async(directory: string, request: string): Promise - constructor(options?: NapiResolveOptions | undefined | null) - static default(): ResolverFactory - /** Clone the resolver using the same underlying cache. */ - cloneWithOptions(options: NapiResolveOptions): ResolverFactory - /** Clear the underlying cache. */ - clearCache(): void - /** Synchronously resolve `specifier` at an absolute path to a `directory`. */ - sync(directory: string, request: string): ResolveResult - /** Asynchronously resolve `specifier` at an absolute path to a `directory`. */ - async(directory: string, request: string): Promise } export declare class Sources { _get(sourceType: string): JsCompatSourceOwned | null } -export declare class VirtualFileStore { - -} -export type JsVirtualFileStore = VirtualFileStore - export declare class VirtualFileStore { writeVirtualFileSync(path: string, content: string): void batchWriteVirtualFilesSync(files: Array): void - writeVirtualFileSync(path: string, content: string): void - batchWriteVirtualFilesSync(files: Array): void } export type JsVirtualFileStore = VirtualFileStore export declare function async(path: string, request: string): Promise -export declare function async(path: string, request: string): Promise - -export interface BuiltinPlugin { - name: BuiltinPluginName | CustomPluginName - options: unknown - canInherentFromParent?: boolean -} - export interface BuiltinPlugin { name: BuiltinPluginName | CustomPluginName options: unknown @@ -665,6 +487,7 @@ export declare const enum BuiltinPluginName { RuntimeChunkPlugin = 'RuntimeChunkPlugin', SizeLimitsPlugin = 'SizeLimitsPlugin', NoEmitOnErrorsPlugin = 'NoEmitOnErrorsPlugin', + NormalModuleReplacementPlugin = 'NormalModuleReplacementPlugin', ContextReplacementPlugin = 'ContextReplacementPlugin', DllEntryPlugin = 'DllEntryPlugin', DllReferenceAgencyPlugin = 'DllReferenceAgencyPlugin', @@ -689,96 +512,6 @@ export declare const enum BuiltinPluginName { CssChunkingPlugin = 'CssChunkingPlugin' } -export declare const enum BuiltinPluginName { - DefinePlugin = 'DefinePlugin', - ProvidePlugin = 'ProvidePlugin', - BannerPlugin = 'BannerPlugin', - IgnorePlugin = 'IgnorePlugin', - ProgressPlugin = 'ProgressPlugin', - EntryPlugin = 'EntryPlugin', - DynamicEntryPlugin = 'DynamicEntryPlugin', - ExternalsPlugin = 'ExternalsPlugin', - NodeTargetPlugin = 'NodeTargetPlugin', - ElectronTargetPlugin = 'ElectronTargetPlugin', - EnableChunkLoadingPlugin = 'EnableChunkLoadingPlugin', - EnableLibraryPlugin = 'EnableLibraryPlugin', - EnableWasmLoadingPlugin = 'EnableWasmLoadingPlugin', - FetchCompileAsyncWasmPlugin = 'FetchCompileAsyncWasmPlugin', - ChunkPrefetchPreloadPlugin = 'ChunkPrefetchPreloadPlugin', - CommonJsChunkFormatPlugin = 'CommonJsChunkFormatPlugin', - ArrayPushCallbackChunkFormatPlugin = 'ArrayPushCallbackChunkFormatPlugin', - ModuleChunkFormatPlugin = 'ModuleChunkFormatPlugin', - HotModuleReplacementPlugin = 'HotModuleReplacementPlugin', - LimitChunkCountPlugin = 'LimitChunkCountPlugin', - WorkerPlugin = 'WorkerPlugin', - WebWorkerTemplatePlugin = 'WebWorkerTemplatePlugin', - MergeDuplicateChunksPlugin = 'MergeDuplicateChunksPlugin', - SplitChunksPlugin = 'SplitChunksPlugin', - RemoveDuplicateModulesPlugin = 'RemoveDuplicateModulesPlugin', - ShareRuntimePlugin = 'ShareRuntimePlugin', - ContainerPlugin = 'ContainerPlugin', - ContainerReferencePlugin = 'ContainerReferencePlugin', - ProvideSharedPlugin = 'ProvideSharedPlugin', - ConsumeSharedPlugin = 'ConsumeSharedPlugin', - ModuleFederationRuntimePlugin = 'ModuleFederationRuntimePlugin', - NamedModuleIdsPlugin = 'NamedModuleIdsPlugin', - NaturalModuleIdsPlugin = 'NaturalModuleIdsPlugin', - DeterministicModuleIdsPlugin = 'DeterministicModuleIdsPlugin', - NaturalChunkIdsPlugin = 'NaturalChunkIdsPlugin', - NamedChunkIdsPlugin = 'NamedChunkIdsPlugin', - DeterministicChunkIdsPlugin = 'DeterministicChunkIdsPlugin', - OccurrenceChunkIdsPlugin = 'OccurrenceChunkIdsPlugin', - RealContentHashPlugin = 'RealContentHashPlugin', - RemoveEmptyChunksPlugin = 'RemoveEmptyChunksPlugin', - EnsureChunkConditionsPlugin = 'EnsureChunkConditionsPlugin', - WarnCaseSensitiveModulesPlugin = 'WarnCaseSensitiveModulesPlugin', - DataUriPlugin = 'DataUriPlugin', - FileUriPlugin = 'FileUriPlugin', - RuntimePlugin = 'RuntimePlugin', - JsonModulesPlugin = 'JsonModulesPlugin', - InferAsyncModulesPlugin = 'InferAsyncModulesPlugin', - JavascriptModulesPlugin = 'JavascriptModulesPlugin', - AsyncWebAssemblyModulesPlugin = 'AsyncWebAssemblyModulesPlugin', - AssetModulesPlugin = 'AssetModulesPlugin', - SourceMapDevToolPlugin = 'SourceMapDevToolPlugin', - EvalSourceMapDevToolPlugin = 'EvalSourceMapDevToolPlugin', - EvalDevToolModulePlugin = 'EvalDevToolModulePlugin', - SideEffectsFlagPlugin = 'SideEffectsFlagPlugin', - FlagDependencyExportsPlugin = 'FlagDependencyExportsPlugin', - FlagDependencyUsagePlugin = 'FlagDependencyUsagePlugin', - MangleExportsPlugin = 'MangleExportsPlugin', - ModuleConcatenationPlugin = 'ModuleConcatenationPlugin', - CssModulesPlugin = 'CssModulesPlugin', - APIPlugin = 'APIPlugin', - RuntimeChunkPlugin = 'RuntimeChunkPlugin', - SizeLimitsPlugin = 'SizeLimitsPlugin', - NoEmitOnErrorsPlugin = 'NoEmitOnErrorsPlugin', - ContextReplacementPlugin = 'ContextReplacementPlugin', - DllEntryPlugin = 'DllEntryPlugin', - DllReferenceAgencyPlugin = 'DllReferenceAgencyPlugin', - LibManifestPlugin = 'LibManifestPlugin', - FlagAllModulesAsUsedPlugin = 'FlagAllModulesAsUsedPlugin', - HttpExternalsRspackPlugin = 'HttpExternalsRspackPlugin', - CopyRspackPlugin = 'CopyRspackPlugin', - HtmlRspackPlugin = 'HtmlRspackPlugin', - SwcJsMinimizerRspackPlugin = 'SwcJsMinimizerRspackPlugin', - LightningCssMinimizerRspackPlugin = 'LightningCssMinimizerRspackPlugin', - BundlerInfoRspackPlugin = 'BundlerInfoRspackPlugin', - CssExtractRspackPlugin = 'CssExtractRspackPlugin', - SubresourceIntegrityPlugin = 'SubresourceIntegrityPlugin', - RsdoctorPlugin = 'RsdoctorPlugin', - RstestPlugin = 'RstestPlugin', - RslibPlugin = 'RslibPlugin', - CircularDependencyRspackPlugin = 'CircularDependencyRspackPlugin', - JsLoaderRspackPlugin = 'JsLoaderRspackPlugin', - LazyCompilationPlugin = 'LazyCompilationPlugin', - ModuleInfoHeaderPlugin = 'ModuleInfoHeaderPlugin', - HttpUriPlugin = 'HttpUriPlugin', - CssChunkingPlugin = 'CssChunkingPlugin' -} - -export declare function cleanupGlobalTrace(): void - export declare function cleanupGlobalTrace(): void export interface ContextInfo { @@ -786,31 +519,6 @@ export interface ContextInfo { issuerLayer?: string } -export interface ContextInfo { - issuer: string - issuerLayer?: string -} - -export interface CssChunkingPluginOptions { - strict?: boolean - minSize?: number - maxSize?: number - exclude?: RegExp -} - -export interface CssChunkingPluginOptions { - strict?: boolean - minSize?: number - maxSize?: number - exclude?: RegExp -} - -export declare const enum EnforceExtension { - Auto = 0, - Enabled = 1, - Disabled = 2 -} - export declare const enum EnforceExtension { Auto = 0, Enabled = 1, @@ -823,12 +531,6 @@ export declare const enum EnforceExtension { */ export const EXPECTED_RSPACK_CORE_VERSION: string -/** - * Expected version of @rspack/core to the current binding version - * @internal - */ -export const EXPECTED_RSPACK_CORE_VERSION: string - export declare function formatDiagnostic(diagnostic: JsDiagnostic): ExternalObject<'Diagnostic'> export interface JsAddingRuntimeModule { @@ -840,20 +542,6 @@ export interface JsAddingRuntimeModule { stage: number } -export interface JsAddingRuntimeModule { - name: string - generator: () => String - dependentHash: boolean - fullHash: boolean - isolate: boolean - stage: number -} - -export interface JsAdditionalTreeRuntimeRequirementsArg { - chunk: Chunk - runtimeRequirements: JsRuntimeGlobals -} - export interface JsAdditionalTreeRuntimeRequirementsArg { chunk: Chunk runtimeRequirements: JsRuntimeGlobals @@ -863,16 +551,6 @@ export interface JsAdditionalTreeRuntimeRequirementsResult { runtimeRequirements: JsRuntimeGlobals } -export interface JsAdditionalTreeRuntimeRequirementsResult { - runtimeRequirements: JsRuntimeGlobals -} - -export interface JsAfterEmitData { - outputName: string - compilationId: number - uid?: number -} - export interface JsAfterEmitData { outputName: string compilationId: number @@ -888,24 +566,6 @@ export interface JsAfterTemplateExecutionData { uid?: number } -export interface JsAfterTemplateExecutionData { - html: string - headTags: Array - bodyTags: Array - outputName: string - compilationId: number - uid?: number -} - -export interface JsAlterAssetTagGroupsData { - headTags: Array - bodyTags: Array - publicPath: string - outputName: string - compilationId: number - uid?: number -} - export interface JsAlterAssetTagGroupsData { headTags: Array bodyTags: Array @@ -923,14 +583,6 @@ export interface JsAlterAssetTagsData { uid?: number } -export interface JsAlterAssetTagsData { - assetTags: JsHtmlPluginAssetTags - outputName: string - publicPath: string - compilationId: number - uid?: number -} - export interface JsAsset { name: string info: AssetInfo @@ -952,19 +604,6 @@ export interface JsBannerContentFnCtx { filename: string } -export interface JsBannerContentFnCtx { - hash: string - chunk: Chunk - filename: string -} - -export interface JsBeforeAssetTagGenerationData { - assets: JsHtmlPluginAssets - outputName: string - compilationId: number - uid?: number -} - export interface JsBeforeAssetTagGenerationData { assets: JsHtmlPluginAssets outputName: string @@ -979,37 +618,6 @@ export interface JsBeforeEmitData { uid?: number } -export interface JsBeforeEmitData { - html: string - outputName: string - compilationId: number - uid?: number -} - -export interface JsBeforeResolveArgs { - request: string - context: string - issuer: string - issuerLayer?: string -} - -export interface JsBeforeResolveArgs { - request: string - context: string - issuer: string - issuerLayer?: string -} - -export interface JsBuildMeta { - strictEsmModule: boolean - hasTopLevelAwait: boolean - esm: boolean - exportsType: 'unset' | 'default' | 'namespace' | 'flagged' | 'dynamic' - defaultObject: 'false' | 'redirect' | JsBuildMetaDefaultObjectRedirectWarn - sideEffectFree?: boolean - exportsFinalName?: Array<[string, string]> | undefined -} - export interface JsBuildMeta { strictEsmModule: boolean hasTopLevelAwait: boolean @@ -1024,10 +632,6 @@ export interface JsBuildMetaDefaultObjectRedirectWarn { redirectWarn: JsDefaultObjectRedirectWarnObject } -export interface JsBuildMetaDefaultObjectRedirectWarn { - redirectWarn: JsDefaultObjectRedirectWarnObject -} - export interface JsBuildTimeExecutionOption { publicPath?: string baseUri?: string @@ -1037,10 +641,6 @@ export interface JsCacheGroupTestCtx { module: Module } -export interface JsCacheGroupTestCtx { - module: Module -} - export interface JsChunkAssetArgs { chunk: Chunk filename: string @@ -1058,12 +658,6 @@ export interface JsChunkOptionNameCtx { cacheGroupKey: string } -export interface JsChunkOptionNameCtx { - module: Module - chunks: Chunk[] - cacheGroupKey: string -} - /** * File clean options * @@ -1095,23 +689,6 @@ export interface JsCompatSource { map?: string } -/** - * Zero copy `JsCompatSource` slice shared between Rust and Node.js if buffer is used. - * - * It can only be used in non-async context and the lifetime is bound to the fn closure. - * - * If you want to use Node.js Buffer in async context or want to extend the lifetime, use `JsCompatSourceOwned` instead. - */ -export interface JsCompatSource { - source: string | Buffer - map?: string -} - -export interface JsCompatSourceOwned { - source: string | Buffer - map?: string -} - export interface JsCompatSourceOwned { source: string | Buffer map?: string @@ -1123,17 +700,6 @@ export interface JsCreateData { resource: string } -export interface JsCreateData { - request: string - userRequest: string - resource: string -} - -export interface JsCreateScriptData { - code: string - chunk: Chunk -} - export interface JsCreateScriptData { code: string chunk: Chunk @@ -1143,10 +709,6 @@ export interface JsDefaultObjectRedirectWarnObject { ignore: boolean } -export interface JsDefaultObjectRedirectWarnObject { - ignore: boolean -} - export interface JsDiagnostic { message: string help?: string @@ -1186,38 +748,12 @@ export interface JsEntryOptions { layer?: string } -export interface JsEntryOptions { - name?: string - runtime?: false | string - chunkLoading?: false | string - asyncChunks?: boolean - publicPath?: "auto" | JsFilename - baseUri?: string - filename?: JsFilename - library?: JsLibraryOptions - dependOn?: Array - layer?: string -} - export interface JsEntryPluginOptions { context: string entry: string options: JsEntryOptions } -export interface JsEntryPluginOptions { - context: string - entry: string - options: JsEntryOptions -} - -export interface JsExecuteModuleArg { - entry: string - runtimeModules: Array - codegenResults: JsCodegenerationResults - id: number -} - export interface JsExecuteModuleArg { entry: string runtimeModules: Array @@ -1235,24 +771,6 @@ export interface JsExecuteModuleResult { error?: string } -export interface JsFactorizeArgs { - request: string - context: string - issuer: string - issuerLayer?: string -} - -export interface JsFactorizeArgs { - request: string - context: string - issuer: string - issuerLayer?: string -} - -export interface JsFactoryMeta { - sideEffectFree?: boolean -} - export interface JsFactoryMeta { sideEffectFree?: boolean } @@ -1266,21 +784,6 @@ export interface JsHtmlPluginAssets { cssIntegrity?: Array } -export interface JsHtmlPluginAssets { - publicPath: string - js: Array - css: Array - favicon?: string - jsIntegrity?: Array - cssIntegrity?: Array -} - -export interface JsHtmlPluginAssetTags { - scripts: Array - styles: Array - meta: Array -} - export interface JsHtmlPluginAssetTags { scripts: Array styles: Array @@ -1295,20 +798,6 @@ export interface JsHtmlPluginTag { asset?: string } -export interface JsHtmlPluginTag { - tagName: string - attributes: Record - voidTag: boolean - innerHTML?: string - asset?: string -} - -export interface JsHttpResponseRaw { - status: number - headers: Record - body: Buffer -} - export interface JsHttpResponseRaw { status: number headers: Record @@ -1319,10 +808,6 @@ export interface JsLibIdentOptions { context: string } -export interface JsLibIdentOptions { - context: string -} - export interface JsLibraryAuxiliaryComment { root?: string commonjs?: string @@ -1330,19 +815,6 @@ export interface JsLibraryAuxiliaryComment { amd?: string } -export interface JsLibraryAuxiliaryComment { - root?: string - commonjs?: string - commonjs2?: string - amd?: string -} - -export interface JsLibraryCustomUmdObject { - amd?: string - commonjs?: string - root?: Array | string -} - export interface JsLibraryCustomUmdObject { amd?: string commonjs?: string @@ -1356,22 +828,6 @@ export interface JsLibraryName { umdObjectPayload?: JsLibraryCustomUmdObject } -export interface JsLibraryName { - type: "string" | "array" | "umdObject" - stringPayload?: string - arrayPayload?: Array - umdObjectPayload?: JsLibraryCustomUmdObject -} - -export interface JsLibraryOptions { - name?: string | Array | JsLibraryCustomUmdObject - export?: Array | string - type: string - umdNamedDefine?: boolean - auxiliaryComment?: string | JsLibraryAuxiliaryComment - amdContainer?: string -} - export interface JsLibraryOptions { name?: string | Array | JsLibraryCustomUmdObject export?: Array | string @@ -1386,46 +842,11 @@ export interface JsLinkPrefetchData { chunk: Chunk } -export interface JsLinkPrefetchData { - code: string - chunk: Chunk -} - export interface JsLinkPreloadData { code: string chunk: Chunk } -export interface JsLinkPreloadData { - code: string - chunk: Chunk -} - -export interface JsLoaderContext { - resource: string - _module: Module - hot: Readonly - /** Content maybe empty in pitching stage */ - content: null | Buffer - additionalData?: any - __internal__parseMeta: Record - sourceMap?: Buffer - cacheable: boolean - fileDependencies: Array - contextDependencies: Array - missingDependencies: Array - buildDependencies: Array - loaderItems: Array - loaderIndex: number - loaderState: Readonly - __internal__error?: RspackError - /** - * UTF-8 hint for `content` - * - Some(true): `content` is a `UTF-8` encoded sequence - */ - __internal__utf8Hint?: boolean -} - export interface JsLoaderContext { resource: string _module: Module @@ -1460,20 +881,6 @@ export interface JsLoaderItem { noPitch: boolean } -export interface JsLoaderItem { - loader: string - type: string - data: any - normalExecuted: boolean - pitchExecuted: boolean - noPitch: boolean -} - -export declare const enum JsLoaderState { - Pitching = 'Pitching', - Normal = 'Normal' -} - export declare const enum JsLoaderState { Pitching = 'Pitching', Normal = 'Normal' @@ -1485,20 +892,6 @@ export interface JsModuleDescriptor { id?: string | number | null } -export interface JsModuleDescriptor { - identifier: string - name: string - id?: string | number | null -} - -export interface JsNormalModuleFactoryCreateModuleArgs { - dependencyType: string - rawRequest: string - resourceResolveData: JsResourceData - context: string - matchResource?: string -} - export interface JsNormalModuleFactoryCreateModuleArgs { dependencyType: string rawRequest: string @@ -1513,12 +906,6 @@ export interface JsOriginRecord { request: string } -export interface JsOriginRecord { - moduleDescriptor?: JsModuleDescriptor - loc: string - request: string -} - export interface JsPathData { filename?: string hash?: string @@ -1529,45 +916,20 @@ export interface JsPathData { chunk?: JsPathDataChunkLike } -export interface JsPathData { - filename?: string - hash?: string - contentHash?: string - runtime?: string - url?: string - id?: string - chunk?: JsPathDataChunkLike -} - -export interface JsPathDataChunkLike { - name?: string - hash?: string - id?: string -} - export interface JsPathDataChunkLike { name?: string hash?: string id?: string } -export interface JsResolveArgs { +export interface JsResolveData { request: string context: string - issuer: string - issuerLayer?: string -} - -export interface JsResolveArgs { - request: string - context: string - issuer: string - issuerLayer?: string -} - -export interface JsResolveForSchemeArgs { - resourceData: JsResourceData - scheme: string + contextInfo: ContextInfo + fileDependencies: Array + contextDependencies: Array + missingDependencies: Array + createData?: JsCreateData } export interface JsResolveForSchemeArgs { @@ -1588,26 +950,6 @@ export interface JsResourceData { descriptionFilePath?: string } -export interface JsResourceData { - /** Resource with absolute path, query and fragment */ - resource: string - /** Absolute resource path only */ - path?: string - /** Resource query with `?` prefix */ - query?: string - /** Resource fragment with `#` prefix */ - fragment?: string - descriptionFileData?: any - descriptionFilePath?: string -} - -export interface JsRsdoctorAsset { - ukey: number - path: string - chunks: Array - size: number -} - export interface JsRsdoctorAsset { ukey: number path: string @@ -1621,21 +963,6 @@ export interface JsRsdoctorAssetPatch { entrypointAssets: Array } -export interface JsRsdoctorAssetPatch { - assets: Array - chunkAssets: Array - entrypointAssets: Array -} - -export interface JsRsdoctorChunk { - ukey: number - name: string - initial: boolean - entry: boolean - dependencies: Array - imported: Array -} - export interface JsRsdoctorChunk { ukey: number name: string @@ -1650,16 +977,6 @@ export interface JsRsdoctorChunkAssets { assets: Array } -export interface JsRsdoctorChunkAssets { - chunk: number - assets: Array -} - -export interface JsRsdoctorChunkGraph { - chunks: Array - entrypoints: Array -} - export interface JsRsdoctorChunkGraph { chunks: Array entrypoints: Array @@ -1670,19 +987,6 @@ export interface JsRsdoctorChunkModules { modules: Array } -export interface JsRsdoctorChunkModules { - chunk: number - modules: Array -} - -export interface JsRsdoctorDependency { - ukey: number - kind: string - request: string - module: number - dependency: number -} - export interface JsRsdoctorDependency { ukey: number kind: string @@ -1697,17 +1001,6 @@ export interface JsRsdoctorEntrypoint { chunks: Array } -export interface JsRsdoctorEntrypoint { - ukey: number - name: string - chunks: Array -} - -export interface JsRsdoctorEntrypointAssets { - entrypoint: number - assets: Array -} - export interface JsRsdoctorEntrypointAssets { entrypoint: number assets: Array @@ -1722,31 +1015,6 @@ export interface JsRsdoctorExportInfo { sideEffects: Array } -export interface JsRsdoctorExportInfo { - ukey: number - name: string - from?: number - variable?: number - identifier?: JsRsdoctorStatement - sideEffects: Array -} - -export interface JsRsdoctorModule { - ukey: number - identifier: string - path: string - isEntry: boolean - kind: 'normal' | 'concatenated' - layer?: string - dependencies: Array - imported: Array - modules: Array - belongModules: Array - chunks: Array - issuerPath: Array - bailoutReason: Array -} - export interface JsRsdoctorModule { ukey: number identifier: string @@ -1769,21 +1037,6 @@ export interface JsRsdoctorModuleGraph { chunkModules: Array } -export interface JsRsdoctorModuleGraph { - modules: Array - dependencies: Array - chunkModules: Array -} - -export interface JsRsdoctorModuleGraphModule { - ukey: number - module: number - exports: Array - sideEffects: Array - variables: Array - dynamic: boolean -} - export interface JsRsdoctorModuleGraphModule { ukey: number module: number @@ -1798,15 +1051,6 @@ export interface JsRsdoctorModuleId { renderId: string } -export interface JsRsdoctorModuleId { - module: number - renderId: string -} - -export interface JsRsdoctorModuleIdsPatch { - moduleIds: Array -} - export interface JsRsdoctorModuleIdsPatch { moduleIds: Array } @@ -1817,32 +1061,10 @@ export interface JsRsdoctorModuleOriginalSource { size: number } -export interface JsRsdoctorModuleOriginalSource { - module: number - source: string - size: number -} - export interface JsRsdoctorModuleSourcesPatch { moduleOriginalSources: Array } -export interface JsRsdoctorModuleSourcesPatch { - moduleOriginalSources: Array -} - -export interface JsRsdoctorSideEffect { - ukey: number - name: string - originName?: string - module: number - identifier: JsRsdoctorStatement - isNameSpace: boolean - fromDependency?: number - exports: Array - variable?: number -} - export interface JsRsdoctorSideEffect { ukey: number name: string @@ -1860,17 +1082,6 @@ export interface JsRsdoctorSourceMapFeatures { module?: boolean } -export interface JsRsdoctorSourceMapFeatures { - cheap?: boolean - module?: boolean -} - -export interface JsRsdoctorSourcePosition { - line?: number - column?: number - index?: number -} - export interface JsRsdoctorSourcePosition { line?: number column?: number @@ -1882,17 +1093,6 @@ export interface JsRsdoctorSourceRange { end?: JsRsdoctorSourcePosition } -export interface JsRsdoctorSourceRange { - start: JsRsdoctorSourcePosition - end?: JsRsdoctorSourcePosition -} - -export interface JsRsdoctorStatement { - module: number - sourcePosition?: JsRsdoctorSourceRange - transformedPosition: JsRsdoctorSourceRange -} - export interface JsRsdoctorStatement { module: number sourcePosition?: JsRsdoctorSourceRange @@ -1908,15 +1108,6 @@ export interface JsRsdoctorVariable { exported?: number } -export interface JsRsdoctorVariable { - ukey: number - name: string - module: number - usedInfo: string - identififer: JsRsdoctorStatement - exported?: number -} - export interface JsRspackDiagnostic { severity: JsRspackSeverity error: RspackError @@ -1931,10 +1122,6 @@ export interface JsRuntimeGlobals { value: Array } -export interface JsRuntimeGlobals { - value: Array -} - export interface JsRuntimeModule { source?: JsCompatSourceOwned moduleIdentifier: string @@ -1942,18 +1129,6 @@ export interface JsRuntimeModule { name: string } -export interface JsRuntimeModule { - source?: JsCompatSourceOwned - moduleIdentifier: string - constructorName: string - name: string -} - -export interface JsRuntimeModuleArg { - module: JsRuntimeModule - chunk: Chunk -} - export interface JsRuntimeModuleArg { module: JsRuntimeModule chunk: Chunk @@ -1965,16 +1140,6 @@ export interface JsRuntimeRequirementInTreeArg { runtimeRequirements: JsRuntimeGlobals } -export interface JsRuntimeRequirementInTreeArg { - chunk: Chunk - allRuntimeRequirements: JsRuntimeGlobals - runtimeRequirements: JsRuntimeGlobals -} - -export interface JsRuntimeRequirementInTreeResult { - allRuntimeRequirements: JsRuntimeGlobals -} - export interface JsRuntimeRequirementInTreeResult { allRuntimeRequirements: JsRuntimeGlobals } @@ -1993,35 +1158,6 @@ export interface JsStatsAsset { auxiliaryChunks: Array } -export interface JsStatsAsset { - type: string - name: string - info: JsStatsAssetInfo - size: number - emitted: boolean - chunkNames: Array - chunkIdHints: Array - chunks: Array - auxiliaryChunkNames: Array - auxiliaryChunkIdHints: Array - auxiliaryChunks: Array -} - -export interface JsStatsAssetInfo { - minimized?: boolean - development?: boolean - hotModuleReplacement?: boolean - sourceFilename?: string - copied?: boolean - immutable?: boolean - javascriptModule?: boolean - chunkhash: Array - contenthash: Array - fullhash: Array - related: Array - isOverSizeLimit?: boolean -} - export interface JsStatsAssetInfo { minimized?: boolean development?: boolean @@ -2042,26 +1178,11 @@ export interface JsStatsAssetInfoRelated { value: Array } -export interface JsStatsAssetInfoRelated { - name: string - value: Array -} - export interface JsStatsAssetsByChunkName { name: string files: Array } -export interface JsStatsAssetsByChunkName { - name: string - files: Array -} - -export interface JsStatsChildGroupChildAssets { - preload?: Array - prefetch?: Array -} - export interface JsStatsChildGroupChildAssets { preload?: Array prefetch?: Array @@ -2090,41 +1211,6 @@ export interface JsStatsChunk { modules?: Array } -export interface JsStatsChunk { - type: string - files: Array - auxiliaryFiles: Array - id?: string - idHints: Array - hash?: string - entry: boolean - initial: boolean - names: Array - size: number - parents?: Array - children?: Array - siblings?: Array - childrenByOrder: Record> - runtime: Array - reason?: string - rendered: boolean - sizes: Array - origins: Array - modules?: Array -} - -export interface JsStatsChunkGroup { - name: string - chunks: Array - assets: Array - assetsSize: number - auxiliaryAssets?: Array - auxiliaryAssetsSize?: number - isOverSizeLimit?: boolean - children?: JsStatsChunkGroupChildren - childAssets?: JsStatsChildGroupChildAssets -} - export interface JsStatsChunkGroup { name: string chunks: Array @@ -2142,16 +1228,6 @@ export interface JsStatsChunkGroupAsset { size: number } -export interface JsStatsChunkGroupAsset { - name: string - size: number -} - -export interface JsStatsChunkGroupChildren { - preload?: Array - prefetch?: Array -} - export interface JsStatsChunkGroupChildren { preload?: Array prefetch?: Array @@ -2169,34 +1245,6 @@ export interface JsStatsCompilation { warnings: Array } -export interface JsStatsCompilation { - assets?: Array - assetsByChunkName?: Array - chunks?: Array - entrypoints?: Array - errors: Array - hash?: string - modules?: Array - namedChunkGroups?: Array - warnings: Array -} - -export interface JsStatsError { - name?: string - moduleDescriptor?: JsModuleDescriptor - message: string - chunkName?: string - code?: string - chunkEntry?: boolean - chunkInitial?: boolean - loc?: string - file?: string - chunkId?: string - details?: string - stack?: string - moduleTrace: Array -} - export interface JsStatsError { name?: string moduleDescriptor?: JsModuleDescriptor @@ -2218,11 +1266,6 @@ export interface JsStatsGetAssets { assetsByChunkName: Array } -export interface JsStatsGetAssets { - assets: Array - assetsByChunkName: Array -} - export interface JsStatsLogging { name: string type: string @@ -2230,18 +1273,6 @@ export interface JsStatsLogging { trace?: Array } -export interface JsStatsLogging { - name: string - type: string - args?: Array - trace?: Array -} - -export interface JsStatsMillisecond { - secs: number - subsecMillis: number -} - export interface JsStatsMillisecond { secs: number subsecMillis: number @@ -2256,45 +1287,6 @@ export interface JsStatsModule { modules?: Array } -export interface JsStatsModule { - commonAttributes: JsStatsModuleCommonAttributes - dependent?: boolean - issuerDescriptor?: JsModuleDescriptor - issuerPath?: Array - usedExports?: string | Array - modules?: Array -} - -export interface JsStatsModuleCommonAttributes { - type: string - moduleType: string - layer?: string - size: number - sizes: Array - built: boolean - codeGenerated: boolean - buildTimeExecuted: boolean - cached: boolean - moduleDescriptor?: JsModuleDescriptor - nameForCondition?: string - preOrderIndex?: number - postOrderIndex?: number - cacheable?: boolean - optional?: boolean - orphan?: boolean - failed?: boolean - errors?: number - warnings?: number - profile?: JsStatsModuleProfile - chunks?: Array - assets?: Array - reasons?: Array - providedExports?: Array - optimizationBailout?: Array - depth?: number - source?: string | Buffer -} - export interface JsStatsModuleCommonAttributes { type: string moduleType: string @@ -2329,15 +1321,6 @@ export interface JsStatsModuleIssuer { moduleDescriptor: JsModuleDescriptor } -export interface JsStatsModuleIssuer { - moduleDescriptor: JsModuleDescriptor -} - -export interface JsStatsModuleProfile { - factory: JsStatsMillisecond - building: JsStatsMillisecond -} - export interface JsStatsModuleProfile { factory: JsStatsMillisecond building: JsStatsMillisecond @@ -2354,23 +1337,6 @@ export interface JsStatsModuleReason { loc?: string } -export interface JsStatsModuleReason { - moduleDescriptor?: JsModuleDescriptor - resolvedModuleDescriptor?: JsModuleDescriptor - moduleChunks?: number - type?: string - userRequest?: string - explanation?: string - active: boolean - loc?: string -} - -export interface JsStatsModuleTrace { - origin: JsStatsModuleTraceModule - module: JsStatsModuleTraceModule - dependencies: Array -} - export interface JsStatsModuleTrace { origin: JsStatsModuleTraceModule module: JsStatsModuleTraceModule @@ -2381,14 +1347,6 @@ export interface JsStatsModuleTraceDependency { loc: string } -export interface JsStatsModuleTraceDependency { - loc: string -} - -export interface JsStatsModuleTraceModule { - moduleDescriptor: JsModuleDescriptor -} - export interface JsStatsModuleTraceModule { moduleDescriptor: JsModuleDescriptor } @@ -2397,35 +1355,6 @@ export interface JsStatsOptimizationBailout { inner: string } -export interface JsStatsOptimizationBailout { - inner: string -} - -export interface JsStatsOptions { - assets: boolean - cachedModules: boolean - chunks: boolean - chunkGroupAuxiliary: boolean - chunkGroupChildren: boolean - chunkGroups: boolean - chunkModules: boolean - chunkRelations: boolean - depth: boolean - entrypoints: boolean | string - errors: boolean - hash: boolean - ids: boolean - modules: boolean - moduleAssets: boolean - nestedModules: boolean - optimizationBailout: boolean - providedExports: boolean - reasons: boolean - source: boolean - usedExports: boolean - warnings: boolean -} - export interface JsStatsOptions { assets: boolean cachedModules: boolean @@ -2456,16 +1385,6 @@ export interface JsStatsSize { size: number } -export interface JsStatsSize { - sourceType: string - size: number -} - -export interface JsTap { - function: (...args: any[]) => any - stage: number -} - export interface JsTap { function: (...args: any[]) => any stage: number @@ -2476,11 +1395,6 @@ export interface JsVirtualFile { content: string } -export interface JsVirtualFile { - path: string - content: string -} - export interface KnownAssetInfo { /** if the asset can be long term cached forever (contains a hash) */ immutable?: boolean @@ -2520,10 +1434,6 @@ export declare function loadBrowserslist(input: string | undefined | null, conte export declare function minify(source: string, options: string): Promise -export declare function minify(source: string, options: string): Promise - -export declare function minifySync(source: string, options: string): TransformOutput - export declare function minifySync(source: string, options: string): TransformOutput /** @@ -2698,189 +1608,6 @@ export interface NapiResolveOptions { enablePnp?: boolean } -/** - * Module Resolution Options - * - * Options are directly ported from [enhanced-resolve](https://github.com/webpack/enhanced-resolve#resolver-options). - * - * See [rspack resolve](https://rspack.rs/config/resolve) for information and examples - */ -export interface NapiResolveOptions { - /** - * Path to TypeScript configuration file. - * - * Default `None` - */ - tsconfig?: TsconfigOptions - /** - * Alias for [ResolveOptions::alias] and [ResolveOptions::fallback]. - * - * For the second value of the tuple, `None -> AliasValue::Ignore`, Some(String) -> - * AliasValue::Path(String)` - * Create aliases to import or require certain modules more easily. - * A trailing $ can also be added to the given object's keys to signify an exact match. - */ - alias?: Record> - /** - * A list of alias fields in description files. - * Specify a field, such as `browser`, to be parsed according to [this specification](https://github.com/defunctzombie/package-browser-field-spec). - * Can be a path to json object such as `["path", "to", "exports"]`. - * - * Default `[]` - */ - aliasFields?: (string | string[])[] - /** - * Condition names for exports field which defines entry points of a package. - * The key order in the exports field is significant. During condition matching, earlier entries have higher priority and take precedence over later entries. - * - * Default `[]` - */ - conditionNames?: Array - /** - * The JSON files to use for descriptions. (There was once a `bower.json`.) - * - * Default `["package.json"]` - */ - descriptionFiles?: Array - /** - * If true, it will not allow extension-less files. - * So by default `require('./foo')` works if `./foo` has a `.js` extension, - * but with this enabled only `require('./foo.js')` will work. - * - * Default to `true` when [ResolveOptions::extensions] contains an empty string. - * Use `Some(false)` to disable the behavior. - * See - * - * Default None, which is the same as `Some(false)` when the above empty rule is not applied. - */ - enforceExtension?: EnforceExtension - /** - * A list of exports fields in description files. - * Can be a path to json object such as `["path", "to", "exports"]`. - * - * Default `[["exports"]]`. - */ - exportsFields?: (string | string[])[] - /** - * Fields from `package.json` which are used to provide the internal requests of a package - * (requests starting with # are considered internal). - * - * Can be a path to a JSON object such as `["path", "to", "imports"]`. - * - * Default `[["imports"]]`. - */ - importsFields?: (string | string[])[] - /** - * An object which maps extension to extension aliases. - * - * Default `{}` - */ - extensionAlias?: Record> - /** - * Attempt to resolve these extensions in order. - * If multiple files share the same name but have different extensions, - * will resolve the one with the extension listed first in the array and skip the rest. - * - * Default `[".js", ".json", ".node"]` - */ - extensions?: Array - /** - * Redirect module requests when normal resolving fails. - * - * Default `[]` - */ - fallback?: Record> - /** - * Request passed to resolve is already fully specified and extensions or main files are not resolved for it (they are still resolved for internal requests). - * - * See also rspack configuration [resolve.fullySpecified](https://rspack.rs/config/resolve#resolvefullyspecified) - * - * Default `false` - */ - fullySpecified?: boolean - /** - * A list of main fields in description files - * - * Default `["main"]`. - */ - mainFields?: string | string[] - /** - * The filename to be used while resolving directories. - * - * Default `["index"]` - */ - mainFiles?: Array - /** - * A list of directories to resolve modules from, can be absolute path or folder name. - * - * Default `["node_modules"]` - */ - modules?: string | string[] - /** - * Resolve to a context instead of a file. - * - * Default `false` - */ - resolveToContext?: boolean - /** - * Prefer to resolve module requests as relative requests instead of using modules from node_modules directories. - * - * Default `false` - */ - preferRelative?: boolean - /** - * Prefer to resolve server-relative urls as absolute paths before falling back to resolve in ResolveOptions::roots. - * - * Default `false` - */ - preferAbsolute?: boolean - /** - * A list of resolve restrictions to restrict the paths that a request can be resolved on. - * - * Default `[]` - */ - restrictions?: Array - /** - * A list of directories where requests of server-relative URLs (starting with '/') are resolved. - * On non-Windows systems these requests are resolved as an absolute path first. - * - * Default `[]` - */ - roots?: Array - /** - * Whether to resolve symlinks to their symlinked location. - * When enabled, symlinked resources are resolved to their real path, not their symlinked location. - * Note that this may cause module resolution to fail when using tools that symlink packages (like npm link). - * - * Default `true` - */ - symlinks?: boolean - /** - * Whether to parse [module.builtinModules](https://nodejs.org/api/module.html#modulebuiltinmodules) or not. - * For example, "zlib" will throw [crate::ResolveError::Builtin] when set to true. - * - * Default `false` - */ - builtinModules?: boolean - /** - * Whether to enable yarn Plug'n'Play - * - * Default `false` - */ - enablePnp?: boolean -} - -export interface NativeWatcherOptions { - followSymlinks?: boolean - pollInterval?: number - aggregateTimeout?: number - /** - * The ignored paths for the watcher. - * It can be a single path, an array of paths, or a regular expression. - */ - ignored?: string | string[] | RegExp -} - export interface NativeWatcherOptions { followSymlinks?: boolean pollInterval?: number @@ -2909,24 +1636,9 @@ export interface PathWithInfo { info: AssetInfo } -export interface PathWithInfo { +export interface RawAliasOptionItem { path: string - info: AssetInfo -} - -export interface RawAliasOptionItem { - path: string - redirect: Array -} - -export interface RawAliasOptionItem { - path: string - redirect: Array -} - -export interface RawAssetGeneratorDataUrlFnCtx { - filename: string - module: Module + redirect: Array } export interface RawAssetGeneratorDataUrlFnCtx { @@ -2939,21 +1651,6 @@ export interface RawAssetGeneratorDataUrlOptions { mimetype?: string } -export interface RawAssetGeneratorDataUrlOptions { - encoding?: "base64" | "false" | undefined - mimetype?: string -} - -export interface RawAssetGeneratorOptions { - emit?: boolean - filename?: JsFilename - outputPath?: JsFilename - publicPath?: "auto" | JsFilename - dataUrl?: RawAssetGeneratorDataUrlOptions | ((source: Buffer, context: RawAssetGeneratorDataUrlFnCtx) => string) - importMode?: "url" | "preserve" - binary?: boolean -} - export interface RawAssetGeneratorOptions { emit?: boolean filename?: JsFilename @@ -2969,16 +1666,6 @@ export interface RawAssetInlineGeneratorOptions { binary?: boolean } -export interface RawAssetInlineGeneratorOptions { - dataUrl?: RawAssetGeneratorDataUrlOptions | ((source: Buffer, context: RawAssetGeneratorDataUrlFnCtx) => string) - binary?: boolean -} - -export interface RawAssetParserDataUrl { - type: "options" - options?: RawAssetParserDataUrlOptions -} - export interface RawAssetParserDataUrl { type: "options" options?: RawAssetParserDataUrlOptions @@ -2988,14 +1675,6 @@ export interface RawAssetParserDataUrlOptions { maxSize?: number } -export interface RawAssetParserDataUrlOptions { - maxSize?: number -} - -export interface RawAssetParserOptions { - dataUrlCondition?: RawAssetParserDataUrl -} - export interface RawAssetParserOptions { dataUrlCondition?: RawAssetParserDataUrl } @@ -3009,26 +1688,6 @@ export interface RawAssetResourceGeneratorOptions { binary?: boolean } -export interface RawAssetResourceGeneratorOptions { - emit?: boolean - filename?: JsFilename - outputPath?: JsFilename - publicPath?: "auto" | JsFilename - importMode?: "url" | "preserve" - binary?: boolean -} - -export interface RawBannerPluginOptions { - banner: string | ((args: { hash: string, chunk: Chunk, filename: string }) => string) - entryOnly?: boolean - footer?: boolean - raw?: boolean - stage?: number - test?: string | RegExp | (string | RegExp)[] - include?: string | RegExp | (string | RegExp)[] - exclude?: string | RegExp | (string | RegExp)[] -} - export interface RawBannerPluginOptions { banner: string | ((args: { hash: string, chunk: Chunk, filename: string }) => string) entryOnly?: boolean @@ -3046,37 +1705,6 @@ export interface RawBundlerInfoPluginOptions { force: boolean | string[] } -export interface RawBundlerInfoPluginOptions { - version: string - bundler: string - force: boolean | string[] -} - -export interface RawCacheGroupOptions { - key: string - priority?: number - test?: RegExp | string | Function - filename?: JsFilename - idHint?: string - /** What kind of chunks should be selected. */ - chunks?: RegExp | 'async' | 'initial' | 'all' - type?: RegExp | string - layer?: RegExp | string | ((layer?: string) => boolean) - automaticNameDelimiter?: string - minChunks?: number - minSize?: number | RawSplitChunkSizes - minSizeReduction?: number | RawSplitChunkSizes - maxSize?: number | RawSplitChunkSizes - maxAsyncSize?: number | RawSplitChunkSizes - maxInitialSize?: number | RawSplitChunkSizes - maxAsyncRequests?: number - maxInitialRequests?: number - name?: string | false | Function - reuseExistingChunk?: boolean - enforce?: boolean - usedExports?: boolean -} - export interface RawCacheGroupOptions { key: string priority?: number @@ -3107,22 +1735,6 @@ export interface RawCacheOptions { maxGenerations?: number } -export interface RawCacheOptions { - type: string - maxGenerations?: number -} - -export interface RawCircularDependencyRspackPluginOptions { - failOnError?: boolean - allowAsyncCycles?: boolean - exclude?: RegExp - ignoredConnections?: Array<[string | RegExp, string | RegExp]> - onDetected?: (entrypoint: Module, modules: string[]) => void - onIgnored?: (entrypoint: Module, modules: string[]) => void - onStart?: () => void - onEnd?: () => void -} - export interface RawCircularDependencyRspackPluginOptions { failOnError?: boolean allowAsyncCycles?: boolean @@ -3147,39 +1759,11 @@ export interface RawConsumeOptions { eager: boolean } -export interface RawConsumeOptions { - key: string - import?: string - importResolved?: string - shareKey: string - shareScope: string - requiredVersion?: string | false | undefined - packageName?: string - strictVersion: boolean - singleton: boolean - eager: boolean -} - export interface RawConsumeSharedPluginOptions { consumes: Array enhanced: boolean } -export interface RawConsumeSharedPluginOptions { - consumes: Array - enhanced: boolean -} - -export interface RawContainerPluginOptions { - name: string - shareScope: string - library: JsLibraryOptions - runtime?: false | string - filename?: string - exposes: Array - enhanced: boolean -} - export interface RawContainerPluginOptions { name: string shareScope: string @@ -3197,21 +1781,6 @@ export interface RawContainerReferencePluginOptions { enhanced: boolean } -export interface RawContainerReferencePluginOptions { - remoteType: string - remotes: Array - shareScope?: string - enhanced: boolean -} - -export interface RawContextReplacementPluginOptions { - resourceRegExp: RegExp - newContentResource?: string - newContentRecursive?: boolean - newContentRegExp?: RegExp - newContentCreateContextMap?: Record -} - export interface RawContextReplacementPluginOptions { resourceRegExp: RegExp newContentResource?: string @@ -3238,24 +1807,6 @@ export interface RawCopyGlobOptions { ignore?: Array } -export interface RawCopyGlobOptions { - /** - * Whether the match is case sensitive - * @default true - */ - caseSensitiveMatch?: boolean - /** - * Whether to match files starting with `.` - * @default true - */ - dot?: boolean - /** - * An array of strings in glob format, which can be used to ignore specific paths - * @default undefined - */ - ignore?: Array -} - export interface RawCopyPattern { /** * The source path of the copy operation, which can be an absolute path, a relative @@ -3341,96 +1892,6 @@ export interface RawCopyPattern { transform?: { transformer: (input: Buffer, absoluteFilename: string) => string | Buffer | Promise | Promise } | ((input: Buffer, absoluteFilename: string) => string | Buffer | Promise | Promise) } -export interface RawCopyPattern { - /** - * The source path of the copy operation, which can be an absolute path, a relative - * path, or a glob pattern. It can refer to a file or a directory. If a relative path - * is passed, it is relative to the `context` option. - * @default undefined - */ - from: string - /** - * The destination path of the copy operation, which can be an absolute path, a - * relative path, or a template string. If not specified, it is equal to Rspack's - * `output.path`. - * @default Rspack's `output.path` - */ - to?: string | ((pathData: { context: string; absoluteFilename?: string }) => string | Promise) - /** - * `context` is a path to be prepended to `from` and removed from the start of the - * result paths. `context` can be an absolute path or a relative path. If it is a - * relative path, then it will be converted to an absolute path based on Rspack's - * `context`. - * `context` should be explicitly set only when `from` contains a glob. Otherwise, - * `context` is automatically set based on whether `from` is a file or a directory: - * - If `from` is a file, then `context` is its directory. The result path will be - * the filename alone. - * - If `from` is a directory, then `context` equals `from`. The result paths will - * be the paths of the directory's contents (including nested contents), relative - * to the directory. - * @default Rspack's `context` - */ - context?: string - /** - * Specify the type of [to](#to), which can be a directory, a file, or a template - * name in Rspack. If not specified, it will be automatically inferred. - * The automatic inference rules are as follows: - * - `dir`: If `to` has no extension, or ends on `/`. - * - `file`: If `to` is not a directory and is not a template. - * - `template`: If `to` contains a template pattern. - * @default undefined - */ - toType?: string - /** - * Whether to ignore the error if there are missing files or directories. - * @default false - */ - noErrorOnMissing: boolean - /** - * Whether to force the copy operation to overwrite the destination file if it - * already exists. - * @default false - */ - force: boolean - /** - * The priority of the copy operation. The higher the priority, the earlier the copy - * operation will be executed. When `force` is set to `true`, if a matching file is - * found, the one with higher priority will overwrite the one with lower priority. - * @default 0 - */ - priority: number - /** - * Set the glob options for the copy operation. - * @default undefined - */ - globOptions: RawCopyGlobOptions - /** - * Allows to add some assets info to the copied files, which may affect some behaviors - * in the build process. For example, by default, the copied JS and CSS files will be - * minified by Rspack's minimizer, if you want to skip minification for copied files, - * you can set `info.minimized` to `true`. - * @default undefined - */ - info?: RawInfo - /** - * Determines whether to copy file permissions from the source to the destination. - * When set to true, the plugin will preserve executable permissions and other file modes. - * This is particularly useful when copying scripts or executable files. - * @default false - */ - copyPermissions?: boolean - /** - * Allows to modify the file contents. - * @default undefined - */ - transform?: { transformer: (input: Buffer, absoluteFilename: string) => string | Buffer | Promise | Promise } | ((input: Buffer, absoluteFilename: string) => string | Buffer | Promise | Promise) -} - -export interface RawCopyRspackPluginOptions { - /** An array of objects that describe the copy operations to be performed. */ - patterns: Array -} - export interface RawCopyRspackPluginOptions { /** An array of objects that describe the copy operations to be performed. */ patterns: Array @@ -3443,33 +1904,16 @@ export interface RawCssAutoGeneratorOptions { esModule?: boolean } -export interface RawCssAutoGeneratorOptions { - exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" - exportsOnly?: boolean - localIdentName?: string - esModule?: boolean -} - -export interface RawCssAutoParserOptions { - namedExports?: boolean - url?: boolean -} - export interface RawCssAutoParserOptions { namedExports?: boolean url?: boolean } -export interface RawCssExtractPluginOption { - filename: JsFilename - chunkFilename: JsFilename - ignoreOrder: boolean - insert?: string - attributes: Record - linkType?: string - runtime: boolean - pathinfo: boolean - enforceRelative: boolean +export interface RawCssChunkingPluginOptions { + strict?: boolean + minSize?: number + maxSize?: number + exclude?: RegExp } export interface RawCssExtractPluginOption { @@ -3489,18 +1933,6 @@ export interface RawCssGeneratorOptions { esModule?: boolean } -export interface RawCssGeneratorOptions { - exportsOnly?: boolean - esModule?: boolean -} - -export interface RawCssModuleGeneratorOptions { - exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" - exportsOnly?: boolean - localIdentName?: string - esModule?: boolean -} - export interface RawCssModuleGeneratorOptions { exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" exportsOnly?: boolean @@ -3513,16 +1945,6 @@ export interface RawCssModuleParserOptions { url?: boolean } -export interface RawCssModuleParserOptions { - namedExports?: boolean - url?: boolean -} - -export interface RawCssParserOptions { - namedExports?: boolean - url?: boolean -} - export interface RawCssParserOptions { namedExports?: boolean url?: boolean @@ -3534,30 +1956,12 @@ export interface RawDllEntryPluginOptions { name: string } -export interface RawDllEntryPluginOptions { - context: string - entries: Array - name: string -} - export interface RawDllManifest { content: Record name?: string type?: string } -export interface RawDllManifest { - content: Record - name?: string - type?: string -} - -export interface RawDllManifestContentItem { - buildMeta?: JsBuildMeta - exports?: string[] | true - id?: number | string -} - export interface RawDllManifestContentItem { buildMeta?: JsBuildMeta exports?: string[] | true @@ -3575,21 +1979,6 @@ export interface RawDllReferenceAgencyPluginOptions { manifest?: RawDllManifest } -export interface RawDllReferenceAgencyPluginOptions { - context?: string - name?: string - extensions: Array - scope?: string - sourceType?: string - type: string - content?: Record - manifest?: RawDllManifest -} - -export interface RawDraft { - customMedia: boolean -} - export interface RawDraft { customMedia: boolean } @@ -3599,38 +1988,11 @@ export interface RawDynamicEntryPluginOptions { entry: () => Promise } -export interface RawDynamicEntryPluginOptions { - context: string - entry: () => Promise -} - export interface RawEntryDynamicResult { import: Array options: JsEntryOptions } -export interface RawEntryDynamicResult { - import: Array - options: JsEntryOptions -} - -export interface RawEnvironment { - const?: boolean - arrowFunction?: boolean - nodePrefixForCoreModules?: boolean - asyncFunction?: boolean - bigIntLiteral?: boolean - destructuring?: boolean - document?: boolean - dynamicImport?: boolean - forOf?: boolean - globalThis?: boolean - module?: boolean - optionalChaining?: boolean - templateLiteral?: boolean - dynamicImportInWorker?: boolean -} - export interface RawEnvironment { const?: boolean arrowFunction?: boolean @@ -3654,19 +2016,6 @@ export interface RawEvalDevToolModulePluginOptions { sourceUrlComment?: string } -export interface RawEvalDevToolModulePluginOptions { - namespace?: string - moduleFilenameTemplate?: string | ((info: RawModuleFilenameTemplateFnCtx) => string) - sourceUrlComment?: string -} - -export interface RawExperimentCacheOptionsPersistent { - buildDependencies?: Array - version?: string - snapshot?: RawExperimentSnapshotOptions - storage?: RawStorageOptions -} - export interface RawExperimentCacheOptionsPersistent { buildDependencies?: Array version?: string @@ -3688,26 +2037,6 @@ typeReexportsPresence: boolean lazyBarrel: boolean } -export interface RawExperiments { - layers: boolean - topLevelAwait: boolean -incremental?: false | { [key: string]: boolean } -parallelCodeSplitting: boolean -rspackFuture?: RawRspackFuture -cache: boolean | { type: "persistent" } & RawExperimentCacheOptionsPersistent | { type: "memory" } -useInputFileSystem?: false | Array -inlineConst: boolean -inlineEnum: boolean -typeReexportsPresence: boolean -lazyBarrel: boolean -} - -export interface RawExperimentSnapshotOptions { - immutablePaths: Array - unmanagedPaths: Array - managedPaths: Array -} - export interface RawExperimentSnapshotOptions { immutablePaths: Array unmanagedPaths: Array @@ -3720,19 +2049,6 @@ export interface RawExposeOptions { import: Array } -export interface RawExposeOptions { - key: string - name?: string - import: Array -} - -export interface RawExternalItemFnCtxData { - request: string - context: string - dependencyType: string - contextInfo: ContextInfo -} - export interface RawExternalItemFnCtxData { request: string context: string @@ -3745,19 +2061,10 @@ export interface RawExternalItemFnResult { result?: string | boolean | string[] | Record } -export interface RawExternalItemFnResult { - externalType?: string - result?: string | boolean | string[] | Record -} - -export interface RawExternalsPluginOptions { - type: string - externals: (string | RegExp | Record> | ((...args: any[]) => any))[] -} - export interface RawExternalsPluginOptions { type: string externals: (string | RegExp | Record> | ((...args: any[]) => any))[] + placeInInitial: boolean } export interface RawExternalsPresets { @@ -3769,20 +2076,6 @@ export interface RawExternalsPresets { electronRenderer: boolean } -export interface RawExternalsPresets { - node: boolean - web: boolean - electron: boolean - electronMain: boolean - electronPreload: boolean - electronRenderer: boolean -} - -export interface RawExtractComments { - banner?: string | boolean - condition?: string -} - export interface RawExtractComments { banner?: string | boolean condition?: string @@ -3797,19 +2090,6 @@ export interface RawFallbackCacheGroupOptions { automaticNameDelimiter?: string } -export interface RawFallbackCacheGroupOptions { - chunks?: RegExp | 'async' | 'initial' | 'all' - minSize?: number | RawSplitChunkSizes - maxSize?: number | RawSplitChunkSizes - maxAsyncSize?: number | RawSplitChunkSizes - maxInitialSize?: number | RawSplitChunkSizes - automaticNameDelimiter?: string -} - -export interface RawFlagAllModulesAsUsedPluginOptions { - explanation: string -} - export interface RawFlagAllModulesAsUsedPluginOptions { explanation: string } @@ -3823,26 +2103,6 @@ export interface RawFuncUseCtx { issuerLayer: string } -export interface RawFuncUseCtx { - resource?: string - realResource?: string - resourceQuery: string - resourceFragment: string - issuer: string - issuerLayer: string -} - -export interface RawGeneratorOptions { - type: "asset" | "asset/inline" | "asset/resource" | "css" | "css/auto" | "css/module" | "json" - asset?: RawAssetGeneratorOptions - assetInline?: RawAssetInlineGeneratorOptions - assetResource?: RawAssetResourceGeneratorOptions - css?: RawCssGeneratorOptions - cssAuto?: RawCssAutoGeneratorOptions - cssModule?: RawCssModuleGeneratorOptions - json?: RawJsonGeneratorOptions -} - export interface RawGeneratorOptions { type: "asset" | "asset/inline" | "asset/resource" | "css" | "css/auto" | "css/module" | "json" asset?: RawAssetGeneratorOptions @@ -3859,39 +2119,6 @@ export interface RawHtmlRspackPluginBaseOptions { target?: "_self" | "_blank" | "_parent" | "_top" } -export interface RawHtmlRspackPluginBaseOptions { - href?: string - target?: "_self" | "_blank" | "_parent" | "_top" -} - -export interface RawHtmlRspackPluginOptions { - /** emitted file name in output path */ - filename?: string[] - /** template html file */ - template?: string - templateFn?: (data: string) => Promise - templateContent?: string - templateParameters?: boolean | Record | ((params: string) => Promise) - /** "head", "body" or "false" */ - inject: "head" | "body" | "false" - /** path or `auto` */ - publicPath?: string - /** `blocking`, `defer`, `module` or `systemjs-module` */ - scriptLoading: "blocking" | "defer" | "module" | "systemjs-module" - /** entry_chunk_name (only entry chunks are supported) */ - chunks?: Array - excludeChunks?: Array - chunksSortMode: "auto" | "manual" - sri?: "sha256" | "sha384" | "sha512" - minify?: boolean - title?: string - favicon?: string - meta?: Record> - hash?: boolean - base?: RawHtmlRspackPluginBaseOptions - uid?: number -} - export interface RawHtmlRspackPluginOptions { /** emitted file name in output path */ filename?: string[] @@ -3925,19 +2152,6 @@ export interface RawHttpExternalsRspackPluginOptions { webAsync: boolean } -export interface RawHttpExternalsRspackPluginOptions { - css: boolean - webAsync: boolean -} - -export interface RawHttpUriPluginOptions { - allowedUris: (string | RegExp)[] - lockfileLocation?: string - cacheLocation?: string - upgrade: boolean - httpClient: (url: string, headers: Record) => Promise -} - export interface RawHttpUriPluginOptions { allowedUris: (string | RegExp)[] lockfileLocation?: string @@ -3952,31 +2166,6 @@ export interface RawIgnorePluginOptions { checkResource?: (resource: string, context: string) => boolean } -export interface RawIgnorePluginOptions { - resourceRegExp?: RegExp - contextRegExp?: RegExp - checkResource?: (resource: string, context: string) => boolean -} - -export interface RawIncremental { - silent: boolean - make: boolean - inferAsyncModules: boolean - providedExports: boolean - dependenciesDiagnostics: boolean - sideEffects: boolean - buildChunkGraph: boolean - moduleIds: boolean - chunkIds: boolean - modulesHashes: boolean - modulesCodegen: boolean - modulesRuntimeRequirements: boolean - chunksRuntimeRequirements: boolean - chunksHashes: boolean - chunksRender: boolean - emitAssets: boolean -} - export interface RawIncremental { silent: boolean make: boolean @@ -4011,25 +2200,6 @@ export interface RawInfo { version?: string } -export interface RawInfo { - immutable?: boolean - /** - * Whether to skip minification for the copied files. - * @default false - */ - minimized?: boolean - chunkHash?: Array - contentHash?: Array - development?: boolean - hotModuleReplacement?: boolean - related?: RawRelated - version?: string -} - -export interface RawIntegrityData { - integerities: Array -} - export interface RawIntegrityData { integerities: Array } @@ -4039,59 +2209,6 @@ export interface RawIntegrityItem { integrity: string } -export interface RawIntegrityItem { - asset: string - integrity: string -} - -export interface RawJavascriptParserOptions { - dynamicImportMode?: string - dynamicImportPreload?: string - dynamicImportPrefetch?: string - dynamicImportFetchPriority?: string - url?: string - exprContextCritical?: boolean - wrappedContextCritical?: boolean - wrappedContextRegExp?: RegExp - exportsPresence?: string - importExportsPresence?: string - reexportExportsPresence?: string - strictExportPresence?: boolean - worker?: Array - overrideStrict?: string - importMeta?: boolean - /** - * This option is experimental in Rspack only and subject to change or be removed anytime. - * @experimental - */ - requireAsExpression?: boolean - /** - * This option is experimental in Rspack only and subject to change or be removed anytime. - * @experimental - */ - requireDynamic?: boolean - /** - * This option is experimental in Rspack only and subject to change or be removed anytime. - * @experimental - */ - requireResolve?: boolean - /** - * This option is experimental in Rspack only and subject to change or be removed anytime. - * @experimental - */ - importDynamic?: boolean - /** - * This option is experimental in Rspack only and subject to change or be removed anytime. - * @experimental - */ - inlineConst?: boolean - /** - * This option is experimental in Rspack only and subject to change or be removed anytime. - * @experimental - */ - typeReexportsPresence?: string -} - export interface RawJavascriptParserOptions { dynamicImportMode?: string dynamicImportPreload?: string @@ -4099,6 +2216,7 @@ export interface RawJavascriptParserOptions { dynamicImportFetchPriority?: string url?: string exprContextCritical?: boolean + unknownContextCritical?: boolean wrappedContextCritical?: boolean wrappedContextRegExp?: RegExp exportsPresence?: string @@ -4144,28 +2262,11 @@ export interface RawJsonGeneratorOptions { JSONParse?: boolean } -export interface RawJsonGeneratorOptions { - JSONParse?: boolean -} - export interface RawJsonParserOptions { exportsDepth?: number parse?: (source: string) => string } -export interface RawJsonParserOptions { - exportsDepth?: number - parse?: (source: string) => string -} - -export interface RawLazyCompilationOption { - module: ((err: Error | null, arg: RawModuleArg) => RawModuleInfo) - test?: RawLazyCompilationTest - entries: boolean - imports: boolean - cacheable: boolean -} - export interface RawLazyCompilationOption { module: ((err: Error | null, arg: RawModuleArg) => RawModuleInfo) test?: RawLazyCompilationTest @@ -4183,27 +2284,6 @@ export interface RawLibManifestPluginOptions { type?: string } -export interface RawLibManifestPluginOptions { - context?: string - entryOnly?: boolean - name?: JsFilename - path: JsFilename - format?: boolean - type?: string -} - -export interface RawLightningCssBrowsers { - android?: number - chrome?: number - edge?: number - firefox?: number - ie?: number - ios_saf?: number - opera?: number - safari?: number - samsung?: number -} - export interface RawLightningCssBrowsers { android?: number chrome?: number @@ -4228,26 +2308,6 @@ export interface RawLightningCssMinimizerOptions { unusedSymbols: Array } -export interface RawLightningCssMinimizerOptions { - errorRecovery: boolean - targets?: Array - include?: number - exclude?: number - draft?: RawDraft - drafts?: RawDraft - nonStandard?: RawNonStandard - pseudoClasses?: RawLightningCssPseudoClasses - unusedSymbols: Array -} - -export interface RawLightningCssMinimizerRspackPluginOptions { - test?: string | RegExp | (string | RegExp)[] - include?: string | RegExp | (string | RegExp)[] - exclude?: string | RegExp | (string | RegExp)[] - removeUnusedLocalIdents: boolean - minimizerOptions: RawLightningCssMinimizerOptions -} - export interface RawLightningCssMinimizerRspackPluginOptions { test?: string | RegExp | (string | RegExp)[] include?: string | RegExp | (string | RegExp)[] @@ -4264,20 +2324,6 @@ export interface RawLightningCssPseudoClasses { focusWithin?: string } -export interface RawLightningCssPseudoClasses { - hover?: string - active?: string - focus?: string - focusVisible?: string - focusWithin?: string -} - -export interface RawLimitChunkCountPluginOptions { - chunkOverhead?: number - entryChunkMultiplicator?: number - maxChunks: number -} - export interface RawLimitChunkCountPluginOptions { chunkOverhead?: number entryChunkMultiplicator?: number @@ -4289,15 +2335,6 @@ export interface RawModuleArg { path: string } -export interface RawModuleArg { - module: string - path: string -} - -export interface RawModuleFederationRuntimePluginOptions { - entryRuntime?: string | undefined -} - export interface RawModuleFederationRuntimePluginOptions { entryRuntime?: string | undefined } @@ -4316,26 +2353,6 @@ export interface RawModuleFilenameTemplateFnCtx { namespace: string } -export interface RawModuleFilenameTemplateFnCtx { - identifier: string - shortIdentifier: string - resource: string - resourcePath: string - absoluteResourcePath: string - loaders: string - allLoaders: string - query: string - moduleId: string - hash: string - namespace: string -} - -export interface RawModuleInfo { - active: boolean - client: string - data: string -} - export interface RawModuleInfo { active: boolean client: string @@ -4349,50 +2366,6 @@ export interface RawModuleOptions { noParse?: string | RegExp | ((request: string) => boolean) | (string | RegExp | ((request: string) => boolean))[] } -export interface RawModuleOptions { - rules: Array - parser?: Record - generator?: Record - noParse?: string | RegExp | ((request: string) => boolean) | (string | RegExp | ((request: string) => boolean))[] -} - -export interface RawModuleRule { - /** - * A conditional match matching an absolute path + query + fragment. - * Note: - * This is a custom matching rule not initially designed by webpack. - * Only for single-threaded environment interoperation purpose. - */ - rspackResource?: RawRuleSetCondition - /** A condition matcher matching an absolute path. */ - test?: RawRuleSetCondition - include?: RawRuleSetCondition - exclude?: RawRuleSetCondition - /** A condition matcher matching an absolute path. */ - resource?: RawRuleSetCondition - /** A condition matcher against the resource query. */ - resourceQuery?: RawRuleSetCondition - resourceFragment?: RawRuleSetCondition - descriptionData?: Record - with?: Record - sideEffects?: boolean - use?: RawModuleRuleUse[] | ((arg: RawFuncUseCtx) => RawModuleRuleUse[]) - type?: string - layer?: string - parser?: RawParserOptions - generator?: RawGeneratorOptions - resolve?: RawResolveOptions - issuer?: RawRuleSetCondition - issuerLayer?: RawRuleSetCondition - dependency?: RawRuleSetCondition - scheme?: RawRuleSetCondition - mimetype?: RawRuleSetCondition - oneOf?: Array - rules?: Array - /** Specifies the category of the loader. No value means normal loader. */ - enforce?: 'pre' | 'post' -} - export interface RawModuleRule { /** * A conditional match matching an absolute path + query + fragment. @@ -4444,42 +2417,19 @@ export interface RawModuleRuleUse { options?: string } -/** - * `loader` is for both JS and Rust loaders. - * `options` is - * - a `None` on rust side and handled by js side `getOptions` when - * using with `loader`. - * - a `Some(string)` on rust side, deserialized by `serde_json::from_str` - * and passed to rust side loader in [get_builtin_loader] when using with - * `builtin_loader`. - */ -export interface RawModuleRuleUse { - loader: string - options?: string -} - export interface RawNodeOption { dirname: string filename: string global: string } -export interface RawNodeOption { - dirname: string - filename: string - global: string -} - -export interface RawNonStandard { - deepSelectorCombinator: boolean -} - export interface RawNonStandard { deepSelectorCombinator: boolean } -export interface RawOccurrenceChunkIdsPluginOptions { - prioritiseInitial?: boolean +export interface RawNormalModuleReplacementPluginOptions { + resourceRegExp: RegExp + newResource: string | ((data: JsResolveData) => JsResolveData) } export interface RawOccurrenceChunkIdsPluginOptions { @@ -4498,38 +2448,6 @@ export interface RawOptimizationOptions { avoidEntryIife: boolean } -export interface RawOptimizationOptions { - removeAvailableModules: boolean - sideEffects: boolean | string - usedExports: boolean | string - providedExports: boolean - innerGraph: boolean - realContentHash: boolean - mangleExports: boolean | string - concatenateModules: boolean - avoidEntryIife: boolean -} - -export interface RawOptions { - name?: string - mode?: undefined | 'production' | 'development' | 'none' - context: string - output: RawOutputOptions - resolve: RawResolveOptions - resolveLoader: RawResolveOptions - module: RawModuleOptions - optimization: RawOptimizationOptions - stats: RawStatsOptions - cache: RawCacheOptions - experiments: RawExperiments - node?: RawNodeOption - profile: boolean - amd?: string - bail: boolean - __references: Record - __virtual_files?: Array -} - export interface RawOptions { name?: string mode?: undefined | 'production' | 'development' | 'none' @@ -4596,52 +2514,6 @@ export interface RawOutputOptions { compareBeforeEmit: boolean } -export interface RawOutputOptions { - path: string - pathinfo: boolean | "verbose" - clean: boolean | JsCleanOptions - publicPath: "auto" | JsFilename - assetModuleFilename: JsFilename - wasmLoading: string | false - enabledWasmLoadingTypes: Array - webassemblyModuleFilename: string - filename: JsFilename - chunkFilename: JsFilename - crossOriginLoading: string | false - cssFilename: JsFilename - cssChunkFilename: JsFilename - hotUpdateMainFilename: string - hotUpdateChunkFilename: string - hotUpdateGlobal: string - uniqueName: string - chunkLoadingGlobal: string - library?: JsLibraryOptions - strictModuleErrorHandling: boolean - enabledLibraryTypes?: Array - globalObject: string - importFunctionName: string - importMetaName: string - iife: boolean - module: boolean - chunkLoading: string | false - chunkLoadTimeout: number - charset: boolean - enabledChunkLoadingTypes?: Array - trustedTypes?: RawTrustedTypes - sourceMapFilename: string - hashFunction: string - hashDigest: string - hashDigestLength: number - hashSalt?: string - asyncChunks: boolean - workerChunkLoading: string | false - workerWasmLoading: string | false - workerPublicPath: string - scriptType: "module" | "text/javascript" | false - environment: RawEnvironment - compareBeforeEmit: boolean -} - export interface RawParserOptions { type: "asset" | "css" | "css/auto" | "css/module" | "javascript" | "javascript/auto" | "javascript/dynamic" | "javascript/esm" | "json" asset?: RawAssetParserOptions @@ -4652,22 +2524,6 @@ export interface RawParserOptions { json?: RawJsonParserOptions } -export interface RawParserOptions { - type: "asset" | "css" | "css/auto" | "css/module" | "javascript" | "javascript/auto" | "javascript/dynamic" | "javascript/esm" | "json" - asset?: RawAssetParserOptions - css?: RawCssParserOptions - cssAuto?: RawCssAutoParserOptions - cssModule?: RawCssModuleParserOptions - javascript?: RawJavascriptParserOptions - json?: RawJsonParserOptions -} - -export interface RawPathData { - filename?: string - contentHash?: string - url?: string -} - export interface RawPathData { filename?: string contentHash?: string @@ -4683,26 +2539,6 @@ export interface RawProgressPluginOptions { handler?: (percent: number, msg: string, items: string[]) => void } -export interface RawProgressPluginOptions { - prefix?: string - profile?: boolean - template?: string - tick?: string | Array - progressChars?: string - handler?: (percent: number, msg: string, items: string[]) => void -} - -export interface RawProvideOptions { - key: string - shareKey: string - shareScope: string - version?: string | false | undefined - eager: boolean - singleton?: boolean - requiredVersion?: string | false | undefined - strictVersion?: boolean -} - export interface RawProvideOptions { key: string shareKey: string @@ -4718,47 +2554,12 @@ export interface RawRelated { sourceMap?: string } -export interface RawRelated { - sourceMap?: string -} - export interface RawRemoteOptions { key: string external: Array shareScope: string } -export interface RawRemoteOptions { - key: string - external: Array - shareScope: string -} - -export interface RawResolveOptions { - preferRelative?: boolean - preferAbsolute?: boolean - extensions?: Array - mainFiles?: Array - mainFields?: Array - conditionNames?: Array - alias?: Array | false - fallback?: Array | false - symlinks?: boolean - tsconfig?: RawResolveTsconfigOptions - modules?: Array - byDependency?: Record - fullySpecified?: boolean - exportsFields?: Array - descriptionFiles?: Array - enforceExtension?: boolean - importsFields?: Array - extensionAlias?: Record> - aliasFields?: Array - restrictions?: (string | RegExp)[] - roots?: Array - pnp?: boolean -} - export interface RawResolveOptions { preferRelative?: boolean preferAbsolute?: boolean @@ -4811,51 +2612,12 @@ export interface RawResolveOptionsWithDependencyType { pnp?: boolean } -export interface RawResolveOptionsWithDependencyType { - preferRelative?: boolean - preferAbsolute?: boolean - extensions?: Array - mainFiles?: Array - mainFields?: Array - conditionNames?: Array - alias?: Array | false - fallback?: Array | false - symlinks?: boolean - tsconfig?: RawResolveTsconfigOptions - modules?: Array - byDependency?: Record - fullySpecified?: boolean - exportsFields?: Array - descriptionFiles?: Array - enforceExtension?: boolean - importsFields?: Array - extensionAlias?: Record> - aliasFields?: Array - restrictions?: (string | RegExp)[] - roots?: Array - dependencyType?: string - resolveToContext?: boolean - pnp?: boolean -} - export interface RawResolveTsconfigOptions { configFile: string referencesType: "auto" | "manual" | "disabled" references?: Array } -export interface RawResolveTsconfigOptions { - configFile: string - referencesType: "auto" | "manual" | "disabled" - references?: Array -} - -export interface RawRsdoctorPluginOptions { - moduleGraphFeatures: boolean | Array<'graph' | 'ids' | 'sources'> - chunkGraphFeatures: boolean | Array<'graph' | 'assets'> - sourceMapFeatures?: { module?: boolean; cheap?: boolean } | undefined -} - export interface RawRsdoctorPluginOptions { moduleGraphFeatures: boolean | Array<'graph' | 'ids' | 'sources'> chunkGraphFeatures: boolean | Array<'graph' | 'assets'> @@ -4863,15 +2625,17 @@ export interface RawRsdoctorPluginOptions { } export interface RawRslibPluginOptions { - interceptApiPlugin: boolean -} - -export interface RawRslibPluginOptions { - interceptApiPlugin: boolean -} - -export interface RawRspackFuture { - + /** + * Intercept partial parse hooks of APIPlugin, expect some statements not to be parsed as API. + * @default `false` + */ + interceptApiPlugin?: boolean + /** + * Use the compact runtime for dynamic import from `modern-module`, commonly used in CommonJS output. + * This field should not be set to `true` when using `modern-module` with ESM output, as it is already in use. + * @default `false` + */ + compactExternalModuleDynamicImport?: boolean } export interface RawRspackFuture { @@ -4885,13 +2649,6 @@ export interface RawRstestPluginOptions { manualMockRoot: string } -export interface RawRstestPluginOptions { - injectModulePathName: boolean - importMetaPathName: boolean - hoistMockModule: boolean - manualMockRoot: string -} - export interface RawRuleSetCondition { type: RawRuleSetConditionType string?: string @@ -4901,23 +2658,6 @@ export interface RawRuleSetCondition { func?: (value: string) => boolean } -export interface RawRuleSetCondition { - type: RawRuleSetConditionType - string?: string - regexp?: RegExp - logical?: Array - array?: Array - func?: (value: string) => boolean -} - -export declare const enum RawRuleSetConditionType { - string = 'string', - regexp = 'regexp', - logical = 'logical', - array = 'array', - func = 'func' -} - export declare const enum RawRuleSetConditionType { string = 'string', regexp = 'regexp', @@ -4932,16 +2672,6 @@ export interface RawRuleSetLogicalConditions { not?: RawRuleSetCondition } -export interface RawRuleSetLogicalConditions { - and?: Array - or?: Array - not?: RawRuleSetCondition -} - -export interface RawRuntimeChunkNameFnCtx { - name: string -} - export interface RawRuntimeChunkNameFnCtx { name: string } @@ -4950,53 +2680,15 @@ export interface RawRuntimeChunkOptions { name: string | ((entrypoint: { name: string }) => string) } -export interface RawRuntimeChunkOptions { - name: string | ((entrypoint: { name: string }) => string) -} - -export interface RawSizeLimitsPluginOptions { - assetFilter?: (assetFilename: string) => boolean - hints?: "error" | "warning" - maxAssetSize?: number - maxEntrypointSize?: number -} - -export interface RawSizeLimitsPluginOptions { - assetFilter?: (assetFilename: string) => boolean - hints?: "error" | "warning" - maxAssetSize?: number - maxEntrypointSize?: number -} - -export interface RawSplitChunkSizes { - sizes: Record -} - -export interface RawSplitChunkSizes { - sizes: Record -} - -export interface RawSplitChunksOptions { - fallbackCacheGroup?: RawFallbackCacheGroupOptions - name?: string | false | Function - filename?: JsFilename - cacheGroups?: Array - /** What kind of chunks should be selected. */ - chunks?: RegExp | 'async' | 'initial' | 'all' | Function - usedExports?: boolean - automaticNameDelimiter?: string - maxAsyncRequests?: number - maxInitialRequests?: number - defaultSizeTypes: Array - minChunks?: number - hidePathInfo?: boolean - minSize?: number | RawSplitChunkSizes - minSizeReduction?: number | RawSplitChunkSizes - enforceSizeThreshold?: number - minRemainingSize?: number | RawSplitChunkSizes - maxSize?: number | RawSplitChunkSizes - maxAsyncSize?: number | RawSplitChunkSizes - maxInitialSize?: number | RawSplitChunkSizes +export interface RawSizeLimitsPluginOptions { + assetFilter?: (assetFilename: string) => boolean + hints?: "error" | "warning" + maxAssetSize?: number + maxEntrypointSize?: number +} + +export interface RawSplitChunkSizes { + sizes: Record } export interface RawSplitChunksOptions { @@ -5026,15 +2718,6 @@ export interface RawStatsOptions { colors: boolean } -export interface RawStatsOptions { - colors: boolean -} - -export interface RawStorageOptions { - type: "filesystem" - directory: string -} - export interface RawStorageOptions { type: "filesystem" directory: string @@ -5046,21 +2729,6 @@ export interface RawSubresourceIntegrityPluginOptions { htmlPlugin: "JavaScript" | "Native" | "Disabled" } -export interface RawSubresourceIntegrityPluginOptions { - integrityCallback?: (data: RawIntegrityData) => void - hashFuncNames: Array - htmlPlugin: "JavaScript" | "Native" | "Disabled" -} - -export interface RawSwcJsMinimizerOptions { - ecma: any - compress: any - mangle: any - format: any - module?: boolean - minify?: boolean -} - export interface RawSwcJsMinimizerOptions { ecma: any compress: any @@ -5078,19 +2746,6 @@ export interface RawSwcJsMinimizerRspackPluginOptions { minimizerOptions: RawSwcJsMinimizerOptions } -export interface RawSwcJsMinimizerRspackPluginOptions { - test?: string | RegExp | (string | RegExp)[] - include?: string | RegExp | (string | RegExp)[] - exclude?: string | RegExp | (string | RegExp)[] - extractComments?: RawExtractComments - minimizerOptions: RawSwcJsMinimizerOptions -} - -export interface RawToOptions { - context: string - absoluteFilename?: string -} - export interface RawToOptions { context: string absoluteFilename?: string @@ -5107,22 +2762,6 @@ export interface RawTraceEvent { categories?: Array } -export interface RawTraceEvent { - name: string - trackName?: string - processName?: string - args?: Record - uuid: number - ts: bigint - ph: string - categories?: Array -} - -export interface RawTrustedTypes { - policyName?: string - onPolicyCreationFailure?: string -} - export interface RawTrustedTypes { policyName?: string onPolicyCreationFailure?: string @@ -5133,21 +2772,6 @@ export interface RealDependencyLocation { end?: SourcePosition } -export interface RealDependencyLocation { - start: SourcePosition - end?: SourcePosition -} - -/** * this is a process level tracing, which means it would be shared by all compilers in the same process - * only the first call would take effect, the following calls would be ignored - * Some code is modified based on - * https://github.com/swc-project/swc/blob/d1d0607158ab40463d1b123fed52cc526eba8385/bindings/binding_core_node/src/util.rs#L29-L58 - * Apache-2.0 licensed - * Author Donny/강동윤 - * Copyright (c) - */ -export declare function registerGlobalTrace(filter: string, layer: "logger" | "perfetto" , output: string): void - /** * this is a process level tracing, which means it would be shared by all compilers in the same process * only the first call would take effect, the following calls would be ignored * Some code is modified based on @@ -5210,110 +2834,6 @@ export declare const enum RegisterJsTapKind { RsdoctorPluginAssets = 48 } -export declare const enum RegisterJsTapKind { - CompilerThisCompilation = 0, - CompilerCompilation = 1, - CompilerMake = 2, - CompilerFinishMake = 3, - CompilerShouldEmit = 4, - CompilerEmit = 5, - CompilerAfterEmit = 6, - CompilerAssetEmitted = 7, - CompilationBuildModule = 8, - CompilationStillValidModule = 9, - CompilationSucceedModule = 10, - CompilationExecuteModule = 11, - CompilationFinishModules = 12, - CompilationOptimizeModules = 13, - CompilationAfterOptimizeModules = 14, - CompilationOptimizeTree = 15, - CompilationOptimizeChunkModules = 16, - CompilationAdditionalTreeRuntimeRequirements = 17, - CompilationRuntimeRequirementInTree = 18, - CompilationRuntimeModule = 19, - CompilationChunkHash = 20, - CompilationChunkAsset = 21, - CompilationProcessAssets = 22, - CompilationAfterProcessAssets = 23, - CompilationSeal = 24, - CompilationAfterSeal = 25, - NormalModuleFactoryBeforeResolve = 26, - NormalModuleFactoryFactorize = 27, - NormalModuleFactoryResolve = 28, - NormalModuleFactoryAfterResolve = 29, - NormalModuleFactoryCreateModule = 30, - NormalModuleFactoryResolveForScheme = 31, - ContextModuleFactoryBeforeResolve = 32, - ContextModuleFactoryAfterResolve = 33, - JavascriptModulesChunkHash = 34, - HtmlPluginBeforeAssetTagGeneration = 35, - HtmlPluginAlterAssetTags = 36, - HtmlPluginAlterAssetTagGroups = 37, - HtmlPluginAfterTemplateExecution = 38, - HtmlPluginBeforeEmit = 39, - HtmlPluginAfterEmit = 40, - RuntimePluginCreateScript = 41, - RuntimePluginLinkPreload = 42, - RuntimePluginLinkPrefetch = 43, - RsdoctorPluginModuleGraph = 44, - RsdoctorPluginChunkGraph = 45, - RsdoctorPluginModuleIds = 46, - RsdoctorPluginModuleSources = 47, - RsdoctorPluginAssets = 48 -} - -export interface RegisterJsTaps { - registerCompilerThisCompilationTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }> - registerCompilerCompilationTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }> - registerCompilerMakeTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => Promise); stage: number; }> - registerCompilerFinishMakeTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }> - registerCompilerShouldEmitTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => boolean | undefined); stage: number; }> - registerCompilerEmitTaps: (stages: Array) => Array<{ function: (() => Promise); stage: number; }> - registerCompilerAfterEmitTaps: (stages: Array) => Array<{ function: (() => Promise); stage: number; }> - registerCompilerAssetEmittedTaps: (stages: Array) => Array<{ function: ((arg: JsAssetEmittedArgs) => Promise); stage: number; }> - registerCompilationBuildModuleTaps: (stages: Array) => Array<{ function: ((arg: Module) => void); stage: number; }> - registerCompilationStillValidModuleTaps: (stages: Array) => Array<{ function: ((arg: Module) => void); stage: number; }> - registerCompilationSucceedModuleTaps: (stages: Array) => Array<{ function: ((arg: Module) => void); stage: number; }> - registerCompilationExecuteModuleTaps: (stages: Array) => Array<{ function: ((arg: JsExecuteModuleArg) => void); stage: number; }> - registerCompilationAdditionalTreeRuntimeRequirementsTaps: (stages: Array) => Array<{ function: ((arg: JsAdditionalTreeRuntimeRequirementsArg) => JsAdditionalTreeRuntimeRequirementsResult | undefined); stage: number; }> - registerCompilationRuntimeRequirementInTreeTaps: (stages: Array) => Array<{ function: ((arg: JsRuntimeRequirementInTreeArg) => JsRuntimeRequirementInTreeResult | undefined); stage: number; }> - registerCompilationRuntimeModuleTaps: (stages: Array) => Array<{ function: ((arg: JsRuntimeModuleArg) => JsRuntimeModule | undefined); stage: number; }> - registerCompilationFinishModulesTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => Promise); stage: number; }> - registerCompilationOptimizeModulesTaps: (stages: Array) => Array<{ function: (() => boolean | undefined); stage: number; }> - registerCompilationAfterOptimizeModulesTaps: (stages: Array) => Array<{ function: (() => void); stage: number; }> - registerCompilationOptimizeTreeTaps: (stages: Array) => Array<{ function: (() => Promise); stage: number; }> - registerCompilationOptimizeChunkModulesTaps: (stages: Array) => Array<{ function: (() => Promise); stage: number; }> - registerCompilationChunkHashTaps: (stages: Array) => Array<{ function: ((arg: Chunk) => Buffer); stage: number; }> - registerCompilationChunkAssetTaps: (stages: Array) => Array<{ function: ((arg: JsChunkAssetArgs) => void); stage: number; }> - registerCompilationProcessAssetsTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => Promise); stage: number; }> - registerCompilationAfterProcessAssetsTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }> - registerCompilationSealTaps: (stages: Array) => Array<{ function: (() => void); stage: number; }> - registerCompilationAfterSealTaps: (stages: Array) => Array<{ function: (() => Promise); stage: number; }> - registerNormalModuleFactoryBeforeResolveTaps: (stages: Array) => Array<{ function: ((arg: JsBeforeResolveArgs) => Promise<[boolean | undefined, JsBeforeResolveArgs]>); stage: number; }> - registerNormalModuleFactoryFactorizeTaps: (stages: Array) => Array<{ function: ((arg: JsFactorizeArgs) => Promise); stage: number; }> - registerNormalModuleFactoryResolveTaps: (stages: Array) => Array<{ function: ((arg: JsResolveArgs) => Promise); stage: number; }> - registerNormalModuleFactoryResolveForSchemeTaps: (stages: Array) => Array<{ function: ((arg: JsResolveForSchemeArgs) => Promise<[boolean | undefined, JsResolveForSchemeArgs]>); stage: number; }> - registerNormalModuleFactoryAfterResolveTaps: (stages: Array) => Array<{ function: ((arg: string) => Promise<[boolean | undefined, JsCreateData | undefined]>); stage: number; }> - registerNormalModuleFactoryCreateModuleTaps: (stages: Array) => Array<{ function: ((arg: JsNormalModuleFactoryCreateModuleArgs) => Promise); stage: number; }> - registerContextModuleFactoryBeforeResolveTaps: (stages: Array) => Array<{ function: ((arg: false | JsContextModuleFactoryBeforeResolveData) => Promise); stage: number; }> - registerContextModuleFactoryAfterResolveTaps: (stages: Array) => Array<{ function: ((arg: false | JsContextModuleFactoryAfterResolveData) => Promise); stage: number; }> - registerJavascriptModulesChunkHashTaps: (stages: Array) => Array<{ function: ((arg: Chunk) => Buffer); stage: number; }> - registerHtmlPluginBeforeAssetTagGenerationTaps: (stages: Array) => Array<{ function: ((arg: JsBeforeAssetTagGenerationData) => JsBeforeAssetTagGenerationData); stage: number; }> - registerHtmlPluginAlterAssetTagsTaps: (stages: Array) => Array<{ function: ((arg: JsAlterAssetTagsData) => JsAlterAssetTagsData); stage: number; }> - registerHtmlPluginAlterAssetTagGroupsTaps: (stages: Array) => Array<{ function: ((arg: JsAlterAssetTagGroupsData) => JsAlterAssetTagGroupsData); stage: number; }> - registerHtmlPluginAfterTemplateExecutionTaps: (stages: Array) => Array<{ function: ((arg: JsAfterTemplateExecutionData) => JsAfterTemplateExecutionData); stage: number; }> - registerHtmlPluginBeforeEmitTaps: (stages: Array) => Array<{ function: ((arg: JsBeforeEmitData) => JsBeforeEmitData); stage: number; }> - registerHtmlPluginAfterEmitTaps: (stages: Array) => Array<{ function: ((arg: JsAfterEmitData) => JsAfterEmitData); stage: number; }> - registerRuntimePluginCreateScriptTaps: (stages: Array) => Array<{ function: ((arg: JsCreateScriptData) => String); stage: number; }> - registerRuntimePluginLinkPreloadTaps: (stages: Array) => Array<{ function: ((arg: JsLinkPreloadData) => String); stage: number; }> - registerRuntimePluginLinkPrefetchTaps: (stages: Array) => Array<{ function: ((arg: JsLinkPrefetchData) => String); stage: number; }> - registerRsdoctorPluginModuleGraphTaps: (stages: Array) => Array<{ function: ((arg: JsRsdoctorModuleGraph) => Promise); stage: number; }> - registerRsdoctorPluginChunkGraphTaps: (stages: Array) => Array<{ function: ((arg: JsRsdoctorChunkGraph) => Promise); stage: number; }> - registerRsdoctorPluginModuleIdsTaps: (stages: Array) => Array<{ function: ((arg: JsRsdoctorModuleIdsPatch) => Promise); stage: number; }> - registerRsdoctorPluginModuleSourcesTaps: (stages: Array) => Array<{ function: ((arg: JsRsdoctorModuleSourcesPatch) => Promise); stage: number; }> - registerRsdoctorPluginAssetsTaps: (stages: Array) => Array<{ function: ((arg: JsRsdoctorAssetPatch) => Promise); stage: number; }> -} - export interface RegisterJsTaps { registerCompilerThisCompilationTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }> registerCompilerCompilationTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }> @@ -5341,11 +2861,11 @@ export interface RegisterJsTaps { registerCompilationAfterProcessAssetsTaps: (stages: Array) => Array<{ function: ((arg: JsCompilation) => void); stage: number; }> registerCompilationSealTaps: (stages: Array) => Array<{ function: (() => void); stage: number; }> registerCompilationAfterSealTaps: (stages: Array) => Array<{ function: (() => Promise); stage: number; }> - registerNormalModuleFactoryBeforeResolveTaps: (stages: Array) => Array<{ function: ((arg: JsBeforeResolveArgs) => Promise<[boolean | undefined, JsBeforeResolveArgs]>); stage: number; }> - registerNormalModuleFactoryFactorizeTaps: (stages: Array) => Array<{ function: ((arg: JsFactorizeArgs) => Promise); stage: number; }> - registerNormalModuleFactoryResolveTaps: (stages: Array) => Array<{ function: ((arg: JsResolveArgs) => Promise); stage: number; }> + registerNormalModuleFactoryBeforeResolveTaps: (stages: Array) => Array<{ function: ((arg: JsResolveData) => Promise<[boolean | undefined, JsResolveData]>); stage: number; }> + registerNormalModuleFactoryFactorizeTaps: (stages: Array) => Array<{ function: ((arg: JsResolveData) => Promise); stage: number; }> + registerNormalModuleFactoryResolveTaps: (stages: Array) => Array<{ function: ((arg: JsResolveData) => Promise); stage: number; }> registerNormalModuleFactoryResolveForSchemeTaps: (stages: Array) => Array<{ function: ((arg: JsResolveForSchemeArgs) => Promise<[boolean | undefined, JsResolveForSchemeArgs]>); stage: number; }> - registerNormalModuleFactoryAfterResolveTaps: (stages: Array) => Array<{ function: ((arg: string) => Promise<[boolean | undefined, JsCreateData | undefined]>); stage: number; }> + registerNormalModuleFactoryAfterResolveTaps: (stages: Array) => Array<{ function: ((arg: JsResolveData) => Promise<[boolean | undefined, JsResolveData]>); stage: number; }> registerNormalModuleFactoryCreateModuleTaps: (stages: Array) => Array<{ function: ((arg: JsNormalModuleFactoryCreateModuleArgs) => Promise); stage: number; }> registerContextModuleFactoryBeforeResolveTaps: (stages: Array) => Array<{ function: ((arg: false | JsContextModuleFactoryBeforeResolveData) => Promise); stage: number; }> registerContextModuleFactoryAfterResolveTaps: (stages: Array) => Array<{ function: ((arg: false | JsContextModuleFactoryAfterResolveData) => Promise); stage: number; }> @@ -5373,22 +2893,6 @@ export interface ResolveResult { moduleType?: string } -export interface ResolveResult { - path?: string - error?: string - /** "type" field in the package.json file */ - moduleType?: string -} - -/** - * Alias Value for [ResolveOptions::alias] and [ResolveOptions::fallback]. - * Use struct because napi don't support structured union now - */ -export interface Restriction { - path?: string - regex?: string -} - /** * Alias Value for [ResolveOptions::alias] and [ResolveOptions::fallback]. * Use struct because napi don't support structured union now @@ -5416,29 +2920,6 @@ export interface SourceMapDevToolPluginOptions { debugIds?: boolean } -export interface SourceMapDevToolPluginOptions { - append?: (false | null) | string | Function - columns?: boolean - fallbackModuleFilenameTemplate?: string | ((info: RawModuleFilenameTemplateFnCtx) => string) - fileContext?: string - filename?: (false | null) | string - module?: boolean - moduleFilenameTemplate?: string | ((info: RawModuleFilenameTemplateFnCtx) => string) - namespace?: string - noSources?: boolean - publicPath?: string - sourceRoot?: string - test?: string | RegExp | (string | RegExp)[] - include?: string | RegExp | (string | RegExp)[] - exclude?: string | RegExp | (string | RegExp)[] - debugIds?: boolean -} - -export interface SourcePosition { - line: number - column?: number -} - export interface SourcePosition { line: number column?: number @@ -5446,20 +2927,12 @@ export interface SourcePosition { export declare function sync(path: string, request: string): ResolveResult -export declare function sync(path: string, request: string): ResolveResult - -export declare function syncTraceEvent(events: Array): void - export declare function syncTraceEvent(events: Array): void export interface SyntheticDependencyLocation { name: string } -export interface SyntheticDependencyLocation { - name: string -} - export interface ThreadsafeNodeFS { writeFile: (name: string, content: Buffer) => Promise removeFile: (name: string) => Promise @@ -5484,14 +2957,6 @@ export interface ThreadsafeNodeFS { export declare function transform(source: string, options: string): Promise -export declare function transform(source: string, options: string): Promise - -export interface TransformOutput { - code: string - map?: string - diagnostics: Array -} - export interface TransformOutput { code: string map?: string @@ -5500,30 +2965,6 @@ export interface TransformOutput { export declare function transformSync(source: string, options: string): TransformOutput -export declare function transformSync(source: string, options: string): TransformOutput - -/** - * Tsconfig Options - * - * Derived from [tsconfig-paths-webpack-plugin](https://github.com/dividab/tsconfig-paths-webpack-plugin#options) - */ -export interface TsconfigOptions { - /** - * Allows you to specify where to find the TypeScript configuration file. - * You may provide - * * a relative path to the configuration file. It will be resolved relative to cwd. - * * an absolute path to the configuration file. - */ - configFile: string - /** - * Support for Typescript Project References. - * - * * `'auto'`: use the `references` field from tsconfig of `config_file`. - * * `string[]`: manually provided relative or absolute path. - */ - references?: 'auto' | string[] -} - /** * Tsconfig Options * diff --git a/crates/binding/index.js b/crates/binding/index.js index c6f637a..d66ba18 100644 --- a/crates/binding/index.js +++ b/crates/binding/index.js @@ -404,8 +404,6 @@ module.exports.Chunks = nativeBinding.Chunks module.exports.CodeGenerationResult = nativeBinding.CodeGenerationResult module.exports.CodeGenerationResults = nativeBinding.CodeGenerationResults module.exports.ConcatenatedModule = nativeBinding.ConcatenatedModule -module.exports.ConcatenatedModule = nativeBinding.ConcatenatedModule -module.exports.ContextModule = nativeBinding.ContextModule module.exports.ContextModule = nativeBinding.ContextModule module.exports.Dependency = nativeBinding.Dependency module.exports.Diagnostics = nativeBinding.Diagnostics @@ -415,75 +413,44 @@ module.exports.EntryDependency = nativeBinding.EntryDependency module.exports.EntryOptionsDto = nativeBinding.EntryOptionsDto module.exports.EntryOptionsDTO = nativeBinding.EntryOptionsDTO module.exports.ExternalModule = nativeBinding.ExternalModule -module.exports.ExternalModule = nativeBinding.ExternalModule module.exports.JsCompilation = nativeBinding.JsCompilation module.exports.JsCompiler = nativeBinding.JsCompiler -module.exports.JsCompiler = nativeBinding.JsCompiler module.exports.JsContextModuleFactoryAfterResolveData = nativeBinding.JsContextModuleFactoryAfterResolveData module.exports.JsContextModuleFactoryBeforeResolveData = nativeBinding.JsContextModuleFactoryBeforeResolveData module.exports.JsDependencies = nativeBinding.JsDependencies module.exports.JsEntries = nativeBinding.JsEntries module.exports.JsExportsInfo = nativeBinding.JsExportsInfo module.exports.JsModuleGraph = nativeBinding.JsModuleGraph -module.exports.JsModuleGraph = nativeBinding.JsModuleGraph module.exports.JsResolver = nativeBinding.JsResolver -module.exports.JsResolver = nativeBinding.JsResolver -module.exports.JsResolverFactory = nativeBinding.JsResolverFactory module.exports.JsResolverFactory = nativeBinding.JsResolverFactory module.exports.JsStats = nativeBinding.JsStats -module.exports.JsStats = nativeBinding.JsStats module.exports.KnownBuildInfo = nativeBinding.KnownBuildInfo module.exports.Module = nativeBinding.Module -module.exports.Module = nativeBinding.Module module.exports.ModuleGraphConnection = nativeBinding.ModuleGraphConnection -module.exports.ModuleGraphConnection = nativeBinding.ModuleGraphConnection -module.exports.NativeWatcher = nativeBinding.NativeWatcher module.exports.NativeWatcher = nativeBinding.NativeWatcher module.exports.NativeWatchResult = nativeBinding.NativeWatchResult -module.exports.NativeWatchResult = nativeBinding.NativeWatchResult -module.exports.NormalModule = nativeBinding.NormalModule module.exports.NormalModule = nativeBinding.NormalModule module.exports.RawExternalItemFnCtx = nativeBinding.RawExternalItemFnCtx -module.exports.RawExternalItemFnCtx = nativeBinding.RawExternalItemFnCtx -module.exports.ReadonlyResourceData = nativeBinding.ReadonlyResourceData module.exports.ReadonlyResourceData = nativeBinding.ReadonlyResourceData module.exports.ResolverFactory = nativeBinding.ResolverFactory -module.exports.ResolverFactory = nativeBinding.ResolverFactory module.exports.Sources = nativeBinding.Sources module.exports.VirtualFileStore = nativeBinding.VirtualFileStore module.exports.JsVirtualFileStore = nativeBinding.JsVirtualFileStore -module.exports.VirtualFileStore = nativeBinding.VirtualFileStore -module.exports.JsVirtualFileStore = nativeBinding.JsVirtualFileStore -module.exports.async = nativeBinding.async module.exports.async = nativeBinding.async module.exports.BuiltinPluginName = nativeBinding.BuiltinPluginName -module.exports.BuiltinPluginName = nativeBinding.BuiltinPluginName -module.exports.cleanupGlobalTrace = nativeBinding.cleanupGlobalTrace module.exports.cleanupGlobalTrace = nativeBinding.cleanupGlobalTrace module.exports.EnforceExtension = nativeBinding.EnforceExtension -module.exports.EnforceExtension = nativeBinding.EnforceExtension -module.exports.EXPECTED_RSPACK_CORE_VERSION = nativeBinding.EXPECTED_RSPACK_CORE_VERSION module.exports.EXPECTED_RSPACK_CORE_VERSION = nativeBinding.EXPECTED_RSPACK_CORE_VERSION module.exports.formatDiagnostic = nativeBinding.formatDiagnostic module.exports.JsLoaderState = nativeBinding.JsLoaderState -module.exports.JsLoaderState = nativeBinding.JsLoaderState module.exports.JsRspackSeverity = nativeBinding.JsRspackSeverity module.exports.loadBrowserslist = nativeBinding.loadBrowserslist module.exports.minify = nativeBinding.minify -module.exports.minify = nativeBinding.minify module.exports.minifySync = nativeBinding.minifySync -module.exports.minifySync = nativeBinding.minifySync -module.exports.RawRuleSetConditionType = nativeBinding.RawRuleSetConditionType module.exports.RawRuleSetConditionType = nativeBinding.RawRuleSetConditionType module.exports.registerGlobalTrace = nativeBinding.registerGlobalTrace -module.exports.registerGlobalTrace = nativeBinding.registerGlobalTrace -module.exports.RegisterJsTapKind = nativeBinding.RegisterJsTapKind module.exports.RegisterJsTapKind = nativeBinding.RegisterJsTapKind module.exports.sync = nativeBinding.sync -module.exports.sync = nativeBinding.sync -module.exports.syncTraceEvent = nativeBinding.syncTraceEvent module.exports.syncTraceEvent = nativeBinding.syncTraceEvent module.exports.transform = nativeBinding.transform -module.exports.transform = nativeBinding.transform -module.exports.transformSync = nativeBinding.transformSync module.exports.transformSync = nativeBinding.transformSync diff --git a/crates/binding/src/loader.rs b/crates/binding/src/loader.rs index 23c463a..5c2ad8e 100644 --- a/crates/binding/src/loader.rs +++ b/crates/binding/src/loader.rs @@ -19,6 +19,10 @@ impl MyBannerLoader { #[rspack_cacheable::cacheable_dyn] #[async_trait::async_trait] impl rspack_core::Loader for MyBannerLoader { + fn identifier(&self) -> rspack_collections::Identifier { + rspack_collections::Identifier::from("builtin:my-banner-loader") + } + async fn run( &self, loader_context: &mut rspack_core::LoaderContext, @@ -36,12 +40,6 @@ impl rspack_core::Loader for MyBannerLoader { } } -impl rspack_collections::Identifiable for MyBannerLoader { - fn identifier(&self) -> rspack_collections::Identifier { - rspack_collections::Identifier::from("builtin:my-banner-loader") - } -} - /// A plugin that provides the `builtin:my-banner-loader` loader to Rspack #[plugin] #[derive(Debug)] diff --git a/package.json b/package.json index f137eea..b9dbb71 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "lint-staged": "lint-staged" }, "dependencies": { - "@rspack/core": "1.5.0-beta.1", + "@rspack/core": "1.5.0", "@rspack-template/binding": "workspace:*" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 915855a..2b001bf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,8 +12,8 @@ importers: specifier: workspace:* version: link:crates/binding '@rspack/core': - specifier: 1.5.0-beta.1 - version: 1.5.0-beta.1 + specifier: 1.5.0 + version: 1.5.0 devDependencies: '@taplo/cli': specifier: ^0.7.0 @@ -587,60 +587,60 @@ packages: '@octokit/types@14.1.0': resolution: {integrity: sha512-1y6DgTy8Jomcpu33N+p5w58l6xyt55Ar2I91RPiIA0xCJBXyUAhXCcmZaDWSANiha7R9a6qJJ2CRomGPZ6f46g==} - '@rspack/binding-darwin-arm64@1.5.0-beta.1': - resolution: {integrity: sha512-aXSbz9Bo480xNDK6v64SZ19I/bmMuxaOuex6V9q0S+v3qx/ZsUWL+5aUd71scq7EfAb3KkvQFsYACpt5PMZ9DQ==} + '@rspack/binding-darwin-arm64@1.5.0': + resolution: {integrity: sha512-7909YLNnKf0BYxiCpCWOk13WyWS4493Kxk1NQwy9KPLY9ydQExk84KVsix2NuNBaI8Pnk3aVLBPJiSNXtHLjnA==} cpu: [arm64] os: [darwin] - '@rspack/binding-darwin-x64@1.5.0-beta.1': - resolution: {integrity: sha512-addeCT0bXtfOfvJZdVuHWBl20Cd8RmweOX03OiEH4AmQc9EgUEP/oCGpOmakBXxUCl3x/RnlrXx2nD1uDyuyLA==} + '@rspack/binding-darwin-x64@1.5.0': + resolution: {integrity: sha512-poGuQsGKCMQqSswgrz8X+frqMVTdmtzUDyvi/p9BLwW+2DwWgmywU8jwE+BYtjfWp1tErBSTlLxmEPQTdcIQgQ==} cpu: [x64] os: [darwin] - '@rspack/binding-linux-arm64-gnu@1.5.0-beta.1': - resolution: {integrity: sha512-fYgOfSsA0J0rUA40ZEexrMRKyIVAUo4m0KShTm6yVaAzQHWVZ0xjjcoLFNxCVE7EvAPI7wl9fDOyr7Y8EylVfQ==} + '@rspack/binding-linux-arm64-gnu@1.5.0': + resolution: {integrity: sha512-Bvmk8h3tRhN9UgOtH+vK0SgFM3qEO36eJz7oddOl4lJQxBf2GNA87bGtkMtX+AVPz/PUn7r82uWxrlVNQHAbFg==} cpu: [arm64] os: [linux] - '@rspack/binding-linux-arm64-musl@1.5.0-beta.1': - resolution: {integrity: sha512-wWlOzsoJU2HJyPxoCDScW4zt3+5WO6NI8B7jSmhVA9dfmvCYUKktt/YZpskcgMsvCgtzXTE62wDc+VTQ5ucp9A==} + '@rspack/binding-linux-arm64-musl@1.5.0': + resolution: {integrity: sha512-bH7UwkbACDYT37YnN9kkhaF9niFFK9ndcdNvYFFr1oUT4W9Ie3V9b41EXijqp3pyh0mDSeeLPFY0aEx1t3e7Pw==} cpu: [arm64] os: [linux] - '@rspack/binding-linux-x64-gnu@1.5.0-beta.1': - resolution: {integrity: sha512-OlgQIQLDLDDXvbUYBEfZmofO3uTDi0rGfIr58PXz/wTF87KdwqlU0HyjIeaeDUaQlV+lNXNysuCwvI0hl/o2tw==} + '@rspack/binding-linux-x64-gnu@1.5.0': + resolution: {integrity: sha512-xZ5dwNrE5KtpQyMd9israpJTcTQ3UYUUq23fTcNc79xE5aspkGixDFAYoql4YkhO0O+JWRmdSaFAn6jD+IQWQA==} cpu: [x64] os: [linux] - '@rspack/binding-linux-x64-musl@1.5.0-beta.1': - resolution: {integrity: sha512-LkQSyfyf5Jy0UGD0tvm2Gz+0VjboawtRrYd+qYHE0Pm4h7tTJWyqnh02LRTROxOl3GrssC1VGn6J8XYTxOAWug==} + '@rspack/binding-linux-x64-musl@1.5.0': + resolution: {integrity: sha512-mv65jYvcyYPkPZJ9kjSvTAcH0o7C5jfICWCQcMmN1tCGD3b8gmf9GqSZ8e+W/JkuvrJ05qTo/PvEq9nhu+pNIg==} cpu: [x64] os: [linux] - '@rspack/binding-wasm32-wasi@1.5.0-beta.1': - resolution: {integrity: sha512-ysnuVnqC9byoYfoAi/TsV0U5ZUxU0snnVPa/SvQEO6ew3J2GaNDq1vS1zWo0SOA4eLmwkop0/UcH8n3VXOy7NA==} + '@rspack/binding-wasm32-wasi@1.5.0': + resolution: {integrity: sha512-8rVpl6xfaAFJgo1wCd+emksfl+/8nlehrtkmjY9bj79Ou+kp07L9e1B+UU0jfs8e7aLPntQuF68kzLHwYLzWIQ==} cpu: [wasm32] - '@rspack/binding-win32-arm64-msvc@1.5.0-beta.1': - resolution: {integrity: sha512-vcMXybMchQomBODyi6aIMCur8/oQktw+iVv0dH3hiiWy0v2g8xS9VLMjWXfGZAhonhRe7YWTP12dxCPbWmQyZw==} + '@rspack/binding-win32-arm64-msvc@1.5.0': + resolution: {integrity: sha512-dWSmNm+GR6WSkOwbhlUcot4Oqwyon+1PRZ9E0vIMFHKGvESf9CQjgHAX0QE9G0kJmRM5x3I16J4x44Kw3W/98Q==} cpu: [arm64] os: [win32] - '@rspack/binding-win32-ia32-msvc@1.5.0-beta.1': - resolution: {integrity: sha512-fCj904xjc5iKOdUS0VLUE/LbAQZWlub/TF0ZKhzq2UK8WWwrfhA5U8ZHximU0A0LVDoMVZCM5M12rO12P0uHKw==} + '@rspack/binding-win32-ia32-msvc@1.5.0': + resolution: {integrity: sha512-YtOrFEkwhO3Y3sY6Jq0OOYPY7NBTNYuwJ6epTgzPEDGs2cBnwZfzhq0jmD/koWtv1L9+twX95vKosBdauF0tNA==} cpu: [ia32] os: [win32] - '@rspack/binding-win32-x64-msvc@1.5.0-beta.1': - resolution: {integrity: sha512-iWCoFMwP2aUea1mIp2+mTE7IKj6wp9hxMuZgOcEGWQidE7pUss5/Zp3wrOSWnnyovIeQLmK9wsQEA/W3i3MiAQ==} + '@rspack/binding-win32-x64-msvc@1.5.0': + resolution: {integrity: sha512-V4fcPVYWJgDkIkSsFwmUdwC9lkL8+1dzDOwyTWe6KW2MYHF2D148WPHNyVVE6gum12TShpbIsh0j4NiiMhkMtw==} cpu: [x64] os: [win32] - '@rspack/binding@1.5.0-beta.1': - resolution: {integrity: sha512-qZ+cxvsNvXBOPX0NEP+KfxQlJI7TDZR2XLS8Jl+zHl2kgulEOBWsBa7Q1Dcw73YQgz2owxP3OWl3f8LWXnnC1Q==} + '@rspack/binding@1.5.0': + resolution: {integrity: sha512-UGXQmwEu2gdO+tnGv2q4rOWJdWioy6dlLXeZOLYAZVh3mrfKJhZWtDEygX9hCdE5thWNRTlEvx30QQchJAszIQ==} - '@rspack/core@1.5.0-beta.1': - resolution: {integrity: sha512-o3yQreNKldm0k96wPMpXBI9p0B03LpeK3XyV4vhk24RfLIa2p6C2LPF4xn6U2M28CFQkSbeu1vwlMHnfW4xHNg==} + '@rspack/core@1.5.0': + resolution: {integrity: sha512-eEtiKV+CUcAtnt1K+eiHDzmBXQcNM8CfCXOzr0+gHGp4w4Zks2B8RF36sYD03MM2bg8VRXXsf0MicQ8FvRMCOg==} engines: {node: '>=18.12.0'} peerDependencies: '@swc/helpers': '>=0.5.1' @@ -1444,55 +1444,55 @@ snapshots: dependencies: '@octokit/openapi-types': 25.1.0 - '@rspack/binding-darwin-arm64@1.5.0-beta.1': + '@rspack/binding-darwin-arm64@1.5.0': optional: true - '@rspack/binding-darwin-x64@1.5.0-beta.1': + '@rspack/binding-darwin-x64@1.5.0': optional: true - '@rspack/binding-linux-arm64-gnu@1.5.0-beta.1': + '@rspack/binding-linux-arm64-gnu@1.5.0': optional: true - '@rspack/binding-linux-arm64-musl@1.5.0-beta.1': + '@rspack/binding-linux-arm64-musl@1.5.0': optional: true - '@rspack/binding-linux-x64-gnu@1.5.0-beta.1': + '@rspack/binding-linux-x64-gnu@1.5.0': optional: true - '@rspack/binding-linux-x64-musl@1.5.0-beta.1': + '@rspack/binding-linux-x64-musl@1.5.0': optional: true - '@rspack/binding-wasm32-wasi@1.5.0-beta.1': + '@rspack/binding-wasm32-wasi@1.5.0': dependencies: '@napi-rs/wasm-runtime': 1.0.3 optional: true - '@rspack/binding-win32-arm64-msvc@1.5.0-beta.1': + '@rspack/binding-win32-arm64-msvc@1.5.0': optional: true - '@rspack/binding-win32-ia32-msvc@1.5.0-beta.1': + '@rspack/binding-win32-ia32-msvc@1.5.0': optional: true - '@rspack/binding-win32-x64-msvc@1.5.0-beta.1': + '@rspack/binding-win32-x64-msvc@1.5.0': optional: true - '@rspack/binding@1.5.0-beta.1': + '@rspack/binding@1.5.0': optionalDependencies: - '@rspack/binding-darwin-arm64': 1.5.0-beta.1 - '@rspack/binding-darwin-x64': 1.5.0-beta.1 - '@rspack/binding-linux-arm64-gnu': 1.5.0-beta.1 - '@rspack/binding-linux-arm64-musl': 1.5.0-beta.1 - '@rspack/binding-linux-x64-gnu': 1.5.0-beta.1 - '@rspack/binding-linux-x64-musl': 1.5.0-beta.1 - '@rspack/binding-wasm32-wasi': 1.5.0-beta.1 - '@rspack/binding-win32-arm64-msvc': 1.5.0-beta.1 - '@rspack/binding-win32-ia32-msvc': 1.5.0-beta.1 - '@rspack/binding-win32-x64-msvc': 1.5.0-beta.1 - - '@rspack/core@1.5.0-beta.1': + '@rspack/binding-darwin-arm64': 1.5.0 + '@rspack/binding-darwin-x64': 1.5.0 + '@rspack/binding-linux-arm64-gnu': 1.5.0 + '@rspack/binding-linux-arm64-musl': 1.5.0 + '@rspack/binding-linux-x64-gnu': 1.5.0 + '@rspack/binding-linux-x64-musl': 1.5.0 + '@rspack/binding-wasm32-wasi': 1.5.0 + '@rspack/binding-win32-arm64-msvc': 1.5.0 + '@rspack/binding-win32-ia32-msvc': 1.5.0 + '@rspack/binding-win32-x64-msvc': 1.5.0 + + '@rspack/core@1.5.0': dependencies: '@module-federation/runtime-tools': 0.18.0 - '@rspack/binding': 1.5.0-beta.1 + '@rspack/binding': 1.5.0 '@rspack/lite-tapable': 1.0.1 '@rspack/lite-tapable@1.0.1': {}