Unverified Commit 2a10d554 authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

Replace `turbopack://[project]/...` sourcemap uris with `file://...` in development (#71489)

This makes working with devtools more straightforward, reduces our own
overhead when tracing stack frames in the error overlay, etc.

Generated code from Turbopack or Next.js still use
`turbopack://[turbopack]` or `turbopack://[next]` respectively.

Test Plan: 
- [x] Update tests
- [x] CI
- [x]
https://github.com/vercel/next.js/blob/475bdb1f743bf0b3552b40f85b615d87f4ae4904/test/development/app-dir/source-mapping/README.md

---------
Co-authored-by: 's avatarBenjamin Woodruff <benjamin.woodruff@vercel.com>
Co-authored-by: 's avatarTobias Koppers <tobias.koppers@googlemail.com>
parent f5e51078
......@@ -6153,8 +6153,7 @@ dependencies = [
[[package]]
name = "sourcemap"
version = "9.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dab08a862c70980b8e23698b507e272317ae52a608a164a844111f5372374f1f"
source = "git+https://github.com/wbinnssmith/rust-sourcemap?branch=wbinnssmith%2Fignore-list#5ddd8f176e537ced3b024363d3bd04444d442cd7"
dependencies = [
"base64-simd",
"bitvec",
......@@ -8596,6 +8595,7 @@ dependencies = [
"turbo-tasks-memory",
"turbo-tasks-testing",
"unicode-segmentation",
"urlencoding",
]
[[package]]
......
......@@ -216,3 +216,6 @@ unsize = "1.1.0"
url = "2.2.2"
urlencoding = "2.1.2"
webbrowser = "0.8.7"
[patch.crates-io]
sourcemap = { git = "https://github.com/wbinnssmith/rust-sourcemap", branch = "wbinnssmith/ignore-list" }
......@@ -18,12 +18,15 @@ use next_core::tracing_presets::{
TRACING_NEXT_OVERVIEW_TARGETS, TRACING_NEXT_TARGETS, TRACING_NEXT_TURBOPACK_TARGETS,
TRACING_NEXT_TURBO_TASKS_TARGETS,
};
use once_cell::sync::Lazy;
use rand::Rng;
use tokio::{io::AsyncWriteExt, time::Instant};
use tracing::Instrument;
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, EnvFilter, Registry};
use turbo_tasks::{Completion, RcStr, ReadRef, TransientInstance, UpdateInfo, Vc};
use turbo_tasks_fs::{DiskFileSystem, FileContent, FileSystem, FileSystemPath};
use turbo_tasks_fs::{
util::uri_from_file, DiskFileSystem, FileContent, FileSystem, FileSystemPath,
};
use turbopack_core::{
diagnostics::PlainDiagnostic,
error::PrettyPrintError,
......@@ -52,6 +55,8 @@ use crate::register;
/// Used by [`benchmark_file_io`]. This is a noisy benchmark, so set the
/// threshold high.
const SLOW_FILESYSTEM_THRESHOLD: Duration = Duration::from_millis(100);
static SOURCE_MAP_PREFIX_PROJECT: Lazy<String> =
Lazy::new(|| format!("{}[project]/", SOURCE_MAP_PREFIX));
#[napi(object)]
#[derive(Clone, Debug)]
......@@ -1085,7 +1090,7 @@ pub async fn project_trace_source(
let (original_file, line, column, name) = match &*token {
Token::Original(token) => (
&token.original_file,
urlencoding::decode(&token.original_file)?.into_owned(),
// JS stack frames are 1-indexed, source map tokens are 0-indexed
Some(token.original_line as u32 + 1),
Some(token.original_column as u32 + 1),
......@@ -1095,19 +1100,27 @@ pub async fn project_trace_source(
let Some(file) = &token.guessed_original_file else {
return Ok(None);
};
(file, None, None, None)
(file.to_owned(), None, None, None)
}
};
let Some(source_file) = original_file.strip_prefix(SOURCE_MAP_PREFIX) else {
bail!("Original file ({}) outside project", original_file)
};
let project_path_uri =
uri_from_file(project.container.project().project_path(), None).await? + "/";
let (source_file, is_internal) =
if let Some(source_file) = source_file.strip_prefix("[project]/") {
if let Some(source_file) = original_file.strip_prefix(&project_path_uri) {
// Client code uses file://
(source_file, false)
} else {
} else if let Some(source_file) =
original_file.strip_prefix(&*SOURCE_MAP_PREFIX_PROJECT)
{
// Server code uses turbopack://[project]
// TODO should this also be file://?
(source_file, false)
} else if let Some(source_file) = original_file.strip_prefix(SOURCE_MAP_PREFIX) {
// All other code like turbopack://[turbopack] is internal code
(source_file, true)
} else {
bail!("Original file ({}) outside project", original_file)
};
Ok(Some(StackFrame {
......
......@@ -375,7 +375,7 @@ pub async fn get_client_chunking_context(
.module_id_strategy(module_id_strategy);
if next_mode.is_development() {
builder = builder.hot_module_replacement();
builder = builder.hot_module_replacement().use_file_source_map_uris();
}
Ok(Vc::upcast(builder.build()))
......
......@@ -49,6 +49,7 @@ tracing = { workspace = true }
turbo-tasks = { workspace = true }
turbo-tasks-hash = { workspace = true }
unicode-segmentation = { workspace = true }
urlencoding = { workspace = true }
[dev-dependencies]
criterion = { workspace = true, features = ["async_tokio"] }
......
......@@ -4,7 +4,10 @@ use std::{
path::Path,
};
use anyhow::{anyhow, Result};
use anyhow::{anyhow, Context, Result};
use turbo_tasks::Vc;
use crate::{DiskFileSystem, FileSystemPath};
/// Joins two /-separated paths into a normalized path.
/// Paths are concatenated with /.
......@@ -134,3 +137,28 @@ pub fn extract_disk_access<T>(value: io::Result<T>, path: &Path) -> Result<Optio
Err(e) => Err(anyhow!(e).context(format!("reading file {}", path.display()))),
}
}
pub async fn uri_from_file(root: Vc<FileSystemPath>, path: Option<&str>) -> Result<String> {
let root_fs = root.fs();
let root_fs = &*Vc::try_resolve_downcast_type::<DiskFileSystem>(root_fs)
.await?
.context("Expected root to have a DiskFileSystem")?
.await?;
Ok(format!(
"file://{}",
&sys_to_unix(
&root_fs
.to_sys_path(match path {
Some(path) => root.join(path.into()),
None => root,
})
.await?
.to_string_lossy()
)
.split('/')
.map(|s| urlencoding::encode(s))
.collect::<Vec<_>>()
.join("/")
))
}
......@@ -43,6 +43,11 @@ impl BrowserChunkingContextBuilder {
self
}
pub fn use_file_source_map_uris(mut self) -> Self {
self.chunking_context.should_use_file_source_map_uris = true;
self
}
pub fn asset_base_path(mut self, asset_base_path: Vc<Option<RcStr>>) -> Self {
self.chunking_context.asset_base_path = asset_base_path;
self
......@@ -101,6 +106,8 @@ pub struct BrowserChunkingContext {
/// This path get stripped off of chunk paths before generating output asset
/// paths.
context_path: Vc<FileSystemPath>,
/// Whether to write file sources as file:// paths in source maps
should_use_file_source_map_uris: bool,
/// This path is used to compute the url to request chunks from
output_root: Vc<FileSystemPath>,
/// This path is used to compute the url to request assets from
......@@ -150,6 +157,7 @@ impl BrowserChunkingContext {
output_root,
client_root,
chunk_root_path,
should_use_file_source_map_uris: false,
reference_chunk_source_maps: true,
reference_css_chunk_source_maps: true,
asset_root_path,
......@@ -350,6 +358,11 @@ impl ChunkingContext for BrowserChunkingContext {
Vc::cell(self.enable_hot_module_replacement)
}
#[turbo_tasks::function]
fn should_use_file_source_map_uris(&self) -> Vc<bool> {
Vc::cell(self.should_use_file_source_map_uris)
}
#[turbo_tasks::function]
async fn chunk_group(
self: Vc<Self>,
......
......@@ -46,6 +46,7 @@ pub fn get_client_chunking_context(
RuntimeType::Development,
)
.hot_module_replacement()
.use_file_source_map_uris()
.build(),
)
}
......
......@@ -51,6 +51,8 @@ pub struct EntryChunkGroupResult {
#[turbo_tasks::value_trait]
pub trait ChunkingContext {
fn name(self: Vc<Self>) -> Vc<RcStr>;
fn should_use_file_source_map_uris(self: Vc<Self>) -> Vc<bool>;
// Often the project root
fn context_path(self: Vc<Self>) -> Vc<FileSystemPath>;
fn output_root(self: Vc<Self>) -> Vc<FileSystemPath>;
......
......@@ -4,14 +4,20 @@ use std::{
ops,
};
use anyhow::Result;
use anyhow::{Context, Result};
use indexmap::{IndexMap, IndexSet};
use turbo_tasks::Vc;
use turbo_tasks_fs::rope::{Rope, RopeBuilder};
use turbo_tasks_fs::{
rope::{Rope, RopeBuilder},
util::uri_from_file,
DiskFileSystem, FileSystemPath,
};
use turbo_tasks_hash::hash_xxh3_hash64;
use crate::{
source_map::{GenerateSourceMap, OptionSourceMap, SourceMap, SourceMapSection},
source_pos::SourcePos,
SOURCE_MAP_PREFIX,
};
/// A mapping of byte-offset in the code string to an associated source map.
......@@ -176,7 +182,31 @@ impl GenerateSourceMap for Code {
None => SourceMap::empty(),
Some(map) => match *map.generate_source_map().await? {
None => SourceMap::empty(),
Some(map) => map,
Some(map) => {
let map = &*map.await?;
let map = map.to_source_map().await?;
match map.as_regular_source_map() {
None => SourceMap::empty(),
Some(map) => {
let mut map = map.into_owned();
let mut ignored_ids = IndexSet::new();
for (src_id, src) in map.sources().enumerate() {
if src.starts_with("turbopack://[next]")
|| src.starts_with("turbopack://[turbopack]")
|| src.contains("/node_modules/")
{
ignored_ids.insert(src_id);
}
}
for ignored_id in ignored_ids {
map.add_to_ignore_list(ignored_id as _);
}
SourceMap::new_decoded(sourcemap::DecodedMap::Regular(map)).cell()
}
}
}
},
};
......@@ -197,3 +227,49 @@ impl Code {
Vc::cell(hash)
}
}
/// Turns `turbopack://[project]`` references in sourcemap sources into absolute
/// `file://` uris. This is useful for debugging environments.
#[turbo_tasks::function]
pub async fn fileify_source_map(
map: Vc<OptionSourceMap>,
context_path: Vc<FileSystemPath>,
) -> Result<Vc<OptionSourceMap>> {
let Some(map) = &*map.await? else {
return Ok(OptionSourceMap::none());
};
let flattened = map.await?.to_source_map().await?;
let flattened = flattened.as_regular_source_map();
let Some(flattened) = flattened else {
return Ok(OptionSourceMap::none());
};
let context_fs = context_path.fs();
let context_fs = &*Vc::try_resolve_downcast_type::<DiskFileSystem>(context_fs)
.await?
.context("Expected the chunking context to have a DiskFileSystem")?
.await?;
let prefix = format!("{}[{}]/", SOURCE_MAP_PREFIX, context_fs.name);
let mut transformed = flattened.into_owned();
let mut updates = IndexMap::new();
for (src_id, src) in transformed.sources().enumerate() {
let src = {
match src.strip_prefix(&prefix) {
Some(src) => uri_from_file(context_path, Some(src)).await?,
None => src.to_string(),
}
};
updates.insert(src_id, src);
}
for (src_id, src) in updates {
transformed.set_source(src_id as _, &src);
}
Ok(Vc::cell(Some(
SourceMap::new_decoded(sourcemap::DecodedMap::Regular(transformed)).cell(),
)))
}
use std::{borrow::Cow, io::Write, ops::Deref, sync::Arc};
use anyhow::Result;
use indexmap::IndexSet;
use once_cell::sync::Lazy;
use ref_cast::RefCast;
use regex::Regex;
......@@ -406,18 +407,30 @@ impl SourceMap {
.collect::<Vec<_>>();
let mut new_sources = Vec::with_capacity(count);
let mut new_source_contents = Vec::with_capacity(count);
for (source, source_content) in sources.into_iter().zip(source_contents.into_iter()) {
let mut ignored_sources = IndexSet::new();
for (src_id, (source, source_content)) in sources
.into_iter()
.zip(source_contents.into_iter())
.enumerate()
{
let (source, name) = resolve_source(source, source_content, origin).await?;
if source.starts_with("turbopack://[next]")
|| source.starts_with("turbopack://[turbopack]")
|| source.contains("/node_modules/")
{
ignored_sources.insert(src_id);
}
new_sources.push(source);
new_source_contents.push(Some(name));
}
Ok(RegularMap::new(
file,
tokens,
names,
new_sources,
Some(new_source_contents),
))
let mut map =
RegularMap::new(file, tokens, names, new_sources, Some(new_source_contents));
for ignored_source in ignored_sources {
map.add_to_ignore_list(ignored_source as _);
}
Ok(map)
}
async fn decoded_map_with_resolved_sources(
map: &CrateMapWrapper,
......
......@@ -14,7 +14,7 @@ use turbopack_core::{
round_chunk_item_size, AsyncModuleInfo, Chunk, ChunkItem, ChunkItemWithAsyncModuleInfo,
ChunkType, ChunkableModule, ChunkingContext, ModuleId, OutputChunk, OutputChunkRuntimeInfo,
},
code_builder::{Code, CodeBuilder},
code_builder::{fileify_source_map, Code, CodeBuilder},
ident::AssetIdent,
introspect::{
module::IntrospectableModule,
......@@ -78,7 +78,24 @@ impl CssChunk {
writeln!(body, "/* {} */", id)?;
let close = write_import_context(&mut body, content.import_context).await?;
body.push_source(&content.inner_code, content.source_map.map(Vc::upcast));
let source_map = if *self
.chunking_context()
.should_use_file_source_map_uris()
.await?
{
let source_map = content.source_map.map(|m| m.generate_source_map());
match source_map {
Some(map) => {
(*(fileify_source_map(map, self.chunking_context().context_path()).await?))
.map(Vc::upcast)
}
None => None,
}
} else {
content.source_map.map(Vc::upcast)
};
body.push_source(&content.inner_code, source_map);
writeln!(body, "{close}")?;
writeln!(body)?;
......
......@@ -3,10 +3,10 @@ use std::io::Write;
use anyhow::{bail, Result};
use serde::{Deserialize, Serialize};
use turbo_tasks::{trace::TraceRawVcs, Upcast, ValueToString, Vc};
use turbo_tasks_fs::rope::Rope;
use turbo_tasks_fs::{rope::Rope, FileSystemPath};
use turbopack_core::{
chunk::{AsyncModuleInfo, ChunkItem, ChunkItemExt, ChunkingContext},
code_builder::{Code, CodeBuilder},
code_builder::{fileify_source_map, Code, CodeBuilder},
error::PrettyPrintError,
issue::{code_gen::CodeGenerationIssue, IssueExt, IssueSeverity, StyledString},
source_map::GenerateSourceMap,
......@@ -24,6 +24,7 @@ pub struct EcmascriptChunkItemContent {
pub inner_code: Rope,
pub source_map: Option<Vc<Box<dyn GenerateSourceMap>>>,
pub options: EcmascriptChunkItemOptions,
pub rewrite_source_path: Option<Vc<FileSystemPath>>,
pub placeholder_for_future_extensions: (),
}
......@@ -46,6 +47,11 @@ impl EcmascriptChunkItemContent {
let async_module = async_module_options.await?.clone_value();
Ok(EcmascriptChunkItemContent {
rewrite_source_path: if *chunking_context.should_use_file_source_map_uris().await? {
Some(chunking_context.context_path())
} else {
None
},
inner_code: content.inner_code.clone(),
source_map: content.source_map,
options: if content.is_esm {
......@@ -144,7 +150,19 @@ impl EcmascriptChunkItemContent {
code += "{\n";
}
code.push_source(&self.inner_code, self.source_map);
let source_map = if let Some(rewrite_source_path) = self.rewrite_source_path {
let source_map = self.source_map.map(|m| m.generate_source_map());
match source_map {
Some(map) => fileify_source_map(map, rewrite_source_path)
.await?
.map(Vc::upcast),
None => None,
}
} else {
self.source_map
};
code.push_source(&self.inner_code, source_map);
if let Some(opts) = &self.options.async_module {
write!(
......
......@@ -231,6 +231,11 @@ impl ChunkingContext for NodeJsChunkingContext {
Vc::cell(true)
}
#[turbo_tasks::function]
fn should_use_file_source_map_uris(&self) -> Vc<bool> {
Vc::cell(false)
}
#[turbo_tasks::function]
async fn asset_path(
&self,
......
......@@ -6,6 +6,6 @@
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/index.js"],"sourcesContent":["import { bar } from \"bar\";\nimport \"./shared\";\n\nbar(true);\n\nimport(\"./import\").then(({ foo }) => {\n foo(true);\n});\n"],"names":[],"mappings":";AAAA;AACA;;;AAEA,CAAA,GAAA,yNAAA,CAAA,MAAG,AAAD,EAAE;AAEJ,6KAAmB,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE;IAC9B,IAAI;AACN"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/bar/index.js"],"sourcesContent":["export function bar(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB"}},
{"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/bar/index.js"],"sourcesContent":["export function bar(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB","ignoreList":[0]}},
{"offset": {"line": 34, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/import.js"],"sourcesContent":["import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport \"./shared\";\n\nfoo(true);\nbar(true);\n"],"names":[],"mappings":";AAAA;AACA;AACA;;;;AAEA,CAAA,GAAA,yNAAA,CAAA,MAAG,AAAD,EAAE;AACJ,CAAA,GAAA,yNAAA,CAAA,MAAG,AAAD,EAAE"}},
{"offset": {"line": 16, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB","ignoreList":[0]}},
{"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -6,6 +6,6 @@
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/index.js"],"sourcesContent":["import { bar } from \"bar\";\nimport \"./shared\";\n\nbar(true);\n\nimport(\"./import\").then(({ foo }) => {\n foo(true);\n});\n"],"names":[],"mappings":";AAAA;AACA;;;AAEA,CAAA,GAAA,+NAAA,CAAA,MAAG,AAAD,EAAE;AAEJ,mLAAmB,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE;IAC9B,IAAI;AACN"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/bar/index.js"],"sourcesContent":["export function bar(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB"}},
{"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/bar/index.js"],"sourcesContent":["export function bar(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB","ignoreList":[0]}},
{"offset": {"line": 34, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/import.js"],"sourcesContent":["import { foo } from \"foo\";\nimport { bar } from \"bar\";\nimport \"./shared\";\n\nfoo(true);\nbar(true);\n"],"names":[],"mappings":";AAAA;AACA;AACA;;;;AAEA,CAAA,GAAA,+NAAA,CAAA,MAAG,AAAD,EAAE;AACJ,CAAA,GAAA,+NAAA,CAAA,MAAG,AAAD,EAAE"}},
{"offset": {"line": 16, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB","ignoreList":[0]}},
{"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/index.js"],"sourcesContent":["import { foo } from \"foo\";\n\nfoo(true);\n"],"names":[],"mappings":";AAAA;;AAEA,CAAA,GAAA,qNAAA,CAAA,MAAG,AAAD,EAAE"}},
{"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB"}},
{"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/chunked/input/node_modules/foo/index.js"],"sourcesContent":["export function foo(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB","ignoreList":[0]}},
{"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/index.js"],"sourcesContent":["#!/usr/bin/env node\n\nimport { foo } from \"foo\";\n\nfoo(true);\n"],"names":[],"mappings":";AAEA;;AAEA,CAAA,GAAA,qNAAA,CAAA,MAAG,AAAD,EAAE"}},
{"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/node_modules/foo/index.js"],"sourcesContent":["#!/usr/bin/env node\n\nexport function foo(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAEO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB"}},
{"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/shebang/input/node_modules/foo/index.js"],"sourcesContent":["#!/usr/bin/env node\n\nexport function foo(value) {\n console.assert(value);\n}\n"],"names":[],"mappings":";;;AAEO,SAAS,IAAI,KAAK;IACvB,QAAQ,MAAM,CAAC;AACjB","ignoreList":[0]}},
{"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -2,6 +2,6 @@
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.css"],"sourcesContent":[".foo-style { color: green; }\n"],"names":[],"mappings":"AAAA"}},
{"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.css"],"sourcesContent":[".foo-style { color: green; }\n"],"names":[],"mappings":"AAAA","ignoreList":[0]}},
{"offset": {"line": 1, "column": 23}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -2,6 +2,6 @@
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css"],"sourcesContent":[".foo-module-style { color: blue; }\n"],"names":[],"mappings":"AAAA"}},
{"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css"],"sourcesContent":[".foo-module-style { color: blue; }\n"],"names":[],"mappings":"AAAA","ignoreList":[0]}},
{"offset": {"line": 1, "column": 51}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -6,6 +6,6 @@
{"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 18, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/index.js"],"sourcesContent":["import \"foo/style.css\";\nimport \"foo\";\nimport \"./style.css\";\nimport fooStyle from \"foo/style.module.css\";\nimport style from \"./style.module.css\";\n\nconsole.log(style, fooStyle, import(\"foo\"));\n"],"names":[],"mappings":";AAGA;AACA;;;;;;AAEA,QAAQ,GAAG,CAAC,oMAAA,CAAA,UAAK,EAAE,2NAAA,CAAA,UAAQ"}},
{"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)"],"sourcesContent":["__turbopack_export_value__({\n \"foo-module-style\": \"style-module__CEkn7G__foo-module-style\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA"}},
{"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css [test] (css module)"],"sourcesContent":["__turbopack_export_value__({\n \"foo-module-style\": \"style-module__CEkn7G__foo-module-style\",\n});\n"],"names":[],"mappings":"AAAA;AACA;AACA","ignoreList":[0]}},
{"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -2,7 +2,7 @@
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.css"],"sourcesContent":[".foo-style { color: green; }\n"],"names":[],"mappings":"AAAA"}},
{"offset": {"line": 1, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.css"],"sourcesContent":[".foo-style { color: green; }\n"],"names":[],"mappings":"AAAA","ignoreList":[0]}},
{"offset": {"line": 1, "column": 23}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/imported.css"],"sourcesContent":[".imported {\n color: cyan;\n}\n"],"names":[],"mappings":"AAAA"}},
{"offset": {"line": 4, "column": 21}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
......@@ -10,7 +10,7 @@
{"offset": {"line": 9, "column": 21}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/style.css"],"sourcesContent":["@import url(\"./imported.css\");\n/* De-duplicate similar imports */\n@import url(\"../input/imported.css\");\n/* But not if they have different attributes */\n@import url(\"./imported.css\") layer(layer) print;\n.style {\n color: yellow;\n}\n"],"names":[],"mappings":"AAKA"}},
{"offset": {"line": 14, "column": 18}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css"],"sourcesContent":[".foo-module-style { color: blue; }\n"],"names":[],"mappings":"AAAA"}},
{"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/node_modules/foo/style.module.css"],"sourcesContent":[".foo-module-style { color: blue; }\n"],"names":[],"mappings":"AAAA","ignoreList":[0]}},
{"offset": {"line": 17, "column": 51}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/css/css/input/style.module.css"],"sourcesContent":[".module-style {\n color: magenta;\n > h1,\n + .inner {\n background: purple;\n }\n}\n\n.composed-module-style {\n composes: foo-module-style from \"foo/style.module.css\";\n color: green;\n}\n\n.another-composed-module-style {\n composes: foo-module-style from \"foo/style.module.css\";\n color: yellow;\n}"],"names":[],"mappings":"AAAA,+CAEE,0HAMF,0DAKA"}},
{"offset": {"line": 20, "column": 292}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
......
......@@ -4,10 +4,10 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/emotion/emotion/input/index.js"],"sourcesContent":["/** @jsxImportSource @emotion/react */\n\nimport { jsx } from \"@emotion/react\";\nimport styled from \"@emotion/styled\";\n\nconst StyledButton = styled.button`\n background: blue;\n`;\n\nfunction ClassNameButton({ children }) {\n return (\n <button\n className={css`\n background: blue;\n `}\n >\n {children}\n </button>\n );\n}\n\nconsole.log(StyledButton, ClassNameButton);\n"],"names":[],"mappings":"AAAA,oCAAoC;;AAEpC;AACA;;;;AAEA,MAAM,6BAAe,CAAA,GAAA,wMAAA,CAAA,UAAM,AAAD;;;AAI1B,SAAS,gBAAgB,EAAE,QAAQ,EAAE;IACnC,qBACE,uOAAC;QACC,WAAW,GAAG,CAAC;;MAEf,CAAC;kBAEA;;;;;;AAGP;AAEA,QAAQ,GAAG,CAAC,cAAc"}},
{"offset": {"line": 30, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/jsx-dev-runtime.js"],"sourcesContent":["\"purposefully empty stub\";\n\"@emtion/react/jsx-dev-runtime.js\";\n"],"names":[],"mappings":"AAAA;AACA"}},
{"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/jsx-dev-runtime.js"],"sourcesContent":["\"purposefully empty stub\";\n\"@emtion/react/jsx-dev-runtime.js\";\n"],"names":[],"mappings":"AAAA;AACA","ignoreList":[0]}},
{"offset": {"line": 37, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 42, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/index.js"],"sourcesContent":["\"purposefully empty stub\";\n\"@emtion/react/index.js\";\n"],"names":[],"mappings":"AAAA;AACA"}},
{"offset": {"line": 42, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/index.js"],"sourcesContent":["\"purposefully empty stub\";\n\"@emtion/react/index.js\";\n"],"names":[],"mappings":"AAAA;AACA","ignoreList":[0]}},
{"offset": {"line": 44, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 49, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/styled/index.js"],"sourcesContent":["\"purposefully empty stub\";\n\"@emtion/styled/index.js\";\n"],"names":[],"mappings":"AAAA;AACA"}},
{"offset": {"line": 49, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/styled/index.js"],"sourcesContent":["\"purposefully empty stub\";\n\"@emtion/styled/index.js\";\n"],"names":[],"mappings":"AAAA;AACA","ignoreList":[0]}},
{"offset": {"line": 51, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/index.js"],"sourcesContent":["import { spawn } from \"child_process\";\n\nconst program = ['ls'];\nconst proc = spawn(program[0], ['-la']);\n"],"names":[],"mappings":";AAAA;;AAEA,MAAM,UAAU;IAAC;CAAK;AACtB,MAAM,OAAO,CAAA,GAAA,oOAAA,CAAA,QAAK,AAAD,EAAE,OAAO,CAAC,EAAE,EAAE;IAAC;CAAM"}},
{"offset": {"line": 16, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/node_modules/child_process/index.js"],"sourcesContent":["export function spawn(cmd, args) {\n //\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,MAAM,GAAG,EAAE,IAAI;AAC7B,EAAE;AACJ"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_dynamic/input/node_modules/child_process/index.js"],"sourcesContent":["export function spawn(cmd, args) {\n //\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,MAAM,GAAG,EAAE,IAAI;AAC7B,EAAE;AACJ","ignoreList":[0]}},
{"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/index.js"],"sourcesContent":["import { spawn } from \"child_process\";\n\nlet x = spawn(process.argv[0], [\"-e\", \"console.log('foo');\"]);\n"],"names":[],"mappings":";AAAA;;AAEA,IAAI,IAAI,CAAA,GAAA,sOAAA,CAAA,QAAK,AAAD,EAAE,QAAQ,IAAI,CAAC,EAAE,EAAE;IAAC;IAAM;CAAsB"}},
{"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/node_modules/child_process/index.js"],"sourcesContent":["export function spawn(cmd, args) {\n //\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,MAAM,GAAG,EAAE,IAAI;AAC7B,EAAE;AACJ"}},
{"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node/spawn_node_eval/input/node_modules/child_process/index.js"],"sourcesContent":["export function spawn(cmd, args) {\n //\n}\n"],"names":[],"mappings":";;;AAAO,SAAS,MAAM,GAAG,EAAE,IAAI;AAC7B,EAAE;AACJ","ignoreList":[0]}},
{"offset": {"line": 26, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/styled_components/styled_components/input/index.js"],"sourcesContent":["import styled from \"styled-components\";\n\nconst MyButton = styled.button`\n background: blue;\n`;\n\nconsole.log(MyButton);\n"],"names":[],"mappings":";AAAA;;AAEA,MAAM,WAAW,yMAAA,CAAA,UAAM,CAAC,MAAM;;;EAAA,CAAC;;AAE/B,CAAC;AAED,QAAQ,GAAG,CAAC"}},
{"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/styled-components/index.js"],"sourcesContent":["\"purposefully empty stub\";\n\"styled-components/index.js\"\n"],"names":[],"mappings":"AAAA;AACA"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/styled-components/index.js"],"sourcesContent":["\"purposefully empty stub\";\n\"styled-components/index.js\"\n"],"names":[],"mappings":"AAAA;AACA","ignoreList":[0]}},
{"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -6,8 +6,8 @@
{"offset": {"line": 21, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/mono_transforms/input/packages/app/index.js"],"sourcesContent":["import MyApp from \"component\";\nimport ThirdPartyComponent from \"third_party_component\";\n\nconsole.log(MyApp, ThirdPartyComponent);\n"],"names":[],"mappings":";AAAA;AACA;;;AAEA,QAAQ,GAAG,CAAC,wOAAA,CAAA,UAAK,EAAE,wPAAA,CAAA,UAAmB"}},
{"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 38, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/jsx-dev-runtime.js"],"sourcesContent":["\"purposefully empty stub\";\n\"react/jsx-dev-runtime.js\";\n"],"names":[],"mappings":"AAAA;AACA"}},
{"offset": {"line": 38, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/react/jsx-dev-runtime.js"],"sourcesContent":["\"purposefully empty stub\";\n\"react/jsx-dev-runtime.js\";\n"],"names":[],"mappings":"AAAA;AACA","ignoreList":[0]}},
{"offset": {"line": 40, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 46, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/mono_transforms/input/node_modules/third_party_component/index.js"],"sourcesContent":["export default function ThirdPartyComponent() {\n return <div>Should not be transformed</div>;\n}\n"],"names":[],"mappings":";;;AAAe,SAAS;IACtB,QAAQ,IAAI,yBAAyB,EAAE;AACzC"}},
{"offset": {"line": 46, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/mono_transforms/input/node_modules/third_party_component/index.js"],"sourcesContent":["export default function ThirdPartyComponent() {\n return <div>Should not be transformed</div>;\n}\n"],"names":[],"mappings":";;;AAAe,SAAS;IACtB,QAAQ,IAAI,yBAAyB,EAAE;AACzC","ignoreList":[0]}},
{"offset": {"line": 52, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/swc_transforms/preset_env/input/index.js"],"sourcesContent":["class Foo {}\n\nconsole.log(Foo, [].includes(\"foo\"));\n"],"names":[],"mappings":";;;AAAA,IAAA,AAAM,MAAN,SAAM;;2OAAA;;AAEN,QAAQ,GAAG,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC"}},
{"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@swc/helpers/_/_class_call_check.js"],"sourcesContent":["\"purposefully empty stub\";\n\"@swc/helpers/_/_class_call_check.js\";\n"],"names":[],"mappings":"AAAA;AACA"}},
{"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@swc/helpers/_/_class_call_check.js"],"sourcesContent":["\"purposefully empty stub\";\n\"@swc/helpers/_/_class_call_check.js\";\n"],"names":[],"mappings":"AAAA;AACA","ignoreList":[0]}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -6,6 +6,6 @@
{"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/tsconfig-baseurl/input/index.ts"],"sourcesContent":["import { prop as globalFoo } from \"foo\";\nimport { prop as localFoo } from \"./foo\";\nimport { prop as atFoo } from \"@/foo\";\n\nimport * as bar from \"bar\";\n\nconsole.log(globalFoo, localFoo, atFoo, bar);\n"],"names":[],"mappings":";AAAA;AAIA;;;;;AAEA,QAAQ,GAAG,CAAC,8MAAA,CAAA,OAAS,EAAE,8MAAA,CAAA,OAAQ,EAAE,8MAAA,CAAA,OAAK,EAAE"}},
{"offset": {"line": 25, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/tsconfig-baseurl/input/node_modules/bar/index.js"],"sourcesContent":["export const bar = 'bar';\n"],"names":[],"mappings":";;;AAAO,MAAM,MAAM"}},
{"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/tsconfig-baseurl/input/node_modules/bar/index.js"],"sourcesContent":["export const bar = 'bar';\n"],"names":[],"mappings":";;;AAAO,MAAM,MAAM","ignoreList":[0]}},
{"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/tsconfig-extends-module-full-path/input/index.ts"],"sourcesContent":["import { prop as globalFoo } from \"foo\";\nimport { prop as localFoo } from \"./foo\";\nimport { prop as atFoo } from \"@/foo\";\n\nconsole.log(globalFoo, localFoo, atFoo);\n"],"names":[],"mappings":";AAAA;;;;AAIA,QAAQ,GAAG,CAAC,mMAAA,CAAA,OAAS,EAAE,mMAAA,CAAA,OAAQ,EAAE,mMAAA,CAAA,OAAK"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 19, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/tsconfig-mod/prop.ts"],"sourcesContent":["export const prop = 1;\n"],"names":[],"mappings":";;;AAAO,MAAM,OAAO"}},
{"offset": {"line": 19, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/tsconfig-mod/prop.ts"],"sourcesContent":["export const prop = 1;\n"],"names":[],"mappings":";;;AAAO,MAAM,OAAO","ignoreList":[0]}},
{"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
......@@ -4,6 +4,6 @@
"sections": [
{"offset": {"line": 7, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/typescript/tsconfig-extends-module/input/index.ts"],"sourcesContent":["import { prop as globalFoo } from \"foo\";\nimport { prop as localFoo } from \"./foo\";\nimport { prop as atFoo } from \"@/foo\";\n\nconsole.log(globalFoo, localFoo, atFoo);\n"],"names":[],"mappings":";AAAA;;;;AAIA,QAAQ,GAAG,CAAC,mMAAA,CAAA,OAAS,EAAE,mMAAA,CAAA,OAAQ,EAAE,mMAAA,CAAA,OAAK"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}},
{"offset": {"line": 19, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/tsconfig-mod/prop.ts"],"sourcesContent":["export const prop = 1;\n"],"names":[],"mappings":";;;AAAO,MAAM,OAAO"}},
{"offset": {"line": 19, "column": 0}, "map": {"version":3,"sources":["turbopack://[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/tsconfig-mod/prop.ts"],"sourcesContent":["export const prop = 1;\n"],"names":[],"mappings":";;;AAAO,MAAM,OAAO","ignoreList":[0]}},
{"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":"A"}}]
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment