Fast Rust-based bundler for the web with a modernized webpack API 🦀
354 matches across 9 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | deny.toml | 1 | # This template contains all of the possible sections and their default values |
| LOW | deny.toml | 21 | # `target_family = "unix"` configuration, that only having windows targets in |
| LOW | deny.toml | 41 | #exclude = [] |
| LOW | deny.toml | 61 | |
| LOW | deny.toml | 121 | |
| LOW | deny.toml | 141 | # If true, ignores workspace crates that aren't published, or are only |
| LOW | deny.toml | 161 | # The graph highlighting used when creating dotgraphs for crates |
| LOW | deny.toml | 181 | deny = [ |
| LOW | deny.toml | 201 | # "hyper-rustls", |
| LOW | linting/rspack_collection_hasher/src/lib.rs | 21 | /// |
| LOW | …rspack_loader_swc/src/rsc_transforms/server_actions.rs | 221 | // Prepend an extra byte to the ID, with the following format: |
| LOW | …rspack_loader_swc/src/rsc_transforms/server_actions.rs | 241 | // } |
| LOW | …rspack_loader_swc/src/rsc_transforms/server_actions.rs | 2141 | // This implementation is fast and simple as it allows only one |
| LOW | …/rspack_loader_swc/src/rsc_transforms/to_client_ref.rs | 21 | /// |
| LOW | …/rspack_loader_swc/src/rsc_transforms/to_client_ref.rs | 41 | /// |
| LOW | …/rspack_loader_swc/src/rsc_transforms/to_client_ref.rs | 61 | /// })); |
| LOW | crates/rspack_plugin_schemes/src/http_uri/http_cache.rs | 181 | .unwrap_or(location.clone()), |
| LOW | crates/rspack_plugin_html/src/config.rs | 141 | #[derive(Serialize, Debug)] |
| LOW | crates/rspack_plugin_css/src/plugin/mod.rs | 161 | failed_module: has_failed.identifier(), |
| LOW | crates/rspack_plugin_esm_library/src/optimize_chunks.rs | 21 | /// already have fully executed before the child can resolve its imports — but |
| LOW | crates/rspack_plugin_esm_library/src/optimize_chunks.rs | 761 | (strict_chunks, all_dyn_targets, namespace_targets) |
| LOW | crates/rspack_plugin_lightning_css_minimizer/src/lib.rs | 221 | // enable when we have a better way to handle it. let warnings = warnings.read().expect("should lock"); |
| LOW | crates/rspack_allocator/src/lib.rs | 1 | #[global_allocator] |
| LOW | crates/rspack_loader_runner/src/loader.rs | 21 | pub struct LoaderItem<Context: Send> { |
| LOW | crates/rspack_binding_api/src/lib.rs | 1 | #![recursion_limit = "256"] |
| LOW | crates/rspack_binding_api/src/lib.rs | 21 | //! |
| LOW | crates/rspack_binding_api/src/asset.rs | 41 | pub minimized: Option<bool>, |
| LOW | crates/rspack_binding_api/src/module.rs | 61 | |
| LOW | crates/rspack_binding_api/src/rstest.rs | 21 | } |
| LOW | crates/rspack_binding_api/src/rstest.rs | 41 | pub globals: Option<bool>, |
| LOW | …ck_binding_api/src/raw_options/raw_split_chunks/mod.rs | 61 | #[derive(Debug)] |
| LOW | …s/rspack_binding_api/src/raw_options/raw_module/mod.rs | 301 | pub commonjs: Option<Either<bool, RawJavascriptParserCommonjsOptions>>, |
| LOW | …s/rspack_binding_api/src/raw_options/raw_module/mod.rs | 321 | pub type_reexports_presence: Option<String>, |
| LOW | …k_binding_api/src/raw_options/raw_builtins/raw_copy.rs | 21 | |
| LOW | …k_binding_api/src/raw_options/raw_builtins/raw_copy.rs | 41 | #[debug(skip)] |
| LOW | …k_binding_api/src/raw_options/raw_builtins/raw_copy.rs | 61 | /// The automatic inference rules are as follows: |
| LOW | …k_binding_api/src/raw_options/raw_builtins/raw_copy.rs | 81 | pub glob_options: RawCopyGlobOptions, |
| LOW | …k_binding_api/src/raw_options/raw_builtins/raw_copy.rs | 121 | } |
| LOW | …ates/rspack_binding_api/src/rspack_resolver/options.rs | 21 | |
| LOW | …ates/rspack_binding_api/src/rspack_resolver/options.rs | 41 | /// |
| LOW | …ates/rspack_binding_api/src/rspack_resolver/options.rs | 61 | /// A list of exports fields in description files. |
| LOW | …ates/rspack_binding_api/src/rspack_resolver/options.rs | 81 | pub extension_alias: Option<FxHashMap<String, Vec<String>>>, |
| LOW | …ates/rspack_binding_api/src/rspack_resolver/options.rs | 101 | pub fully_specified: Option<bool>, |
| LOW | …ates/rspack_binding_api/src/rspack_resolver/options.rs | 121 | /// |
| LOW | …ates/rspack_binding_api/src/rspack_resolver/options.rs | 141 | /// On non-Windows systems these requests are resolved as an absolute path first. |
| LOW | crates/rspack_binding_api/src/compilation/entries.rs | 141 | // unimplemented!() |
| LOW | crates/swc_plugin_import/src/legacy_case.rs | 41 | |
| LOW | crates/rspack_loader_lightningcss/src/lib.rs | 101 | let stylesheet = StyleSheet::parse(&content_str, option.clone()).to_rspack_result()?; |
| LOW | crates/rspack_binding_builder_macros/src/lib.rs | 1 | //! Exports a few macros to help you create a custom plugin register with Rspack. |
| LOW | crates/rspack_binding_builder_macros/src/lib.rs | 21 | /// ## Usage |
| LOW | crates/rspack_binding_builder_macros/src/lib.rs | 41 | /// register_plugin!( |
| LOW | crates/rspack_binding_builder_macros/src/lib.rs | 61 | /// const { registerMyBannerPlugin } = require('your-custom-binding'); |
| LOW | …_dependencies/src/circular_dependency_rspack_plugin.rs | 221 | /// counted as a cycle. |
| LOW | crates/rspack_error/src/error.rs | 21 | /// Source code offset. |
| LOW | crates/rspack_error/src/error.rs | 41 | /// The source code block will be displayed only if both source code and labels exist. |
| LOW | crates/rspack_parallel/src/lib.rs | 21 | /// |
| LOW | crates/rspack_parallel/src/scope.rs | 21 | /// asynchronous structured concurrent code more easily. |
| LOW | crates/rspack_parallel/src/scope.rs | 41 | /// rspack_parallel::scope(|token| { |
| LOW | crates/rspack_parallel/src/scope.rs | 61 | /// for i in 0..list.len() { |
| LOW | crates/rspack_sources/src/concat_source.rs | 21 | /// |
| 186 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …ack-test/exampleCases/module-code-splitting/example.js | 5 | print(counter.value); |
| HIGH | …ack-test/exampleCases/module-code-splitting/example.js | 9 | print(counter.value); |
| HIGH | …ack-test/exampleCases/module-code-splitting/example.js | 11 | print(counter.value); |
| HIGH | tests/rspack-test/exampleCases/module/example.js | 3 | print(value); |
| HIGH | tests/rspack-test/exampleCases/module/example.js | 7 | print(value); |
| HIGH | tests/rspack-test/exampleCases/module/example.js | 9 | print(value); |
| HIGH | packages/rspack/src/stats/StatsPrinter.ts | 182 | print( |
| HIGH | packages/rspack-test-tools/src/case/hook.ts | 101 | print(val: sources.Source) { |
| HIGH | packages/rspack-test-tools/src/case/hook.ts | 110 | print(val: Compiler | Compilation) { |
| HIGH | packages/rspack-test-tools/src/helper/serializers.ts | 12 | print(received) { |
| HIGH | packages/rspack-test-tools/src/helper/serializers.ts | 21 | print(received, next) { |
| HIGH | packages/rspack-test-tools/src/helper/serializers.ts | 30 | print(received, next) { |
| HIGH | packages/rspack-test-tools/src/helper/serializers.ts | 40 | print(received, next) { |
| HIGH | packages/rspack-test-tools/src/helper/serializers.ts | 49 | print(received, next) { |
| HIGH | packages/rspack-test-tools/src/helper/expect/error.ts | 13 | print(val: any) { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/rspack_plugin_library/src/umd_library_plugin.rs | 170 | r#"function webpackLoadOptionalExternalModuleAmd({wrapper_arguments}) {{ |
| LOW | crates/rspack_plugin_library/src/umd_library_plugin.rs | 283 | "(function webpackUniversalModuleDefinition(root, factory) {\n", |
| LOW | crates/rspack_plugin_library/src/umd_library_plugin.rs | 427 | expr = format!("(function webpackLoadOptionalExternalModule() {{ try {{ return {expr}; }} catch(e) {{}} }}())" |
| LOW | …/treeShakingCases/namespace-access-var-decl-rhs/lib.js | 9 | export function getDocPermissionTextSendMe() {} |
| LOW | …access-var-decl-rhs/__snapshots__/treeshaking.snap.txt | 46 | function getDocPermissionTextSendMe() {} |
| LOW | …figCases/rule-set/simple-use-fn-array/rspack.config.js | 1 | function createFunctionArrayFromUseArray(useArray) { |
| LOW | …st/configCases/amd/real-amd-libs/webpack-umd-output.js | 1 | (function webpackUniversalModuleDefinition(root, factory) { |
| LOW | …/rspack-test/configCases/tree-shaking/new-url/index.js | 17 | function countSubstringOccurrences(string, substring) { |
| LOW | …ack-test/configCases/inner-graph/issue-11678/module.js | 181 | function showSortManualButtonState() { |
| LOW | …ack-test/configCases/inner-graph/issue-11678/module.js | 217 | async function onInsertFromTemplateDialog() { |
| LOW | …ack-test/configCases/inner-graph/issue-11678/module.js | 1073 | async function doCreateAndShowTableWidget( |
| LOW | …ack-test/configCases/inner-graph/issue-11678/module.js | 2486 | async function showAssignResourcesDialog(appendTo) { |
| LOW | …-test/configCases/inner-graph/altaskitButton/module.js | 104 | value: function componentWillReceiveProps(nextProps) { |
| LOW | …ack-test/configCases/trusted-types/web-worker/index.js | 20 | function createWorkerWithChunkName() { |
| LOW | …ack-test/configCases/trusted-types/web-worker/index.js | 34 | function createWorkerWithChunkNameInnner() { |
| LOW | …/mangle-with-destructuring-assignment/rspack.config.js | 20 | function getJsonCodeGeneratedSource(compiler) { |
| LOW | tests/rspack-test/statsAPICases/numeric-chunk-ids.js | 13 | function expectNullableChunkIdArray(ids) { |
| LOW | tests/rspack-test/exampleCases/wasm-complex/memory.js | 1 | async function getMemoryFromParentInWorker() { |
| LOW | …/e2e/cases/lazy-compilation/cross-origin/index.test.ts | 15 | function createLazyCompilationServer( |
| LOW | packages/rspack/rslib.browser.config.ts | 160 | function copyRspackBrowserRuntimePlugin(): RsbuildPlugin { |
| LOW | packages/rspack/rslib.browser.config.ts | 247 | async function getModuleFederationRuntimeCode() { |
| LOW | packages/rspack/src/RuntimeGlobals.ts | 669 | export function createCompilerRuntimeGlobals( |
| LOW | packages/rspack/src/RuntimeModule.ts | 83 | export function createRenderedRuntimeModule( |
| LOW | packages/rspack/src/rspackOptionsApply.ts | 442 | function getModernModuleCjsExternalType( |
| LOW | packages/rspack/src/sharing/SharePlugin.ts | 75 | export function createProvideShareOptions( |
| LOW | packages/rspack/src/sharing/SharePlugin.ts | 94 | export function createConsumeShareOptions( |
| LOW | packages/rspack/src/sharing/ConsumeSharedPlugin.ts | 37 | export function normalizeConsumeShareOptions( |
| LOW | …ages/rspack/src/builtin-plugin/SwcJsMinimizerPlugin.ts | 230 | function getRawExtractCommentsOptions( |
| LOW | packages/rspack/src/builtin-plugin/ExternalsPlugin.ts | 168 | function getRawExternalItemValueFormFnResult(result?: ExternalItemValue) { |
| LOW | packages/rspack/src/util/fake.ts | 5 | export function createFakeCompilationDependencies( |
| LOW | packages/rspack/src/config/adapterRuleUse.ts | 505 | function createRawModuleRuleUsesImpl( |
| LOW | packages/rspack/src/config/adapter.ts | 172 | function getRawResolveByDependency( |
| LOW | packages/rspack/src/config/adapter.ts | 459 | function getRawRuleSetLogicalConditions( |
| LOW | packages/rspack/src/config/adapter.ts | 483 | function getRawGeneratorOptionsMap( |
| LOW | packages/rspack/src/config/adapter.ts | 563 | function getRawJavascriptParserOptions( |
| LOW | packages/rspack/src/config/adapter.ts | 653 | function getRawCssParserOptionsForCss( |
| LOW | packages/rspack/src/config/adapter.ts | 752 | function getRawAssetGeneratorOptions( |
| LOW | packages/rspack/src/config/adapter.ts | 761 | function getRawAssetInlineGeneratorOptions( |
| LOW | packages/rspack/src/config/adapter.ts | 772 | function getRawAssetResourceGeneratorOptions( |
| LOW | packages/rspack/src/config/adapter.ts | 785 | function getRawAssetGeneratorDataUrl(dataUrl: AssetGeneratorDataUrl) { |
| LOW | packages/rspack/src/config/adapter.ts | 803 | function getRawCssGeneratorOptions( |
| LOW | packages/rspack/src/config/adapter.ts | 812 | function getRawCssAutoOrModuleGeneratorOptions( |
| LOW | packages/rspack/src/config/adapter.ts | 827 | function getRawJsonGeneratorOptions( |
| LOW | packages/rspack/src/container/ModuleFederationPlugin.ts | 169 | function getExternalTypeFromExternal(external: string) { |
| LOW | …rspack/src/builtin-loader/swc/collectTypeScriptInfo.ts | 19 | export function resolveCollectTypeScriptInfo( |
| LOW | packages/rspack/src/builtin-loader/swc/index.ts | 18 | function defaultTargetFromRspackTargets(targets: Record<string, string>) { |
| LOW | …kages/rspack/src/builtin-loader/lightningcss/target.ts | 13 | export function defaultTargetsFromRspackTargets( |
| LOW | packages/rspack/src/loader-runner/service.ts | 112 | export function isWorkerResponseErrorMessage( |
| LOW | packages/rspack/src/loader-runner/worker.ts | 554 | function createWaitForPendingRequest( |
| LOW | packages/rspack-test-tools/src/test/debug.ts | 53 | function generateCaseMetaPathReport(context: ITestContext) { |
| LOW | packages/rspack-test-tools/src/test/debug.ts | 63 | function generateCaseMetaTestConfigReport(context: ITestContext) { |
| LOW | packages/rspack-test-tools/src/test/debug.ts | 74 | function generateReadConfigFileReport(context: ITestContext) { |
| LOW | packages/rspack-test-tools/src/test/debug.ts | 89 | function generateFinalOptionsReport(context: ITestContext) { |
| LOW | packages/rspack-test-tools/src/test/debug.ts | 100 | function generateCreateCompilerInstanceReport(context: ITestContext) { |
| LOW | packages/rspack-test-tools/src/test/debug.ts | 113 | function generateCreateCompilerSetPropertiesReport(context: ITestContext) { |
| LOW | packages/rspack-test-tools/src/test/debug.ts | 125 | function generateBuildMethodReport(context: ITestContext) { |
| LOW | packages/rspack-test-tools/src/test/debug.ts | 154 | function generateBuildWarningReport(context: ITestContext) { |
| LOW | packages/rspack-test-tools/src/test/debug.ts | 164 | function generateRunFindBundleReport(context: ITestContext) { |
| LOW | packages/rspack-test-tools/src/test/debug.ts | 176 | function generateRunGetRunnerReport(context: ITestContext) { |
| LOW | packages/rspack-test-tools/src/case/incremental.ts | 18 | function createHotIncrementalProcessor( |
| 6 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | crates/rspack_plugin_esm_library/src/optimize_chunks.rs | 653 | // Step 1: Collect export names per module per chunk (for non-strict, non-external, |
| LOW | crates/rspack_plugin_esm_library/src/optimize_chunks.rs | 694 | // Step 2: Find modules with conflicting export names (same name in multiple modules) |
| LOW | crates/rspack_plugin_esm_library/src/optimize_chunks.rs | 717 | // Step 3: Only assign namespace names when needed (namespace used as a whole or has conflicts) |
| LOW | …tes/rspack_plugin_rstest/src/mock_method_dependency.rs | 116 | // Step 1: Add placeholder init fragment for hoistable methods |
| LOW | …tes/rspack_plugin_rstest/src/mock_method_dependency.rs | 121 | // Step 2: Hoist @rstest/core import to ensure it comes before all hoisted code |
| LOW | …tes/rspack_plugin_rstest/src/mock_method_dependency.rs | 124 | // Step 3: Transform the source code |
| LOW | …ks/no-emit-on-errors-recover-consecutive/index.test.ts | 8 | // Step 0: initial build succeeds |
| LOW | …ks/no-emit-on-errors-recover-consecutive/index.test.ts | 11 | // Step 1: introduce syntax error |
| LOW | …ks/no-emit-on-errors-recover-consecutive/index.test.ts | 19 | // Step 2: introduce a different syntax error |
| LOW | …ks/no-emit-on-errors-recover-consecutive/index.test.ts | 27 | // Step 3: fix the error → HMR should compare against step 0 (last good compilation) |
| LOW | …2e/cases/hooks/no-emit-on-errors-recover/index.test.ts | 8 | // Step 0: initial build succeeds |
| LOW | …2e/cases/hooks/no-emit-on-errors-recover/index.test.ts | 11 | // Step 1: introduce syntax error → compilation fails, emitOnErrors: false prevents emit |
| LOW | …2e/cases/hooks/no-emit-on-errors-recover/index.test.ts | 20 | // Step 2: fix the error → HMR should compare against step 0 (last good compilation) |
| LOW | …spack/src/builtin-plugin/SubresourceIntegrityPlugin.ts | 209 | // For absolute URLs, we need to check if they're under our publicPath |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | crates/rspack_sources/src/object_pool.rs | 8 | // 3. Cache friendly: 512 bytes can typically utilize CPU cache well |
| MEDIUM | crates/rspack/src/lib.rs | 3 | //! Rspack is a high performance JavaScript bundler written in Rust. It offers strong compatibility with the webpack eco |
| MEDIUM | crates/rspack_core/src/compiler/rebuild.rs | 113 | // Make sure `thisCompilation` hook was called before any other hooks that leverage `JsCompilation`. |
| MEDIUM | .github/workflows/reusable-release-npm.yml | 46 | fail-fast: false # for better utilize ci runners |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | packages/rspack-test-tools/src/runner/web/index.ts | 89 | this.dom.window.document.head.appendChild(cssElement); |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/rspack-test/errorCases/error-missing-file.js | 16 | "message": " × Module not found: Can't resolve './missing' in '<TEST_ROOT>/fixtures/errors' ╭─[4:0] 2 │ 3 |
| MEDIUM | tests/rspack-test/errorCases/error-missing-file.js | 25 | "message": " × Module not found: Can't resolve './dir/missing2' in '<TEST_ROOT>/fixtures/errors' ╭─[12:9] |
| MEDIUM | tests/rspack-test/errorCases/error-missing-file.js | 52 | "message": " × Module not found: Can't resolve './missing' in '<TEST_ROOT>/fixtures/errors' ╭─[4:0] 2 │ 3 |
| MEDIUM | tests/rspack-test/errorCases/error-missing-file.js | 61 | "message": " × Module not found: Can't resolve './dir/missing2' in '<TEST_ROOT>/fixtures/errors' ╭─[12:9] |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/workflows/reusable-build-test.yml | 57 | # If this is to change, make sure to upgrade the ubuntu version in GitHub Actions |
| LOW | .github/workflows/reusable-build-test.yml | 72 | # If this is to change, make sure to upgrade the ubuntu version in GitHub Actions |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …/treeShakingCases/webpack-inner-graph-switch/module.js | 21 | function doSomething(obj) { |
| LOW | …s/rspack-test/normalCases/inner-graph/switch/module.js | 21 | function doSomething(obj) { |