{"record":{"id":"4e73aa930a9eba38","repo":"oven-sh/bun","slug":"nosourcemapsorbytecode","errorCode":null,"errorMessage":"NoSourceMapsOrBytecode","messagePattern":"NoSourceMapsOrBytecode","errorType":"error_code","errorClass":"OutputFileListError","httpStatus":null,"severity":"error","filePath":"src/bundler/linker_context/OutputFileListBuilder.rs","lineNumber":44,"sourceCode":"//!    If we maintain the property that `outputIndexForChunk(chunk[i]) == i`\n//!    then we don't need to do any allocations or extra work to get the output\n//!    file for a chunk.\n\nuse crate::mal_prelude::*;\nuse crate::options::{self, Loader, OutputFile};\nuse crate::{Chunk, LinkerContext};\npub(crate) struct OutputFileList {\n    pub(crate) output_files: Vec<options::OutputFile>,\n    pub(crate) index_for_chunk: u32,\n    pub(crate) index_for_sourcemaps_and_bytecode: Option<u32>,\n    pub(crate) additional_output_files_start: u32,\n\n    pub(crate) total_insertions: u32,\n}\n\n#[derive(thiserror::Error, Debug, Clone, Copy, PartialEq, Eq, strum::IntoStaticStr)]\npub enum OutputFileListError {\n    #[error(\"NoSourceMapsOrBytecode\")]\n    NoSourceMapsOrBytecode,\n}\n\nimpl OutputFileList {\n    pub(crate) fn init(\n        c: &LinkerContext,\n        chunks: &[Chunk],\n        _unused: usize,\n    ) -> Result<Self, crate::Error> {\n        let (length, supplementary_file_count) =\n            OutputFileList::calculate_output_file_list_capacity(c, chunks);\n        let mut output_files: Vec<options::OutputFile> = Vec::with_capacity(length as usize);\n        output_files.resize_with(length as usize, OutputFile::zero_value);\n\n        Ok(Self {\n            output_files,\n            index_for_chunk: 0,\n            index_for_sourcemaps_and_bytecode: if supplementary_file_count == 0 {","sourceCodeStart":26,"sourceCodeEnd":62,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/bundler/linker_context/OutputFileListBuilder.rs#L26-L62","documentation":"Error \"NoSourceMapsOrBytecode\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at src/bundler/linker_context/OutputFileListBuilder.rs:44 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}