Unverified Commit 680081dc authored by Luke Sandberg's avatar Luke Sandberg Committed by GitHub

Optimize esm exports by shifting the protocol burden to getters (#98932)

To support live bindings and cyclic references we bind esm exports as
getter properties. However this is ambiguous with binding raw values, so
we would always use `0` as a tag to flag that the next value was a
_value_ not a getter function.

In practice value exports account for 90% of exports and getters only
10% (from vercel-site). So this changes the protocol so the getter
functions require tags instead saving a small number of bytes in the
output.
parent 62e0b0a8
...@@ -155,12 +155,16 @@ function createModuleWithDirection(id: ModuleId): ModuleWithDirection { ...@@ -155,12 +155,16 @@ function createModuleWithDirection(id: ModuleId): ModuleWithDirection {
} }
type BindingTag = 0 type BindingTag = 0
const BindingTag_Value = 0 as BindingTag const BindingTag_Accessor = 0 as BindingTag
// an arbitrary sequence of bindings as // An arbitrary sequence of bindings, each a prop name followed by either
// - a prop name // - a value to be bound directly, or
// - BindingTag_Value, a value to be bound directly, or // - BindingTag_Accessor and 1 or 2 functions to bind as a getter and setter.
// - 1 or 2 functions to bind as getters and sdetters //
// Values are the common case by a wide margin, so they are the ones left untagged. Tagging the
// accessors instead stays unambiguous even for a value that is itself a function, or the number
// `0`: a tag is always followed by a function, while a bare `0` in the value position is followed
// by the next binding's prop name, or by the end of the array.
type EsmBindings = Array< type EsmBindings = Array<
string | BindingTag | (() => unknown) | ((v: unknown) => void) | unknown string | BindingTag | (() => unknown) | ((v: unknown) => void) | unknown
> >
...@@ -179,19 +183,12 @@ function esm(exports: Exports, bindings: EsmBindings, dynamic?: boolean) { ...@@ -179,19 +183,12 @@ function esm(exports: Exports, bindings: EsmBindings, dynamic?: boolean) {
let i = 0 let i = 0
while (i < bindings.length) { while (i < bindings.length) {
const propName = bindings[i++] as string const propName = bindings[i++] as string
const tagOrFunction = bindings[i++] if (
if (typeof tagOrFunction === 'number') { bindings[i] === BindingTag_Accessor &&
if (tagOrFunction === BindingTag_Value) { typeof bindings[i + 1] === 'function'
defineProp(exports, propName, { ) {
value: bindings[i++], i++
enumerable: true, const getterFn = bindings[i++] as () => unknown
writable: false,
})
} else {
throw new Error(`unexpected tag: ${tagOrFunction}`)
}
} else {
const getterFn = tagOrFunction as () => unknown
if (typeof bindings[i] === 'function') { if (typeof bindings[i] === 'function') {
const setterFn = bindings[i++] as (v: unknown) => void const setterFn = bindings[i++] as (v: unknown) => void
defineProp(exports, propName, { defineProp(exports, propName, {
...@@ -205,6 +202,12 @@ function esm(exports: Exports, bindings: EsmBindings, dynamic?: boolean) { ...@@ -205,6 +202,12 @@ function esm(exports: Exports, bindings: EsmBindings, dynamic?: boolean) {
enumerable: true, enumerable: true,
}) })
} }
} else {
defineProp(exports, propName, {
value: bindings[i++],
enumerable: true,
writable: false,
})
} }
} }
// The properties defined above are already non-configurable and // The properties defined above are already non-configurable and
...@@ -352,8 +355,9 @@ function appendReexportBinding( ...@@ -352,8 +355,9 @@ function appendReexportBinding(
if (descriptor) { if (descriptor) {
if ('value' in descriptor) { if ('value' in descriptor) {
// Code generation only routes immutable imported bindings through this helper, so a data // Code generation only routes immutable imported bindings through this helper, so a data
// descriptor is a constant export and can be captured once. // descriptor is a constant export and can be captured once. Values are untagged; only
bindings.push(exportedName, BindingTag_Value, descriptor.value) // accessors carry a tag.
bindings.push(exportedName, descriptor.value)
return return
} }
if (descriptor.get) { if (descriptor.get) {
...@@ -364,13 +368,17 @@ function appendReexportBinding( ...@@ -364,13 +368,17 @@ function appendReexportBinding(
// and the CommonJS/dynamic-namespace paths create arrows in `createGetter` and // and the CommonJS/dynamic-namespace paths create arrows in `createGetter` and
// `getOwnPropertyDescriptor`. The destination can therefore reuse the exact function instead // `getOwnPropertyDescriptor`. The destination can therefore reuse the exact function instead
// of allocating another wrapper getter. // of allocating another wrapper getter.
bindings.push(exportedName, descriptor.get) bindings.push(exportedName, BindingTag_Accessor, descriptor.get)
return return
} }
} }
// Dynamic/proxy/inherited CommonJS edge cases may not expose a usable own descriptor. // Dynamic/proxy/inherited CommonJS edge cases may not expose a usable own descriptor.
bindings.push(exportedName, () => namespace[importedName]) bindings.push(
exportedName,
BindingTag_Accessor,
() => namespace[importedName]
)
} }
type ReexportedObjects = Record<PropertyKey, unknown>[] type ReexportedObjects = Record<PropertyKey, unknown>[]
...@@ -566,9 +574,10 @@ function interopEsm( ...@@ -566,9 +574,10 @@ function interopEsm(
current = getProto(current) current = getProto(current)
) { ) {
for (const key of Object.getOwnPropertyNames(current)) { for (const key of Object.getOwnPropertyNames(current)) {
bindings.push(key, createGetter(raw, key)) bindings.push(key, BindingTag_Accessor, createGetter(raw, key))
if (defaultLocation === -1 && key === 'default') { if (defaultLocation === -1 && key === 'default') {
defaultLocation = bindings.length - 1 // The index of the tag, so that the tag and the getter can be replaced together below.
defaultLocation = bindings.length - 2
} }
} }
} }
...@@ -577,11 +586,12 @@ function interopEsm( ...@@ -577,11 +586,12 @@ function interopEsm(
// we should set the `default` getter if the imported module is a `.cjs file` // we should set the `default` getter if the imported module is a `.cjs file`
if (!(allowExportDefault && defaultLocation >= 0)) { if (!(allowExportDefault && defaultLocation >= 0)) {
// Replace the binding with one for the namespace itself in order to preserve iteration order. // Replace the binding with one for the namespace itself in order to preserve iteration order.
// Values are untagged, so `raw` is bound directly even when it is itself a function.
if (defaultLocation >= 0) { if (defaultLocation >= 0) {
// Replace the getter with the value // Replace the tag and getter with the value
bindings.splice(defaultLocation, 1, BindingTag_Value, raw) bindings.splice(defaultLocation, 2, raw)
} else { } else {
bindings.push('default', BindingTag_Value, raw) bindings.push('default', raw)
} }
} }
......
...@@ -288,9 +288,11 @@ impl EcmascriptChunkPlaceable for EcmascriptCollectModuleWithChunkGroup { ...@@ -288,9 +288,11 @@ impl EcmascriptChunkPlaceable for EcmascriptCollectModuleWithChunkGroup {
) )
.await?; .await?;
// `getList` is a function declaration that is never reassigned, and it is emitted above
// this call, so the binding can be exported by value. Values need no accessor tag.
writeln!( writeln!(
code, code,
"{TURBOPACK_ESM}([\n {}, ()=>getList\n]);", "{TURBOPACK_ESM}([\n {}, getList\n]);",
StringifyJs(&export), StringifyJs(&export),
)?; )?;
......
...@@ -1262,17 +1262,20 @@ impl EsmExports { ...@@ -1262,17 +1262,20 @@ impl EsmExports {
.into(), .into(),
)); ));
match exprs { match exprs {
// Accessors carry the discriminator, values do not. Values are by far the
// common case, and tagging the accessors is still unambiguous: the tag is
// always followed by a function, while a value of `0` is followed by the next
// binding's name or by the end of the array.
ExportBinding::Getter(getter) => { ExportBinding::Getter(getter) => {
getters.push(Some(Expr::Lit(Lit::Num(Number::from(0))).into()));
getters.push(Some(getter.into())); getters.push(Some(getter.into()));
} }
ExportBinding::GetterSetter(getter, setter) => { ExportBinding::GetterSetter(getter, setter) => {
getters.push(Some(Expr::Lit(Lit::Num(Number::from(0))).into()));
getters.push(Some(getter.into())); getters.push(Some(getter.into()));
getters.push(Some(setter.into())); getters.push(Some(setter.into()));
} }
ExportBinding::Value(value) => { ExportBinding::Value(value) => {
// We need to push a discriminator in this case to make the fact that we are
// binding a value unambiguous to the runtime.
getters.push(Some(Expr::Lit(Lit::Num(Number::from(0))).into()));
getters.push(Some(value.into())); getters.push(Some(value.into()));
} }
ExportBinding::None => {} ExportBinding::None => {}
......
// A CommonJS module whose exports object is a function and which also has an own `default` key.
// Without `__esModule`, the ESM `default` import is the function itself, so interop replaces the
// `default` getter with the function as a plain value, in place, before `afterDefault`.
module.exports = function cjsFunction() {
return 'cjsFunction'
}
module.exports.default = 'defaultProperty'
module.exports.afterDefault = 'afterDefault'
import * as liveDefaultClass from './live_default_class.js' import * as liveDefaultClass from './live_default_class.js'
import * as liveExports from './live_exports.js' import * as liveExports from './live_exports.js'
import * as constDefaultExportFunction from './const_default_export_function.js' import * as constDefaultExportFunction from './const_default_export_function.js'
import * as zeroBeforeAccessor from './zero_before_accessor.js'
import cjsFunctionDefault, * as cjsFunctionNs from './cjs_function_with_default.js'
it('hoisted declarations are live', () => { it('hoisted declarations are live', () => {
expect(liveExports.bar()).toBe('bar') expect(liveExports.bar()).toBe('bar')
...@@ -75,6 +77,41 @@ it('exported bindings that are free vars are live', () => { ...@@ -75,6 +77,41 @@ it('exported bindings that are free vars are live', () => {
expectGetter(ns, liveExports.exportsInfo.g.mangledName) expectGetter(ns, liveExports.exportsInfo.g.mangledName)
}) })
it('a constant 0 directly before an accessor binding is bound as a value', () => {
// Enumerating the namespace means its keys cannot be mangled, so it is emitted under the
// original names and in name order, which puts `zero` immediately before `zeroLive`.
expect(Object.keys(zeroBeforeAccessor)).toEqual([
'setZeroLive',
'zero',
'zeroLive',
])
const ns = moduleNamespaceOf('zero_before_accessor.js')
expectValue(ns, 'zero', 0)
expectGetter(ns, 'zeroLive')
expect(zeroBeforeAccessor.zeroLive).toBe('zeroLive')
zeroBeforeAccessor.setZeroLive('patched')
expect(zeroBeforeAccessor.zeroLive).toBe('patched')
expect(zeroBeforeAccessor.zero).toBe(0)
})
it('CommonJS function exports with a default key bind the function as default', () => {
expect(cjsFunctionDefault).toEqual(expect.any(Function))
expect(cjsFunctionDefault()).toBe('cjsFunction')
// Interop replaces the `default` getter with the exports function itself as a value. That
// swaps an accessor for a value in the middle of the bindings, so the binding after it has to
// stay intact, and in the same position.
expectValue(cjsFunctionNs, 'default', cjsFunctionDefault)
expectGetter(cjsFunctionNs, 'afterDefault')
expect(cjsFunctionNs.afterDefault).toBe('afterDefault')
expect(Object.keys(cjsFunctionNs).slice(-2)).toEqual([
'default',
'afterDefault',
])
})
function expectValue(ns, propName, value) { function expectValue(ns, propName, value) {
expect(Object.getOwnPropertyDescriptor(ns, propName)).toEqual({ expect(Object.getOwnPropertyDescriptor(ns, propName)).toEqual({
value, value,
......
// The bindings array is emitted in export name order, so `zero` lands directly before the
// accessor for `zeroLive`. The runtime has to read the `0` here as the value of `zero`, not as the
// tag that starts `zeroLive`'s accessor.
export const zero = 0
export let zeroLive = 'zeroLive'
export function setZeroLive(v) {
zeroLive = v
}
...@@ -4,12 +4,16 @@ ...@@ -4,12 +4,16 @@
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["cat"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["cat"],
"dogRef", "dogRef",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["dogRef"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["dogRef"],
"getChimera", "getChimera",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["getChimera"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["getChimera"],
"initialCat", "initialCat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["initialCat"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["initialCat"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 2>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 2>");
...@@ -22,12 +26,16 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -22,12 +26,16 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"],
"dogRef", "dogRef",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__["dogRef"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__["dogRef"],
"getChimera", "getChimera",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__7$3e$__["getChimera"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__7$3e$__["getChimera"],
"initialCat", "initialCat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__6$3e$__["initialCat"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__6$3e$__["initialCat"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 3>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 3>");
...@@ -44,6 +52,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -44,6 +52,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>dog, ()=>dog,
(new_dog)=>dog = new_dog (new_dog)=>dog = new_dog
]); ]);
...@@ -79,15 +88,19 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -79,15 +88,19 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"b", "b",
0,
()=>getDog, ()=>getDog,
(new_getDog)=>getDog = new_getDog, (new_getDog)=>getDog = new_getDog,
"c", "c",
0,
()=>setDog, ()=>setDog,
(new_setDog)=>setDog = new_setDog, (new_setDog)=>setDog = new_setDog,
"d", "d",
0,
()=>dogRef, ()=>dogRef,
(new_dogRef)=>dogRef = new_dogRef, (new_dogRef)=>dogRef = new_dogRef,
"dogRef", "dogRef",
0,
()=>dogRef ()=>dogRef
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 0>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 0>");
...@@ -125,6 +138,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack ...@@ -125,6 +138,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack
__turbopack_context__.s([ __turbopack_context__.s([
"e", "e",
0,
()=>cat, ()=>cat,
(new_cat)=>cat = new_cat (new_cat)=>cat = new_cat
]); ]);
...@@ -136,9 +150,11 @@ let cat = 'cat'; ...@@ -136,9 +150,11 @@ let cat = 'cat';
__turbopack_context__.s([ __turbopack_context__.s([
"f", "f",
0,
()=>initialCat, ()=>initialCat,
(new_initialCat)=>initialCat = new_initialCat, (new_initialCat)=>initialCat = new_initialCat,
"initialCat", "initialCat",
0,
()=>initialCat ()=>initialCat
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 5>");
...@@ -152,9 +168,11 @@ const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$ ...@@ -152,9 +168,11 @@ const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$
__turbopack_context__.s([ __turbopack_context__.s([
"g", "g",
0,
()=>getChimera, ()=>getChimera,
(new_getChimera)=>getChimera = new_getChimera, (new_getChimera)=>getChimera = new_getChimera,
"getChimera", "getChimera",
0,
()=>getChimera ()=>getChimera
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 0>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 0>");
...@@ -174,6 +192,7 @@ function getChimera() { ...@@ -174,6 +192,7 @@ function getChimera() {
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$dynamic$2d$import$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/dynamic-import/input/lib.js [test] (ecmascript) <internal part 5>");
......
...@@ -12,6 +12,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -12,6 +12,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>dog, ()=>dog,
(new_dog)=>dog = new_dog (new_dog)=>dog = new_dog
]); ]);
...@@ -57,6 +58,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack ...@@ -57,6 +58,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack
__turbopack_context__.s([ __turbopack_context__.s([
"e", "e",
0,
()=>cat, ()=>cat,
(new_cat)=>cat = new_cat (new_cat)=>cat = new_cat
]); ]);
...@@ -68,6 +70,7 @@ let cat = 'cat'; ...@@ -68,6 +70,7 @@ let cat = 'cat';
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) <internal part 5>");
...@@ -79,9 +82,11 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -79,9 +82,11 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"],
(new_cat)=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"] = new_cat, (new_cat)=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"] = new_cat,
"fakeCat", "fakeCat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) <internal part 2>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js [test] (ecmascript) <internal part 2>");
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/index.js"],"sourcesContent":["import { fakeCat } from './module'\n\nconsole.log(fakeCat)\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,8PAAO"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/index.js"],"sourcesContent":["import { fakeCat } from './module'\n\nconsole.log(fakeCat)\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,8PAAO"}},
{"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;;AAAA,IAAIA,MAAM"}},
{"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,qPAAG,IAAI;AAQP,qPAAG,IAAI"}}, {"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,qPAAG,IAAI;AAQP,qPAAG,IAAI"}},
{"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG"}}, {"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG"}},
{"offset": {"line": 47, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,qPAAG,IAAI"}}, {"offset": {"line": 48, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,qPAAG,IAAI"}},
{"offset": {"line": 57, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, {"offset": {"line": 58, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;;AA4BO,IAAIA,MAAM"}},
{"offset": {"line": 68, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}, {"offset": {"line": 70, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}},
{"offset": {"line": 79, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] {"offset": {"line": 82, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}]
} }
\ No newline at end of file
...@@ -12,12 +12,16 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -12,12 +12,16 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"],
"dogRef", "dogRef",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__["dogRef"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__["dogRef"],
"getChimera", "getChimera",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__7$3e$__["getChimera"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__7$3e$__["getChimera"],
"initialCat", "initialCat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__6$3e$__["initialCat"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__6$3e$__["initialCat"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 3>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 3>");
...@@ -34,6 +38,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -34,6 +38,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>dog, ()=>dog,
(new_dog)=>dog = new_dog (new_dog)=>dog = new_dog
]); ]);
...@@ -69,15 +74,19 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -69,15 +74,19 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"b", "b",
0,
()=>getDog, ()=>getDog,
(new_getDog)=>getDog = new_getDog, (new_getDog)=>getDog = new_getDog,
"c", "c",
0,
()=>setDog, ()=>setDog,
(new_setDog)=>setDog = new_setDog, (new_setDog)=>setDog = new_setDog,
"d", "d",
0,
()=>dogRef, ()=>dogRef,
(new_dogRef)=>dogRef = new_dogRef, (new_dogRef)=>dogRef = new_dogRef,
"dogRef", "dogRef",
0,
()=>dogRef ()=>dogRef
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 0>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 0>");
...@@ -115,6 +124,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack ...@@ -115,6 +124,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack
__turbopack_context__.s([ __turbopack_context__.s([
"e", "e",
0,
()=>cat, ()=>cat,
(new_cat)=>cat = new_cat (new_cat)=>cat = new_cat
]); ]);
...@@ -126,9 +136,11 @@ let cat = 'cat'; ...@@ -126,9 +136,11 @@ let cat = 'cat';
__turbopack_context__.s([ __turbopack_context__.s([
"f", "f",
0,
()=>initialCat, ()=>initialCat,
(new_initialCat)=>initialCat = new_initialCat, (new_initialCat)=>initialCat = new_initialCat,
"initialCat", "initialCat",
0,
()=>initialCat ()=>initialCat
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 5>");
...@@ -142,9 +154,11 @@ const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$ ...@@ -142,9 +154,11 @@ const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$
__turbopack_context__.s([ __turbopack_context__.s([
"g", "g",
0,
()=>getChimera, ()=>getChimera,
(new_getChimera)=>getChimera = new_getChimera, (new_getChimera)=>getChimera = new_getChimera,
"getChimera", "getChimera",
0,
()=>getChimera ()=>getChimera
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 0>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 0>");
...@@ -164,6 +178,7 @@ function getChimera() { ...@@ -164,6 +178,7 @@ function getChimera() {
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 5>");
...@@ -175,8 +190,10 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -175,8 +190,10 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__, ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__,
"lib", "lib",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__ ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 2>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$export$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/export-namespace/input/lib.js [test] (ecmascript) <internal part 2>");
......
...@@ -13,6 +13,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -13,6 +13,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>dog, ()=>dog,
(new_dog)=>dog = new_dog (new_dog)=>dog = new_dog
]); ]);
...@@ -58,6 +59,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack ...@@ -58,6 +59,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack
__turbopack_context__.s([ __turbopack_context__.s([
"e", "e",
0,
()=>cat, ()=>cat,
(new_cat)=>cat = new_cat (new_cat)=>cat = new_cat
]); ]);
...@@ -69,6 +71,7 @@ let cat = 'cat'; ...@@ -69,6 +71,7 @@ let cat = 'cat';
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2d$all$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js [test] (ecmascript) <internal part 5>");
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/index.js"],"sourcesContent":["import { cat as c, dogRef, initialCat, getChimera } from './lib'\n\nconsole.log(c)\n\n// TODO: Execution\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAAC,8PAAC,GAEb,kBAAkB"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/index.js"],"sourcesContent":["import { cat as c, dogRef, initialCat, getChimera } from './lib'\n\nconsole.log(c)\n\n// TODO: Execution\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAAC,8PAAC,GAEb,kBAAkB"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;;AAAA,IAAIA,MAAM"}},
{"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,4PAAG,IAAI;AAQP,4PAAG,IAAI"}}, {"offset": {"line": 25, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,4PAAG,IAAI;AAQP,4PAAG,IAAI"}},
{"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,4PAAG;AAQfD,QAAQC,GAAG,CAAC,4PAAG;AAQfD,QAAQC,GAAG,CAAC,4PAAG"}}, {"offset": {"line": 34, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,4PAAG;AAQfD,QAAQC,GAAG,CAAC,4PAAG;AAQfD,QAAQC,GAAG,CAAC,4PAAG"}},
{"offset": {"line": 48, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,4PAAG,IAAI"}}, {"offset": {"line": 49, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,4PAAG,IAAI"}},
{"offset": {"line": 58, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, {"offset": {"line": 59, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named-all/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;;AA4BO,IAAIA,MAAM"}},
{"offset": {"line": 69, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] {"offset": {"line": 71, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}]
} }
\ No newline at end of file
...@@ -13,6 +13,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -13,6 +13,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>dog, ()=>dog,
(new_dog)=>dog = new_dog (new_dog)=>dog = new_dog
]); ]);
...@@ -58,6 +59,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack ...@@ -58,6 +59,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack
__turbopack_context__.s([ __turbopack_context__.s([
"e", "e",
0,
()=>cat, ()=>cat,
(new_cat)=>cat = new_cat (new_cat)=>cat = new_cat
]); ]);
...@@ -69,6 +71,7 @@ let cat = 'cat'; ...@@ -69,6 +71,7 @@ let cat = 'cat';
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$named$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js [test] (ecmascript) <internal part 5>");
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/index.js"],"sourcesContent":["import { cat as c } from './lib'\n\nconsole.log(c)\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAAC,uPAAC"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/index.js"],"sourcesContent":["import { cat as c } from './lib'\n\nconsole.log(c)\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAEAA,QAAQC,GAAG,CAAC,uPAAC"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;;AAAA,IAAIA,MAAM"}},
{"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,qPAAG,IAAI;AAQP,qPAAG,IAAI"}}, {"offset": {"line": 25, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,qPAAG,IAAI;AAQP,qPAAG,IAAI"}},
{"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG"}}, {"offset": {"line": 34, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG;AAQfD,QAAQC,GAAG,CAAC,qPAAG"}},
{"offset": {"line": 48, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,qPAAG,IAAI"}}, {"offset": {"line": 49, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,qPAAG,IAAI"}},
{"offset": {"line": 58, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;AA4BO,IAAIA,MAAM"}}, {"offset": {"line": 59, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-named/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["cat"],"mappings":";;;;;;AA4BO,IAAIA,MAAM"}},
{"offset": {"line": 69, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}] {"offset": {"line": 71, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}]
} }
\ No newline at end of file
...@@ -13,12 +13,16 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -13,12 +13,16 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"],
"dogRef", "dogRef",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__["dogRef"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__["dogRef"],
"getChimera", "getChimera",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__7$3e$__["getChimera"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__7$3e$__["getChimera"],
"initialCat", "initialCat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__6$3e$__["initialCat"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__6$3e$__["initialCat"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) <internal part 3>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) <internal part 3>");
...@@ -35,6 +39,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -35,6 +39,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>dog, ()=>dog,
(new_dog)=>dog = new_dog (new_dog)=>dog = new_dog
]); ]);
...@@ -70,15 +75,19 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -70,15 +75,19 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"b", "b",
0,
()=>getDog, ()=>getDog,
(new_getDog)=>getDog = new_getDog, (new_getDog)=>getDog = new_getDog,
"c", "c",
0,
()=>setDog, ()=>setDog,
(new_setDog)=>setDog = new_setDog, (new_setDog)=>setDog = new_setDog,
"d", "d",
0,
()=>dogRef, ()=>dogRef,
(new_dogRef)=>dogRef = new_dogRef, (new_dogRef)=>dogRef = new_dogRef,
"dogRef", "dogRef",
0,
()=>dogRef ()=>dogRef
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) <internal part 0>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) <internal part 0>");
...@@ -116,6 +125,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack ...@@ -116,6 +125,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack
__turbopack_context__.s([ __turbopack_context__.s([
"e", "e",
0,
()=>cat, ()=>cat,
(new_cat)=>cat = new_cat (new_cat)=>cat = new_cat
]); ]);
...@@ -127,9 +137,11 @@ let cat = 'cat'; ...@@ -127,9 +137,11 @@ let cat = 'cat';
__turbopack_context__.s([ __turbopack_context__.s([
"f", "f",
0,
()=>initialCat, ()=>initialCat,
(new_initialCat)=>initialCat = new_initialCat, (new_initialCat)=>initialCat = new_initialCat,
"initialCat", "initialCat",
0,
()=>initialCat ()=>initialCat
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) <internal part 5>");
...@@ -143,9 +155,11 @@ const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$ ...@@ -143,9 +155,11 @@ const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$
__turbopack_context__.s([ __turbopack_context__.s([
"g", "g",
0,
()=>getChimera, ()=>getChimera,
(new_getChimera)=>getChimera = new_getChimera, (new_getChimera)=>getChimera = new_getChimera,
"getChimera", "getChimera",
0,
()=>getChimera ()=>getChimera
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) <internal part 0>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) <internal part 0>");
...@@ -165,6 +179,7 @@ function getChimera() { ...@@ -165,6 +179,7 @@ function getChimera() {
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$import$2d$namespace$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-namespace/input/lib.js [test] (ecmascript) <internal part 5>");
......
...@@ -11,6 +11,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -11,6 +11,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>dog, ()=>dog,
(new_dog)=>dog = new_dog (new_dog)=>dog = new_dog
]); ]);
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/index.js"],"sourcesContent":["import './lib'\n"],"names":[],"mappings":";AAAA"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/index.js"],"sourcesContent":["import './lib'\n"],"names":[],"mappings":";AAAA"}},
{"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;AAAA,IAAIA,MAAM"}}, {"offset": {"line": 11, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["dog"],"mappings":";;;;;;AAAA,IAAIA,MAAM"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,8PAAG,IAAI;AAQP,8PAAG,IAAI"}}, {"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;AAEA,8PAAG,IAAI;AAQP,8PAAG,IAAI"}},
{"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,8PAAG;AAQfD,QAAQC,GAAG,CAAC,8PAAG;AAQfD,QAAQC,GAAG,CAAC,8PAAG"}}, {"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":["console","log"],"mappings":";;;;;;;AAIAA,QAAQC,GAAG,CAAC,8PAAG;AAQfD,QAAQC,GAAG,CAAC,8PAAG;AAQfD,QAAQC,GAAG,CAAC,8PAAG"}},
{"offset": {"line": 46, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,8PAAG,IAAI"}}] {"offset": {"line": 47, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/import-side-effect/input/lib.js"],"sourcesContent":["let dog = 'dog'\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction getDog() {\n return dog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nfunction setDog(newDog) {\n dog = newDog\n}\n\ndog += '!'\n\nconsole.log(dog)\n\nexport const dogRef = {\n initial: dog,\n get: getDog,\n set: setDog,\n}\n\nexport let cat = 'cat'\n\nexport const initialCat = cat\n\nexport function getChimera() {\n return cat + dog\n}\n"],"names":[],"mappings":";;;;;AAkBA,8PAAG,IAAI"}}]
} }
\ No newline at end of file
...@@ -5,12 +5,16 @@ ...@@ -5,12 +5,16 @@
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["cat"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["cat"],
"dogRef", "dogRef",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["dogRef"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["dogRef"],
"getChimera", "getChimera",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["getChimera"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["getChimera"],
"initialCat", "initialCat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["initialCat"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["initialCat"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 2>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 2>");
...@@ -23,12 +27,16 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -23,12 +27,16 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"],
"dogRef", "dogRef",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__["dogRef"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__["dogRef"],
"getChimera", "getChimera",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__7$3e$__["getChimera"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__7$3e$__["getChimera"],
"initialCat", "initialCat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__6$3e$__["initialCat"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__6$3e$__["initialCat"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 3>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 3>");
...@@ -45,6 +53,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -45,6 +53,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>dog, ()=>dog,
(new_dog)=>dog = new_dog (new_dog)=>dog = new_dog
]); ]);
...@@ -80,15 +89,19 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -80,15 +89,19 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"b", "b",
0,
()=>getDog, ()=>getDog,
(new_getDog)=>getDog = new_getDog, (new_getDog)=>getDog = new_getDog,
"c", "c",
0,
()=>setDog, ()=>setDog,
(new_setDog)=>setDog = new_setDog, (new_setDog)=>setDog = new_setDog,
"d", "d",
0,
()=>dogRef, ()=>dogRef,
(new_dogRef)=>dogRef = new_dogRef, (new_dogRef)=>dogRef = new_dogRef,
"dogRef", "dogRef",
0,
()=>dogRef ()=>dogRef
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 0>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 0>");
...@@ -126,6 +139,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack ...@@ -126,6 +139,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack
__turbopack_context__.s([ __turbopack_context__.s([
"e", "e",
0,
()=>cat, ()=>cat,
(new_cat)=>cat = new_cat (new_cat)=>cat = new_cat
]); ]);
...@@ -137,9 +151,11 @@ let cat = 'cat'; ...@@ -137,9 +151,11 @@ let cat = 'cat';
__turbopack_context__.s([ __turbopack_context__.s([
"f", "f",
0,
()=>initialCat, ()=>initialCat,
(new_initialCat)=>initialCat = new_initialCat, (new_initialCat)=>initialCat = new_initialCat,
"initialCat", "initialCat",
0,
()=>initialCat ()=>initialCat
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 5>");
...@@ -153,9 +169,11 @@ const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$ ...@@ -153,9 +169,11 @@ const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$
__turbopack_context__.s([ __turbopack_context__.s([
"g", "g",
0,
()=>getChimera, ()=>getChimera,
(new_getChimera)=>getChimera = new_getChimera, (new_getChimera)=>getChimera = new_getChimera,
"getChimera", "getChimera",
0,
()=>getChimera ()=>getChimera
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 0>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 0>");
...@@ -175,6 +193,7 @@ function getChimera() { ...@@ -175,6 +193,7 @@ function getChimera() {
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$require$2d$side$2d$effect$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/require-side-effect/input/lib.js [test] (ecmascript) <internal part 5>");
......
...@@ -4,12 +4,16 @@ ...@@ -4,12 +4,16 @@
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["cat"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["cat"],
"dogRef", "dogRef",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["dogRef"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["dogRef"],
"getChimera", "getChimera",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["getChimera"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["getChimera"],
"initialCat", "initialCat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["initialCat"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$exports$3e$__["initialCat"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 2>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__2$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 2>");
...@@ -22,12 +26,16 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -22,12 +26,16 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__8$3e$__["cat"],
"dogRef", "dogRef",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__["dogRef"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__["dogRef"],
"getChimera", "getChimera",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__7$3e$__["getChimera"], ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__7$3e$__["getChimera"],
"initialCat", "initialCat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__6$3e$__["initialCat"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__6$3e$__["initialCat"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 3>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__3$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 3>");
...@@ -44,6 +52,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -44,6 +52,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>dog, ()=>dog,
(new_dog)=>dog = new_dog (new_dog)=>dog = new_dog
]); ]);
...@@ -79,15 +88,19 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -79,15 +88,19 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"b", "b",
0,
()=>getDog, ()=>getDog,
(new_getDog)=>getDog = new_getDog, (new_getDog)=>getDog = new_getDog,
"c", "c",
0,
()=>setDog, ()=>setDog,
(new_setDog)=>setDog = new_setDog, (new_setDog)=>setDog = new_setDog,
"d", "d",
0,
()=>dogRef, ()=>dogRef,
(new_dogRef)=>dogRef = new_dogRef, (new_dogRef)=>dogRef = new_dogRef,
"dogRef", "dogRef",
0,
()=>dogRef ()=>dogRef
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 0>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 0>");
...@@ -125,6 +138,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack ...@@ -125,6 +138,7 @@ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack
__turbopack_context__.s([ __turbopack_context__.s([
"e", "e",
0,
()=>cat, ()=>cat,
(new_cat)=>cat = new_cat (new_cat)=>cat = new_cat
]); ]);
...@@ -136,9 +150,11 @@ let cat = 'cat'; ...@@ -136,9 +150,11 @@ let cat = 'cat';
__turbopack_context__.s([ __turbopack_context__.s([
"f", "f",
0,
()=>initialCat, ()=>initialCat,
(new_initialCat)=>initialCat = new_initialCat, (new_initialCat)=>initialCat = new_initialCat,
"initialCat", "initialCat",
0,
()=>initialCat ()=>initialCat
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 5>");
...@@ -152,9 +168,11 @@ const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$ ...@@ -152,9 +168,11 @@ const initialCat = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$
__turbopack_context__.s([ __turbopack_context__.s([
"g", "g",
0,
()=>getChimera, ()=>getChimera,
(new_getChimera)=>getChimera = new_getChimera, (new_getChimera)=>getChimera = new_getChimera,
"getChimera", "getChimera",
0,
()=>getChimera ()=>getChimera
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 0>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__0$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 0>");
...@@ -174,6 +192,7 @@ function getChimera() { ...@@ -174,6 +192,7 @@ function getChimera() {
__turbopack_context__.s([ __turbopack_context__.s([
"cat", "cat",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__["e"]
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 5>"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2d$tree$2d$shake$2f$tree$2d$shake$2d$test$2d$1$2f$input$2f$index$2e$js__$5b$test$5d$__$28$ecmascript$29$__$3c$internal__part__5$3e$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic-tree-shake/tree-shake-test-1/input/index.js [test] (ecmascript) <internal part 5>");
......
...@@ -17,6 +17,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -17,6 +17,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"foo", "foo",
0,
()=>foo ()=>foo
]); ]);
function foo(value) { function foo(value) {
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "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,IAAA,gOAAG,EAAC;AACJ,IAAA,gOAAG,EAAC"}}, {"offset": {"line": 4, "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,IAAA,gOAAG,EAAC;AACJ,IAAA,gOAAG,EAAC"}},
{"offset": {"line": 17, "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":["foo","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] {"offset": {"line": 17, "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":["foo","value","console","assert"],"mappings":";;;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}]
} }
\ No newline at end of file
...@@ -17,6 +17,7 @@ __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapsh ...@@ -17,6 +17,7 @@ __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapsh
__turbopack_context__.s([ __turbopack_context__.s([
"bar", "bar",
0,
()=>bar ()=>bar
]); ]);
function bar(value) { function bar(value) {
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "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":["then","foo"],"mappings":";AAAA;AACA;;;AAEA,IAAA,gOAAG,EAAC;AAEJ,yJAAmBA,IAAI,CAAC,CAAC,EAAEC,GAAG,EAAE;IAC9BA,IAAI;AACN"}}, {"offset": {"line": 4, "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":["then","foo"],"mappings":";AAAA;AACA;;;AAEA,IAAA,gOAAG,EAAC;AAEJ,yJAAmBA,IAAI,CAAC,CAAC,EAAEC,GAAG,EAAE;IAC9BA,IAAI;AACN"}},
{"offset": {"line": 17, "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":["bar","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}, {"offset": {"line": 17, "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":["bar","value","console","assert"],"mappings":";;;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}},
{"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/shared.js"],"sourcesContent":["// shared package\n"],"names":[],"mappings":"AAAA,iBAAiB"}}] {"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk/input/shared.js"],"sourcesContent":["// shared package\n"],"names":[],"mappings":"AAAA,iBAAiB"}}]
} }
\ No newline at end of file
...@@ -17,6 +17,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -17,6 +17,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"foo", "foo",
0,
()=>foo ()=>foo
]); ]);
function foo(value) { function foo(value) {
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "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,IAAA,sOAAG,EAAC;AACJ,IAAA,sOAAG,EAAC"}}, {"offset": {"line": 4, "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,IAAA,sOAAG,EAAC;AACJ,IAAA,sOAAG,EAAC"}},
{"offset": {"line": 17, "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":["foo","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] {"offset": {"line": 17, "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":["foo","value","console","assert"],"mappings":";;;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}]
} }
\ No newline at end of file
...@@ -27,6 +27,7 @@ __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapsh ...@@ -27,6 +27,7 @@ __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapsh
__turbopack_context__.s([ __turbopack_context__.s([
"bar", "bar",
0,
()=>bar ()=>bar
]); ]);
function bar(value) { function bar(value) {
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 14, "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":["then","foo"],"mappings":";AAAA;AACA;;;AAEA,IAAA,sOAAG,EAAC;AAEJ,+JAAmBA,IAAI,CAAC,CAAC,EAAEC,GAAG,EAAE;IAC9BA,IAAI;AACN"}}, {"offset": {"line": 14, "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":["then","foo"],"mappings":";AAAA;AACA;;;AAEA,IAAA,sOAAG,EAAC;AAEJ,+JAAmBA,IAAI,CAAC,CAAC,EAAEC,GAAG,EAAE;IAC9BA,IAAI;AACN"}},
{"offset": {"line": 27, "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":["bar","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}, {"offset": {"line": 27, "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":["bar","value","console","assert"],"mappings":";;;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}},
{"offset": {"line": 37, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/shared.js"],"sourcesContent":["// shared package\n"],"names":[],"mappings":"AAAA,iBAAiB"}}] {"offset": {"line": 38, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/async_chunk_build/input/shared.js"],"sourcesContent":["// shared package\n"],"names":[],"mappings":"AAAA,iBAAiB"}}]
} }
\ No newline at end of file
...@@ -12,6 +12,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -12,6 +12,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"foo", "foo",
0,
()=>foo ()=>foo
]); ]);
function foo(value) { function foo(value) {
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "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,IAAA,4NAAG,EAAC"}}, {"offset": {"line": 4, "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,IAAA,4NAAG,EAAC"}},
{"offset": {"line": 12, "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":["foo","value","console","assert"],"mappings":";;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] {"offset": {"line": 12, "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":["foo","value","console","assert"],"mappings":";;;;;AAAO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}]
} }
\ No newline at end of file
...@@ -15,7 +15,6 @@ const b = 2; ...@@ -15,7 +15,6 @@ const b = 2;
const __TURBOPACK__default__export__ = a + b; const __TURBOPACK__default__export__ = a + b;
__turbopack_context__.s([ __turbopack_context__.s([
"default", "default",
0,
__TURBOPACK__default__export__ __TURBOPACK__default__export__
]); ]);
}), }),
......
...@@ -12,6 +12,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -12,6 +12,7 @@ var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"foo", "foo",
0,
()=>foo ()=>foo
]); ]);
function foo(value) { function foo(value) {
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "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,IAAA,4NAAG,EAAC"}}, {"offset": {"line": 4, "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,IAAA,4NAAG,EAAC"}},
{"offset": {"line": 12, "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":["foo","value","console","assert"],"mappings":";;;;AAEO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}] {"offset": {"line": 12, "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":["foo","value","console","assert"],"mappings":";;;;;AAEO,SAASA,IAAIC,KAAK;IACvBC,QAAQC,MAAM,CAACF;AACjB","ignoreList":[0]}}]
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
// `dep2` — exercising a nested dynamic-import boundary that must also inline. // `dep2` — exercising a nested dynamic-import boundary that must also inline.
__turbopack_context__.s([ __turbopack_context__.s([
"dep1", "dep1",
0,
()=>dep1 ()=>dep1
]); ]);
function dep1() { function dep1() {
...@@ -21,6 +22,7 @@ function dep1() { ...@@ -21,6 +22,7 @@ function dep1() {
// Leaf module reached via the nested `import('./dep2')`. // Leaf module reached via the nested `import('./dep2')`.
__turbopack_context__.s([ __turbopack_context__.s([
"dep2", "dep2",
0,
()=>dep2 ()=>dep2
]); ]);
function dep2() { function dep2() {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"version": 3, "version": 3,
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep1.js"],"sourcesContent":["// `dep1` is reached via `import('./dep1')` and itself dynamically imports\n// `dep2` — exercising a nested dynamic-import boundary that must also inline.\nexport function dep1() {\n console.log('dep1')\n import('./dep2').then(({ dep2 }) => {\n dep2()\n })\n}\n"],"names":["dep1","console","log","then","dep2"],"mappings":"AAAA,0EAA0E;AAC1E,8EAA8E;;;;;AACvE,SAASA;IACdC,QAAQC,GAAG,CAAC;IACZ,4KAAiBC,IAAI,CAAC,CAAC,EAAEC,IAAI,EAAE;QAC7BA;IACF;AACF"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep1.js"],"sourcesContent":["// `dep1` is reached via `import('./dep1')` and itself dynamically imports\n// `dep2` — exercising a nested dynamic-import boundary that must also inline.\nexport function dep1() {\n console.log('dep1')\n import('./dep2').then(({ dep2 }) => {\n dep2()\n })\n}\n"],"names":["dep1","console","log","then","dep2"],"mappings":"AAAA,0EAA0E;AAC1E,8EAA8E;;;;;;AACvE,SAASA;IACdC,QAAQC,GAAG,CAAC;IACZ,4KAAiBC,IAAI,CAAC,CAAC,EAAEC,IAAI,EAAE;QAC7BA;IACF;AACF"}},
{"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep2.js"],"sourcesContent":["// Leaf module reached via the nested `import('./dep2')`.\nexport function dep2() {\n console.log('dep2')\n}\n"],"names":["dep2","console","log"],"mappings":"AAAA,yDAAyD;;;;;AAClD,SAASA;IACdC,QAAQC,GAAG,CAAC;AACd"}}, {"offset": {"line": 21, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/dep2.js"],"sourcesContent":["// Leaf module reached via the nested `import('./dep2')`.\nexport function dep2() {\n console.log('dep2')\n}\n"],"names":["dep2","console","log"],"mappings":"AAAA,yDAAyD;;;;;;AAClD,SAASA;IACdC,QAAQC,GAAG,CAAC;AACd"}},
{"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/index.js"],"sourcesContent":["// Service-worker-style entry: the whole transitive closure (including the\n// dynamic `import()` targets) must be inlined into a single output file.\nconsole.log('service worker entry')\n\nimport('./dep1').then(({ dep1 }) => {\n dep1()\n})\n"],"names":["console","log","then","dep1"],"mappings":"AAAA,0EAA0E;AAC1E,yEAAyE;AACzEA,QAAQC,GAAG,CAAC;AAEZ,4KAAiBC,IAAI,CAAC,CAAC,EAAEC,IAAI,EAAE;IAC7BA;AACF"}}] {"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/single-chunk-entry/input/index.js"],"sourcesContent":["// Service-worker-style entry: the whole transitive closure (including the\n// dynamic `import()` targets) must be inlined into a single output file.\nconsole.log('service worker entry')\n\nimport('./dep1').then(({ dep1 }) => {\n dep1()\n})\n"],"names":["console","log","then","dep1"],"mappings":"AAAA,0EAA0E;AAC1E,yEAAyE;AACzEA,QAAQC,GAAG,CAAC;AAEZ,4KAAiBC,IAAI,CAAC,CAAC,EAAEC,IAAI,EAAE;IAC7BA;AACF"}}]
} }
\ No newline at end of file
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
return __turbopack_context__.a(async (__turbopack_handle_async_dependencies__, __turbopack_async_result__) => { try { return __turbopack_context__.a(async (__turbopack_handle_async_dependencies__, __turbopack_async_result__) => { try {
__turbopack_context__.s([ __turbopack_context__.s([
"createUser", "createUser",
0,
()=>createUser ()=>createUser
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$top$2d$level$2d$await$2f$input$2f$db$2d$connection$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/db-connection.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$top$2d$level$2d$await$2f$input$2f$db$2d$connection$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/db-connection.js [test] (ecmascript)");
...@@ -28,8 +29,10 @@ __turbopack_async_result__(); ...@@ -28,8 +29,10 @@ __turbopack_async_result__();
return __turbopack_context__.a(async (__turbopack_handle_async_dependencies__, __turbopack_async_result__) => { try { return __turbopack_context__.a(async (__turbopack_handle_async_dependencies__, __turbopack_async_result__) => { try {
__turbopack_context__.s([ __turbopack_context__.s([
"close", "close",
0,
()=>close, ()=>close,
"dbCall", "dbCall",
0,
()=>dbCall ()=>dbCall
]); ]);
const connectToDB = async (url)=>{ const connectToDB = async (url)=>{
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"version": 3, "version": 3,
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/UserAPI.js"],"sourcesContent":["import { dbCall } from './db-connection.js'\n\nexport const createUser = async (name) => {\n const command = `CREATE USER ${name}`\n // This is a normal await, because it's in an async function\n await dbCall({ command })\n}\n"],"names":["createUser","name","command"],"mappings":";;;;AAAA;;;;;;AAEO,MAAMA,aAAa,OAAOC;IAC/B,MAAMC,UAAU,CAAC,YAAY,EAAED,MAAM;IACrC,4DAA4D;IAC5D,MAAM,IAAA,iOAAM,EAAC;QAAEC;IAAQ;AACzB"}}, {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/UserAPI.js"],"sourcesContent":["import { dbCall } from './db-connection.js'\n\nexport const createUser = async (name) => {\n const command = `CREATE USER ${name}`\n // This is a normal await, because it's in an async function\n await dbCall({ command })\n}\n"],"names":["createUser","name","command"],"mappings":";;;;;AAAA;;;;;;AAEO,MAAMA,aAAa,OAAOC;IAC/B,MAAMC,UAAU,CAAC,YAAY,EAAED,MAAM;IACrC,4DAA4D;IAC5D,MAAM,IAAA,iOAAM,EAAC;QAAEC;IAAQ;AACzB"}},
{"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/db-connection.js"],"sourcesContent":["const connectToDB = async (url) => {\n console.log('connecting to db', url)\n await new Promise((r) => setTimeout(r, 1000))\n}\n\n// This is a top-level-await\nawait connectToDB('my-sql://example.com')\n\nexport const dbCall = async (data) => {\n console.log('dbCall', data)\n // This is a normal await, because it's in an async function\n await new Promise((r) => setTimeout(r, 100))\n return 'fake data'\n}\n\nexport const close = () => {\n console.log('closes the DB connection')\n}\n"],"names":["connectToDB","url","console","log","Promise","r","setTimeout","dbCall","data","close"],"mappings":";;;;;;AAAA,MAAMA,cAAc,OAAOC;IACzBC,QAAQC,GAAG,CAAC,oBAAoBF;IAChC,MAAM,IAAIG,QAAQ,CAACC,IAAMC,WAAWD,GAAG;AACzC;AAEA,4BAA4B;AAC5B,MAAML,YAAY;AAEX,MAAMO,SAAS,OAAOC;IAC3BN,QAAQC,GAAG,CAAC,UAAUK;IACtB,4DAA4D;IAC5D,MAAM,IAAIJ,QAAQ,CAACC,IAAMC,WAAWD,GAAG;IACvC,OAAO;AACT;AAEO,MAAMI,QAAQ;IACnBP,QAAQC,GAAG,CAAC;AACd"}}] {"offset": {"line": 29, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/db-connection.js"],"sourcesContent":["const connectToDB = async (url) => {\n console.log('connecting to db', url)\n await new Promise((r) => setTimeout(r, 1000))\n}\n\n// This is a top-level-await\nawait connectToDB('my-sql://example.com')\n\nexport const dbCall = async (data) => {\n console.log('dbCall', data)\n // This is a normal await, because it's in an async function\n await new Promise((r) => setTimeout(r, 100))\n return 'fake data'\n}\n\nexport const close = () => {\n console.log('closes the DB connection')\n}\n"],"names":["connectToDB","url","console","log","Promise","r","setTimeout","dbCall","data","close"],"mappings":";;;;;;;;AAAA,MAAMA,cAAc,OAAOC;IACzBC,QAAQC,GAAG,CAAC,oBAAoBF;IAChC,MAAM,IAAIG,QAAQ,CAACC,IAAMC,WAAWD,GAAG;AACzC;AAEA,4BAA4B;AAC5B,MAAML,YAAY;AAEX,MAAMO,SAAS,OAAOC;IAC3BN,QAAQC,GAAG,CAAC,UAAUK;IACtB,4DAA4D;IAC5D,MAAM,IAAIJ,QAAQ,CAACC,IAAMC,WAAWD,GAAG;IACvC,OAAO;AACT;AAEO,MAAMI,QAAQ;IACnBP,QAAQC,GAAG,CAAC;AACd"}}]
} }
\ No newline at end of file
...@@ -4,8 +4,10 @@ ...@@ -4,8 +4,10 @@
__turbopack_context__.s([ __turbopack_context__.s([
"AlternativeCreateUserAction", "AlternativeCreateUserAction",
0,
()=>AlternativeCreateUserAction, ()=>AlternativeCreateUserAction,
"CreateUserAction", "CreateUserAction",
0,
()=>CreateUserAction ()=>CreateUserAction
]); ]);
// import() doesn't care about whether a module is an async module or not // import() doesn't care about whether a module is an async module or not
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"version": 3, "version": 3,
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/Actions.js"],"sourcesContent":["// import() doesn't care about whether a module is an async module or not\nconst UserApi = import('./UserAPI.js')\n\nexport const CreateUserAction = async (name) => {\n console.log('Creating user', name)\n // These are normal awaits, because they are in an async function\n const { createUser } = await UserApi\n await createUser(name)\n}\n\n// You can place import() where you like\n// Placing it at top-level will start loading and evaluating on\n// module evaluation.\n// see CreateUserAction above\n// Here: Connecting to the DB starts when the application starts\n// Placing it inside of an (async) function will start loading\n// and evaluating when the function is called for the first time\n// which basically makes it lazy-loaded.\n// see AlternativeCreateUserAction below\n// Here: Connecting to the DB starts when AlternativeCreateUserAction\n// is called\nexport const AlternativeCreateUserAction = async (name) => {\n const { createUser } = await import('./UserAPI.js')\n await createUser(name)\n}\n\n// Note: Using await import() at top-level doesn't make much sense\n// except in rare cases. It will import modules sequentially.\n"],"names":["UserApi","CreateUserAction","name","console","log","createUser","AlternativeCreateUserAction"],"mappings":";;;;;;AAAA,yEAAyE;AACzE,MAAMA;AAEC,MAAMC,mBAAmB,OAAOC;IACrCC,QAAQC,GAAG,CAAC,iBAAiBF;IAC7B,iEAAiE;IACjE,MAAM,EAAEG,UAAU,EAAE,GAAG,MAAML;IAC7B,MAAMK,WAAWH;AACnB;AAaO,MAAMI,8BAA8B,OAAOJ;IAChD,MAAM,EAAEG,UAAU,EAAE,GAAG;IACvB,MAAMA,WAAWH;AACnB,EAEA,kEAAkE;CAClE,mEAAmE"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/Actions.js"],"sourcesContent":["// import() doesn't care about whether a module is an async module or not\nconst UserApi = import('./UserAPI.js')\n\nexport const CreateUserAction = async (name) => {\n console.log('Creating user', name)\n // These are normal awaits, because they are in an async function\n const { createUser } = await UserApi\n await createUser(name)\n}\n\n// You can place import() where you like\n// Placing it at top-level will start loading and evaluating on\n// module evaluation.\n// see CreateUserAction above\n// Here: Connecting to the DB starts when the application starts\n// Placing it inside of an (async) function will start loading\n// and evaluating when the function is called for the first time\n// which basically makes it lazy-loaded.\n// see AlternativeCreateUserAction below\n// Here: Connecting to the DB starts when AlternativeCreateUserAction\n// is called\nexport const AlternativeCreateUserAction = async (name) => {\n const { createUser } = await import('./UserAPI.js')\n await createUser(name)\n}\n\n// Note: Using await import() at top-level doesn't make much sense\n// except in rare cases. It will import modules sequentially.\n"],"names":["UserApi","CreateUserAction","name","console","log","createUser","AlternativeCreateUserAction"],"mappings":";;;;;;;;AAAA,yEAAyE;AACzE,MAAMA;AAEC,MAAMC,mBAAmB,OAAOC;IACrCC,QAAQC,GAAG,CAAC,iBAAiBF;IAC7B,iEAAiE;IACjE,MAAM,EAAEG,UAAU,EAAE,GAAG,MAAML;IAC7B,MAAMK,WAAWH;AACnB;AAaO,MAAMI,8BAA8B,OAAOJ;IAChD,MAAM,EAAEG,UAAU,EAAE,GAAG;IACvB,MAAMA,WAAWH;AACnB,EAEA,kEAAkE;CAClE,mEAAmE"}},
{"offset": {"line": 28, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/index.js"],"sourcesContent":["import { CreateUserAction } from './Actions.js'\n;(async () => {\n await CreateUserAction('John')\n console.log('created user John')\n})()\n"],"names":["console","log"],"mappings":";AAAA;;AACC,CAAC;IACA,MAAM,IAAA,kOAAgB,EAAC;IACvBA,QAAQC,GAAG,CAAC;AACd,CAAC"}}] {"offset": {"line": 30, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/top-level-await/input/index.js"],"sourcesContent":["import { CreateUserAction } from './Actions.js'\n;(async () => {\n await CreateUserAction('John')\n console.log('created user John')\n})()\n"],"names":["console","log"],"mappings":";AAAA;;AACC,CAAC;IACA,MAAM,IAAA,kOAAgB,EAAC;IACvBA,QAAQC,GAAG,CAAC;AACd,CAAC"}}]
} }
\ No newline at end of file
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>a ()=>a
]); ]);
const a = 1; const a = 1;
...@@ -13,6 +14,7 @@ const a = 1; ...@@ -13,6 +14,7 @@ const a = 1;
__turbopack_context__.s([ __turbopack_context__.s([
"b", "b",
0,
()=>b ()=>b
]); ]);
const b = 2; const b = 2;
...@@ -22,6 +24,7 @@ const b = 2; ...@@ -22,6 +24,7 @@ const b = 2;
__turbopack_context__.s([ __turbopack_context__.s([
"value", "value",
0,
()=>value ()=>value
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$use$2d$strict$2f$input$2f$all$2d$strict$2d$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-a.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$basic$2f$use$2d$strict$2f$input$2f$all$2d$strict$2d$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-a.js [test] (ecmascript)");
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"version": 3, "version": 3,
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-a.js"],"sourcesContent":["export const a = 1\n"],"names":["a"],"mappings":";;;;AAAO,MAAMA,IAAI"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-a.js"],"sourcesContent":["export const a = 1\n"],"names":["a"],"mappings":";;;;;AAAO,MAAMA,IAAI"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-b.js"],"sourcesContent":["export const b = 2\n"],"names":["b"],"mappings":";;;;AAAO,MAAMA,IAAI"}}, {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict-b.js"],"sourcesContent":["export const b = 2\n"],"names":["b"],"mappings":";;;;;AAAO,MAAMA,IAAI"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict.js"],"sourcesContent":["import { a } from './all-strict-a'\nimport { b } from './all-strict-b'\n\nexport const value = a + b\n"],"names":["value"],"mappings":";;;;AAAA;AACA;;;AAEO,MAAMA,QAAQ,sNAAC,GAAG,sNAAC"}}] {"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/all-strict.js"],"sourcesContent":["import { a } from './all-strict-a'\nimport { b } from './all-strict-b'\n\nexport const value = a + b\n"],"names":["value"],"mappings":";;;;;AAAA;AACA;;;AAEO,MAAMA,QAAQ,sNAAC,GAAG,sNAAC"}}]
} }
\ No newline at end of file
...@@ -25,6 +25,7 @@ module.exports = 1000; ...@@ -25,6 +25,7 @@ module.exports = 1000;
__turbopack_context__.s([ __turbopack_context__.s([
"default", "default",
0,
()=>__TURBOPACK__default__export__ ()=>__TURBOPACK__default__export__
]); ]);
const __TURBOPACK__default__export__ = 200; const __TURBOPACK__default__export__ = 200;
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
"sections": [ "sections": [
{"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/index.js"],"sourcesContent":["'use strict'\n\nconst strictA = require('./strict-a')\nconst strictB = require('./strict-b').default\nconst sloppy = require('./non-strict')\n\nimport('./below-threshold').then(({ value }) => {\n console.log('below threshold', value)\n})\nimport('./all-strict').then(({ value }) => {\n console.log('all strict', value)\n})\n\nconsole.log('this is CJS', strictA, strictB, sloppy)\nmodule.exports = strictA + strictB + sloppy\n"],"names":["strictA","strictB","default","sloppy","then","value","console","log","module","exports"],"mappings":"AAEA,MAAMA;AACN,MAAMC,UAAU,4IAAsBC,OAAO;AAC7C,MAAMC;AAEN,iKAA4BC,IAAI,CAAC,CAAC,EAAEC,KAAK,EAAE;IACzCC,QAAQC,GAAG,CAAC,mBAAmBF;AACjC;AACA,4JAAuBD,IAAI,CAAC,CAAC,EAAEC,KAAK,EAAE;IACpCC,QAAQC,GAAG,CAAC,cAAcF;AAC5B;AAEAC,QAAQC,GAAG,CAAC,eAAeP,SAASC,SAASE;AAC7CK,OAAOC,OAAO,GAAGT,UAAUC,UAAUE"}}, {"offset": {"line": 5, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/index.js"],"sourcesContent":["'use strict'\n\nconst strictA = require('./strict-a')\nconst strictB = require('./strict-b').default\nconst sloppy = require('./non-strict')\n\nimport('./below-threshold').then(({ value }) => {\n console.log('below threshold', value)\n})\nimport('./all-strict').then(({ value }) => {\n console.log('all strict', value)\n})\n\nconsole.log('this is CJS', strictA, strictB, sloppy)\nmodule.exports = strictA + strictB + sloppy\n"],"names":["strictA","strictB","default","sloppy","then","value","console","log","module","exports"],"mappings":"AAEA,MAAMA;AACN,MAAMC,UAAU,4IAAsBC,OAAO;AAC7C,MAAMC;AAEN,iKAA4BC,IAAI,CAAC,CAAC,EAAEC,KAAK,EAAE;IACzCC,QAAQC,GAAG,CAAC,mBAAmBF;AACjC;AACA,4JAAuBD,IAAI,CAAC,CAAC,EAAEC,KAAK,EAAE;IACpCC,QAAQC,GAAG,CAAC,cAAcF;AAC5B;AAEAC,QAAQC,GAAG,CAAC,eAAeP,SAASC,SAASE;AAC7CK,OAAOC,OAAO,GAAGT,UAAUC,UAAUE"}},
{"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-a.js"],"sourcesContent":["'use strict'\n\nmodule.exports = 1000\n"],"names":["module","exports"],"mappings":"AAEAA,OAAOC,OAAO,GAAG"}}, {"offset": {"line": 20, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-a.js"],"sourcesContent":["'use strict'\n\nmodule.exports = 1000\n"],"names":["module","exports"],"mappings":"AAEAA,OAAOC,OAAO,GAAG"}},
{"offset": {"line": 25, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-b.js"],"sourcesContent":["export default 200\n"],"names":[],"mappings":";;;;uCAAe"}}, {"offset": {"line": 25, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/strict-b.js"],"sourcesContent":["export default 200\n"],"names":[],"mappings":";;;;;uCAAe"}},
{"offset": {"line": 34, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/non-strict.js"],"sourcesContent":["module.exports = (function () {\n return this === globalThis ? 34 : 0\n})()\n"],"names":["module","exports","globalThis"],"mappings":"AAAAA,OAAOC,OAAO,GAAG,AAAC;IAChB,OAAO,IAAI,KAAKC,aAAa,KAAK;AACpC"}}] {"offset": {"line": 35, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/non-strict.js"],"sourcesContent":["module.exports = (function () {\n return this === globalThis ? 34 : 0\n})()\n"],"names":["module","exports","globalThis"],"mappings":"AAAAA,OAAOC,OAAO,GAAG,AAAC;IAChB,OAAO,IAAI,KAAKC,aAAa,KAAK;AACpC"}}]
} }
\ No newline at end of file
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
__turbopack_context__.s([ __turbopack_context__.s([
"value", "value",
0,
()=>value ()=>value
]); ]);
const value = 2; const value = 2;
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
"version": 3, "version": 3,
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/below-threshold.js"],"sourcesContent":["export const value = 2\n"],"names":["value"],"mappings":";;;;AAAO,MAAMA,QAAQ"}}] {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/basic/use-strict/input/below-threshold.js"],"sourcesContent":["export const value = 2\n"],"names":["value"],"mappings":";;;;;AAAO,MAAMA,QAAQ"}}]
} }
\ No newline at end of file
...@@ -39,6 +39,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -39,6 +39,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"nonConstant", "nonConstant",
0,
()=>nonConstant ()=>nonConstant
]); ]);
const nonConstant = { const nonConstant = {
...@@ -50,8 +51,10 @@ const nonConstant = { ...@@ -50,8 +51,10 @@ const nonConstant = {
__turbopack_context__.s([ __turbopack_context__.s([
"UPPER", "UPPER",
0,
()=>UPPER, ()=>UPPER,
"lower", "lower",
0,
()=>lower ()=>lower
]); ]);
const lower = 'lowercase'; const lower = 'lowercase';
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/index.js"],"sourcesContent":["import { lower } from './other' with { turbopackConstants: 'true' }\n\nif (lower === 'lowercase') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(lower)\n\nimport { UPPER } from './other' with { turbopackConstants: 'false' }\nif (UPPER === 'UPPER') {\n console.log('x')\n} else {\n require('./correct-not-inlined')\n}\nconsole.log(UPPER)\n\nimport { nonConstant } from './non-constant' with { turbopackConstants: 'true' }\nif (nonConstant.v === 1234) {\n console.log('x')\n} else {\n require('./correct-not-inlined')\n}\nconsole.log(nonConstant)\n"],"names":["console","log","v"],"mappings":";AASA;AAQA;;AAfA,wCAA2B;IACzBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;;AAGX,IAAI,+NAAK,KAAK,SAAS;IACrBD,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AACAD,QAAQC,GAAG,CAAC,+NAAK;;AAGjB,IAAI,+OAAW,CAACC,CAAC,KAAK,MAAM;IAC1BF,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AACAD,QAAQC,GAAG,CAAC,+OAAW"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/index.js"],"sourcesContent":["import { lower } from './other' with { turbopackConstants: 'true' }\n\nif (lower === 'lowercase') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(lower)\n\nimport { UPPER } from './other' with { turbopackConstants: 'false' }\nif (UPPER === 'UPPER') {\n console.log('x')\n} else {\n require('./correct-not-inlined')\n}\nconsole.log(UPPER)\n\nimport { nonConstant } from './non-constant' with { turbopackConstants: 'true' }\nif (nonConstant.v === 1234) {\n console.log('x')\n} else {\n require('./correct-not-inlined')\n}\nconsole.log(nonConstant)\n"],"names":["console","log","v"],"mappings":";AASA;AAQA;;AAfA,wCAA2B;IACzBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;;AAGX,IAAI,+NAAK,KAAK,SAAS;IACrBD,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AACAD,QAAQC,GAAG,CAAC,+NAAK;;AAGjB,IAAI,+OAAW,CAACC,CAAC,KAAK,MAAM;IAC1BF,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AACAD,QAAQC,GAAG,CAAC,+OAAW"}},
{"offset": {"line": 39, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/non-constant.js"],"sourcesContent":["export const nonConstant = { v: 1234 }\n"],"names":["nonConstant","v"],"mappings":";;;;AAAO,MAAMA,cAAc;IAAEC,GAAG;AAAK"}}, {"offset": {"line": 39, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/non-constant.js"],"sourcesContent":["export const nonConstant = { v: 1234 }\n"],"names":["nonConstant","v"],"mappings":";;;;;AAAO,MAAMA,cAAc;IAAEC,GAAG;AAAK"}},
{"offset": {"line": 50, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/other.js"],"sourcesContent":["export const lower = 'lowercase'\n\nexport const UPPER = 'UPPER'\n"],"names":["lower","UPPER"],"mappings":";;;;;;AAAO,MAAMA,QAAQ;AAEd,MAAMC,QAAQ"}}] {"offset": {"line": 51, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-attribute/input/other.js"],"sourcesContent":["export const lower = 'lowercase'\n\nexport const UPPER = 'UPPER'\n"],"names":["lower","UPPER"],"mappings":";;;;;;;;AAAO,MAAMA,QAAQ;AAEd,MAAMC,QAAQ"}}]
} }
\ No newline at end of file
...@@ -22,6 +22,7 @@ console.log(("TURBOPACK compile-time value", "barrel")); ...@@ -22,6 +22,7 @@ console.log(("TURBOPACK compile-time value", "barrel"));
__turbopack_context__.s([ __turbopack_context__.s([
"foo", "foo",
0,
()=>foo ()=>foo
]); ]);
function foo() { function foo() {
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/index.js"],"sourcesContent":["import { SOME_VALUE, BARREL_VALUE, foo } from './library'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(SOME_VALUE)\n\nconsole.log(foo())\n\nif (BARREL_VALUE === 'barrel') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(BARREL_VALUE)\n"],"names":["console","log"],"mappings":";AAAA;;AAEA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;AAEXD,QAAQC,GAAG,CAAC,IAAA,uOAAG;AAEf,wCAA+B;IAC7BD,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/index.js"],"sourcesContent":["import { SOME_VALUE, BARREL_VALUE, foo } from './library'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(SOME_VALUE)\n\nconsole.log(foo())\n\nif (BARREL_VALUE === 'barrel') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(BARREL_VALUE)\n"],"names":["console","log"],"mappings":";AAAA;;AAEA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;AAEXD,QAAQC,GAAG,CAAC,IAAA,uOAAG;AAEf,wCAA+B;IAC7BD,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/library/runtime.js"],"sourcesContent":["export function foo() {\n return 123\n}\n"],"names":["foo"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT"}}] {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-barrel/input/library/runtime.js"],"sourcesContent":["export function foo() {\n return 123\n}\n"],"names":["foo"],"mappings":";;;;;AAAO,SAASA;IACd,OAAO;AACT"}}]
} }
\ No newline at end of file
...@@ -12,6 +12,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -12,6 +12,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"ONE", "ONE",
0,
()=>ONE ()=>ONE
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$constant$2f$input$2f$multiple$2d$2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-2.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$constant$2f$input$2f$multiple$2d$2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-2.js [test] (ecmascript)");
...@@ -23,6 +24,7 @@ const ONE = '1' + __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$c ...@@ -23,6 +24,7 @@ const ONE = '1' + __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$c
__turbopack_context__.s([ __turbopack_context__.s([
"TWO", "TWO",
0,
()=>TWO ()=>TWO
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$constant$2f$input$2f$multiple$2d$1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-1.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$constant$2f$input$2f$multiple$2d$1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-1.js [test] (ecmascript)");
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/index.js"],"sourcesContent":["import { ONE } from './multiple-1.js'\n\nconsole.log(ONE)\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,6OAAG"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/index.js"],"sourcesContent":["import { ONE } from './multiple-1.js'\n\nconsole.log(ONE)\n"],"names":["console","log"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,6OAAG"}},
{"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-1.js"],"sourcesContent":["import { TWO } from './multiple-2.js'\n\nexport const ONE = '1' + TWO\n"],"names":["ONE"],"mappings":";;;;AAAA;;AAEO,MAAMA,MAAM,MAAM,6OAAG"}}, {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-1.js"],"sourcesContent":["import { TWO } from './multiple-2.js'\n\nexport const ONE = '1' + TWO\n"],"names":["ONE"],"mappings":";;;;;AAAA;;AAEO,MAAMA,MAAM,MAAM,6OAAG"}},
{"offset": {"line": 23, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-2.js"],"sourcesContent":["import { ONE } from './multiple-1.js'\n\nexport const TWO = '2' + ONE\n"],"names":["TWO"],"mappings":";;;;AAAA;;AAEO,MAAMA,MAAM,MAAM,6OAAG"}}] {"offset": {"line": 24, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-constant/input/multiple-2.js"],"sourcesContent":["import { ONE } from './multiple-1.js'\n\nexport const TWO = '2' + ONE\n"],"names":["TWO"],"mappings":";;;;;AAAA;;AAEO,MAAMA,MAAM,MAAM,6OAAG"}}]
} }
\ No newline at end of file
...@@ -14,6 +14,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -14,6 +14,7 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"FOO", "FOO",
0,
()=>foo1 ()=>foo1
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$multiple$2d$2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-2.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$multiple$2d$2$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-2.js [test] (ecmascript)");
...@@ -29,6 +30,7 @@ function foo1(left, right) { ...@@ -29,6 +30,7 @@ function foo1(left, right) {
__turbopack_context__.s([ __turbopack_context__.s([
"FOO", "FOO",
0,
()=>foo2 ()=>foo2
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$multiple$2d$1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-1.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$multiple$2d$1$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-1.js [test] (ecmascript)");
...@@ -44,6 +46,7 @@ function foo2(left, right) { ...@@ -44,6 +46,7 @@ function foo2(left, right) {
__turbopack_context__.s([ __turbopack_context__.s([
"FOO", "FOO",
0,
()=>foo1 ()=>foo1
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$single$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/single.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$cycle$2d$dynamic$2f$input$2f$single$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/single.js [test] (ecmascript)");
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/index.js"],"sourcesContent":["import { FOO as FOO_SINGLE } from './single.js'\nimport { FOO as FOO_MULTIPLE } from './multiple-1.js'\n\nconsole.log(FOO_SINGLE, FOO_MULTIPLE)\n"],"names":["console","log"],"mappings":";AAAA;AACA;;;AAEAA,QAAQC,GAAG,CAAC,qOAAU,EAAE,4OAAY"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/index.js"],"sourcesContent":["import { FOO as FOO_SINGLE } from './single.js'\nimport { FOO as FOO_MULTIPLE } from './multiple-1.js'\n\nconsole.log(FOO_SINGLE, FOO_MULTIPLE)\n"],"names":["console","log"],"mappings":";AAAA;AACA;;;AAEAA,QAAQC,GAAG,CAAC,qOAAU,EAAE,4OAAY"}},
{"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-1.js"],"sourcesContent":["import { FOO as foo } from './multiple-2.js'\nfunction foo1(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo1 as FOO }\n"],"names":["foo1","left","right"],"mappings":";;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,4OAAG,EAACD,MAAMC;AACnB"}}, {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-1.js"],"sourcesContent":["import { FOO as foo } from './multiple-2.js'\nfunction foo1(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo1 as FOO }\n"],"names":["foo1","left","right"],"mappings":";;;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,4OAAG,EAACD,MAAMC;AACnB"}},
{"offset": {"line": 29, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-2.js"],"sourcesContent":["import { FOO as foo } from './multiple-1.js'\nfunction foo2(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo2 as FOO }\n"],"names":["foo2","left","right"],"mappings":";;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,4OAAG,EAACD,MAAMC;AACnB"}}, {"offset": {"line": 30, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/multiple-2.js"],"sourcesContent":["import { FOO as foo } from './multiple-1.js'\nfunction foo2(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo2 as FOO }\n"],"names":["foo2","left","right"],"mappings":";;;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,4OAAG,EAACD,MAAMC;AACnB"}},
{"offset": {"line": 44, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/single.js"],"sourcesContent":["import { FOO as foo } from './single.js'\nfunction foo1(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo1 as FOO }\n"],"names":["foo1","left","right"],"mappings":";;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,qOAAG,EAACD,MAAMC;AACnB"}}] {"offset": {"line": 46, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-cycle-dynamic/input/single.js"],"sourcesContent":["import { FOO as foo } from './single.js'\nfunction foo1(left, right) {\n // might be an infinite loop at runtime, but shouldn't hang the build\n return foo(left, right)\n}\nexport { foo1 as FOO }\n"],"names":["foo1","left","right"],"mappings":";;;;;AAAA;;AACA,SAASA,KAAKC,IAAI,EAAEC,KAAK;IACvB,qEAAqE;IACrE,OAAO,IAAA,qOAAG,EAACD,MAAMC;AACnB"}}]
} }
\ No newline at end of file
...@@ -22,8 +22,10 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -22,8 +22,10 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"SOME_VALUE", "SOME_VALUE",
0,
()=>SOME_VALUE, ()=>SOME_VALUE,
"USING_IMPORTED_EXPORTED", "USING_IMPORTED_EXPORTED",
0,
()=>USING_IMPORTED_EXPORTED ()=>USING_IMPORTED_EXPORTED
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$imported$2f$input$2f$third$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/third.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$comptime$2f$cross$2d$module$2d$imported$2f$input$2f$third$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/third.js [test] (ecmascript)");
...@@ -38,8 +40,10 @@ const USING_IMPORTED_EXPORTED = 'x' + __TURBOPACK__imported__module__$5b$project ...@@ -38,8 +40,10 @@ const USING_IMPORTED_EXPORTED = 'x' + __TURBOPACK__imported__module__$5b$project
__turbopack_context__.s([ __turbopack_context__.s([
"IMPORTED_EXPORTED", "IMPORTED_EXPORTED",
0,
()=>IMPORTED_EXPORTED, ()=>IMPORTED_EXPORTED,
"REEXPORTED", "REEXPORTED",
0,
()=>REEXPORTED ()=>REEXPORTED
]); ]);
const REEXPORTED = 'reexported'; const REEXPORTED = 'reexported';
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/index.js"],"sourcesContent":["import {\n SOME_VALUE,\n IMPORTED_EXPORTED,\n REEXPORTED,\n USING_IMPORTED_EXPORTED,\n} from './other'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(SOME_VALUE)\n\n// --------------------------------------------------------------------------\n\n// These aren't considered to be constants\nconsole.log(IMPORTED_EXPORTED)\nconsole.log(REEXPORTED)\nconsole.log(USING_IMPORTED_EXPORTED)\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAOA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;AAEX,6EAA6E;AAE7E,0CAA0C;AAC1CD,QAAQC,GAAG,CAAC,0OAAiB;AAC7BD,QAAQC,GAAG,CAAC,mOAAU;AACtBD,QAAQC,GAAG,CAAC,gQAAuB"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/index.js"],"sourcesContent":["import {\n SOME_VALUE,\n IMPORTED_EXPORTED,\n REEXPORTED,\n USING_IMPORTED_EXPORTED,\n} from './other'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\nconsole.log(SOME_VALUE)\n\n// --------------------------------------------------------------------------\n\n// These aren't considered to be constants\nconsole.log(IMPORTED_EXPORTED)\nconsole.log(REEXPORTED)\nconsole.log(USING_IMPORTED_EXPORTED)\n"],"names":["console","log"],"mappings":";AAAA;AAAA;;AAOA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAGAD,QAAQC,GAAG;AAEX,6EAA6E;AAE7E,0CAA0C;AAC1CD,QAAQC,GAAG,CAAC,0OAAiB;AAC7BD,QAAQC,GAAG,CAAC,mOAAU;AACtBD,QAAQC,GAAG,CAAC,gQAAuB"}},
{"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/other.js"],"sourcesContent":["export const SOME_VALUE = 'x'\n\nimport { IMPORTED_EXPORTED } from './third'\nexport { IMPORTED_EXPORTED }\nexport { REEXPORTED } from './third'\n\nexport const USING_IMPORTED_EXPORTED = 'x' + IMPORTED_EXPORTED\n"],"names":["SOME_VALUE","USING_IMPORTED_EXPORTED"],"mappings":";;;;;;AAEA;AAFO,MAAMA,aAAa;;;;AAMnB,MAAMC,0BAA0B,MAAM,0OAAiB"}}, {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/other.js"],"sourcesContent":["export const SOME_VALUE = 'x'\n\nimport { IMPORTED_EXPORTED } from './third'\nexport { IMPORTED_EXPORTED }\nexport { REEXPORTED } from './third'\n\nexport const USING_IMPORTED_EXPORTED = 'x' + IMPORTED_EXPORTED\n"],"names":["SOME_VALUE","USING_IMPORTED_EXPORTED"],"mappings":";;;;;;;;AAEA;AAFO,MAAMA,aAAa;;;;AAMnB,MAAMC,0BAA0B,MAAM,0OAAiB"}},
{"offset": {"line": 38, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/third.js"],"sourcesContent":["export const REEXPORTED = 'reexported'\nexport const IMPORTED_EXPORTED = 'imported exported'\n"],"names":["REEXPORTED","IMPORTED_EXPORTED"],"mappings":";;;;;;AAAO,MAAMA,aAAa;AACnB,MAAMC,oBAAoB"}}] {"offset": {"line": 40, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-imported/input/third.js"],"sourcesContent":["export const REEXPORTED = 'reexported'\nexport const IMPORTED_EXPORTED = 'imported exported'\n"],"names":["REEXPORTED","IMPORTED_EXPORTED"],"mappings":";;;;;;;;AAAO,MAAMA,aAAa;AACnB,MAAMC,oBAAoB"}}]
} }
\ No newline at end of file
...@@ -33,16 +33,22 @@ if (__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo ...@@ -33,16 +33,22 @@ if (__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbo
__turbopack_context__.s([ __turbopack_context__.s([
"INFINITY", "INFINITY",
0,
()=>INFINITY, ()=>INFINITY,
"LONG_BIG_NUMBER", "LONG_BIG_NUMBER",
0,
()=>LONG_BIG_NUMBER, ()=>LONG_BIG_NUMBER,
"LONG_NUMBER", "LONG_NUMBER",
0,
()=>LONG_NUMBER, ()=>LONG_NUMBER,
"LONG_STRING", "LONG_STRING",
0,
()=>LONG_STRING, ()=>LONG_STRING,
"NAN", "NAN",
0,
()=>NAN, ()=>NAN,
"REGEX", "REGEX",
0,
()=>REGEX ()=>REGEX
]); ]);
const LONG_STRING = 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789'; const LONG_STRING = 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789';
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/index.js"],"sourcesContent":["import {\n LONG_STRING,\n LONG_NUMBER,\n LONG_BIG_NUMBER,\n REGEX,\n NAN,\n INFINITY,\n} from './other'\n\n// shouldn't inline\nconsole.log(LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, REGEX)\n\n// TODO ideally would still use for evaluation even though not inlined\nif (LONG_STRING && LONG_NUMBER && LONG_BIG_NUMBER && REGEX) {\n console.log('ok')\n} else {\n require('./dead-code')\n}\n\n// TODO ideally would inline NaN and Infinity, but currently doesn't\nif (NAN != undefined && INFINITY) {\n console.log('ok')\n} else {\n require('./dead-code')\n}\n"],"names":["console","log","undefined"],"mappings":";AAAA;;AASA,mBAAmB;AACnBA,QAAQC,GAAG,CAAC,4OAAW,EAAE,4OAAW,EAAE,gPAAe,EAAE,sOAAK;AAE5D,sEAAsE;AACtE,IAAI,4OAAW,IAAI,4OAAW,IAAI,gPAAe,IAAI,sOAAK,EAAE;IAC1DD,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AAEA,oEAAoE;AACpE,IAAI,oOAAG,IAAIC,aAAa,yOAAQ,EAAE;IAChCF,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/index.js"],"sourcesContent":["import {\n LONG_STRING,\n LONG_NUMBER,\n LONG_BIG_NUMBER,\n REGEX,\n NAN,\n INFINITY,\n} from './other'\n\n// shouldn't inline\nconsole.log(LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, REGEX)\n\n// TODO ideally would still use for evaluation even though not inlined\nif (LONG_STRING && LONG_NUMBER && LONG_BIG_NUMBER && REGEX) {\n console.log('ok')\n} else {\n require('./dead-code')\n}\n\n// TODO ideally would inline NaN and Infinity, but currently doesn't\nif (NAN != undefined && INFINITY) {\n console.log('ok')\n} else {\n require('./dead-code')\n}\n"],"names":["console","log","undefined"],"mappings":";AAAA;;AASA,mBAAmB;AACnBA,QAAQC,GAAG,CAAC,4OAAW,EAAE,4OAAW,EAAE,gPAAe,EAAE,sOAAK;AAE5D,sEAAsE;AACtE,IAAI,4OAAW,IAAI,4OAAW,IAAI,gPAAe,IAAI,sOAAK,EAAE;IAC1DD,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP;AAEA,oEAAoE;AACpE,IAAI,oOAAG,IAAIC,aAAa,yOAAQ,EAAE;IAChCF,QAAQC,GAAG,CAAC;AACd,OAAO;;;;;;AAEP"}},
{"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/other.js"],"sourcesContent":["export const LONG_STRING =\n 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789'\n\nexport const LONG_NUMBER = 21345672345678345678901234567890\n\nexport const LONG_BIG_NUMBER = 21345672345678345678901234567890n\n\nexport const REGEX = /ab/i\n\nexport const NAN = NaN\n\nexport const INFINITY = Infinity\n"],"names":["LONG_STRING","LONG_NUMBER","LONG_BIG_NUMBER","REGEX","NAN","NaN","INFINITY","Infinity"],"mappings":";;;;;;;;;;;;;;AAAO,MAAMA,cACX;AAEK,MAAMC,cAAc;AAEpB,MAAMC,kBAAkB,iCAAiC;AAEzD,MAAMC,QAAQ;AAEd,MAAMC,MAAMC;AAEZ,MAAMC,WAAWC"}}] {"offset": {"line": 33, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-long-literals/input/other.js"],"sourcesContent":["export const LONG_STRING =\n 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789'\n\nexport const LONG_NUMBER = 21345672345678345678901234567890\n\nexport const LONG_BIG_NUMBER = 21345672345678345678901234567890n\n\nexport const REGEX = /ab/i\n\nexport const NAN = NaN\n\nexport const INFINITY = Infinity\n"],"names":["LONG_STRING","LONG_NUMBER","LONG_BIG_NUMBER","REGEX","NAN","NaN","INFINITY","Infinity"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAO,MAAMA,cACX;AAEK,MAAMC,cAAc;AAEpB,MAAMC,kBAAkB,iCAAiC;AAEzD,MAAMC,QAAQ;AAEd,MAAMC,MAAMC;AAEZ,MAAMC,WAAWC"}}]
} }
\ No newline at end of file
...@@ -31,16 +31,22 @@ console.log(("TURBOPACK compile-time value", "abcdefghijklmnopqrstuvwxyz01234567 ...@@ -31,16 +31,22 @@ console.log(("TURBOPACK compile-time value", "abcdefghijklmnopqrstuvwxyz01234567
__turbopack_context__.s([ __turbopack_context__.s([
"LONG_BIG_NUMBER", "LONG_BIG_NUMBER",
0,
()=>LONG_BIG_NUMBER, ()=>LONG_BIG_NUMBER,
"LONG_NUMBER", "LONG_NUMBER",
0,
()=>LONG_NUMBER, ()=>LONG_NUMBER,
"LONG_REGEX", "LONG_REGEX",
0,
()=>LONG_REGEX, ()=>LONG_REGEX,
"LONG_STRING", "LONG_STRING",
0,
()=>LONG_STRING, ()=>LONG_STRING,
"NO_CONSTANT", "NO_CONSTANT",
0,
()=>NO_CONSTANT, ()=>NO_CONSTANT,
"SOME_VALUE", "SOME_VALUE",
0,
()=>SOME_VALUE ()=>SOME_VALUE
]); ]);
'use turbopack: constants'; 'use turbopack: constants';
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/index.js"],"sourcesContent":["import { SOME_VALUE, NO_CONSTANT, MISSING } from './other'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\n\n// --------------------------------------------------------------------------\n\nif (NO_CONSTANT) {\n console.log('NO_CONSTANT 1')\n} else {\n console.log('NO_CONSTANT 2')\n}\nconsole.log(NO_CONSTANT)\n\n// --------------------------------------------------------------------------\n\nif (MISSING) {\n console.log('MISSING 1')\n} else {\n console.log('MISSING 2')\n}\nconsole.log(MISSING)\n\n// --------------------------------------------------------------------------\n\nimport { LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, LONG_REGEX } from './other'\n\nconsole.log(LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, LONG_REGEX)\n"],"names":["console","log"],"mappings":";AAAA;;AAEA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAIA,6EAA6E;AAE7E,IAAI,kOAAW,EAAE;IACfD,QAAQC,GAAG,CAAC;AACd,OAAO;IACLD,QAAQC,GAAG,CAAC;AACd;AACAD,QAAQC,GAAG,CAAC,kOAAW;AAEvB,6EAA6E;AAE7E,IAAI,8NAAO,EAAE;IACXD,QAAQC,GAAG,CAAC;AACd,OAAO;IACLD,QAAQC,GAAG,CAAC;AACd;AACAD,QAAQC,GAAG,CAAC,8NAAO;;AAMnBD,QAAQC,GAAG"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/index.js"],"sourcesContent":["import { SOME_VALUE, NO_CONSTANT, MISSING } from './other'\n\nif (SOME_VALUE === 'x') {\n console.log('x')\n} else {\n require('./dead-code')\n}\n\n// --------------------------------------------------------------------------\n\nif (NO_CONSTANT) {\n console.log('NO_CONSTANT 1')\n} else {\n console.log('NO_CONSTANT 2')\n}\nconsole.log(NO_CONSTANT)\n\n// --------------------------------------------------------------------------\n\nif (MISSING) {\n console.log('MISSING 1')\n} else {\n console.log('MISSING 2')\n}\nconsole.log(MISSING)\n\n// --------------------------------------------------------------------------\n\nimport { LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, LONG_REGEX } from './other'\n\nconsole.log(LONG_STRING, LONG_NUMBER, LONG_BIG_NUMBER, LONG_REGEX)\n"],"names":["console","log"],"mappings":";AAAA;;AAEA,wCAAwB;IACtBA,QAAQC,GAAG,CAAC;AACd;;AAIA,6EAA6E;AAE7E,IAAI,kOAAW,EAAE;IACfD,QAAQC,GAAG,CAAC;AACd,OAAO;IACLD,QAAQC,GAAG,CAAC;AACd;AACAD,QAAQC,GAAG,CAAC,kOAAW;AAEvB,6EAA6E;AAE7E,IAAI,8NAAO,EAAE;IACXD,QAAQC,GAAG,CAAC;AACd,OAAO;IACLD,QAAQC,GAAG,CAAC;AACd;AACAD,QAAQC,GAAG,CAAC,8NAAO;;AAMnBD,QAAQC,GAAG"}},
{"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/other.js"],"sourcesContent":["'use turbopack: constants'\n\nexport const SOME_VALUE = 'x'\n\nexport const NO_CONSTANT = globalThis.foo\n\nexport const LONG_STRING =\n 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789'\n\nexport const LONG_NUMBER = 21345672345678345678901234567890\n\nexport const LONG_BIG_NUMBER = 21345672345678345678901234567890n\n\nexport const LONG_REGEX =\n /abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789/i\n"],"names":["SOME_VALUE","NO_CONSTANT","globalThis","foo","LONG_STRING","LONG_NUMBER","LONG_BIG_NUMBER","LONG_REGEX"],"mappings":";;;;;;;;;;;;;;AAAA;AAEO,MAAMA,aAAa;AAEnB,MAAMC,cAAcC,WAAWC,GAAG;AAElC,MAAMC,cACX;AAEK,MAAMC,cAAc;AAEpB,MAAMC,kBAAkB,iCAAiC;AAEzD,MAAMC,aACX"}}] {"offset": {"line": 31, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/cross-module-strict/input/other.js"],"sourcesContent":["'use turbopack: constants'\n\nexport const SOME_VALUE = 'x'\n\nexport const NO_CONSTANT = globalThis.foo\n\nexport const LONG_STRING =\n 'abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789'\n\nexport const LONG_NUMBER = 21345672345678345678901234567890\n\nexport const LONG_BIG_NUMBER = 21345672345678345678901234567890n\n\nexport const LONG_REGEX =\n /abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789/i\n"],"names":["SOME_VALUE","NO_CONSTANT","globalThis","foo","LONG_STRING","LONG_NUMBER","LONG_BIG_NUMBER","LONG_REGEX"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAEO,MAAMA,aAAa;AAEnB,MAAMC,cAAcC,WAAWC,GAAG;AAElC,MAAMC,cACX;AAEK,MAAMC,cAAc;AAEpB,MAAMC,kBAAkB,iCAAiC;AAEzD,MAAMC,aACX"}}]
} }
\ No newline at end of file
...@@ -12,24 +12,34 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$ ...@@ -12,24 +12,34 @@ console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
()=>a, ()=>a,
"b", "b",
0,
()=>b, ()=>b,
"c", "c",
0,
()=>c, ()=>c,
"d", "d",
0,
()=>d, ()=>d,
"e", "e",
0,
()=>e, ()=>e,
"f", "f",
0,
()=>f, ()=>f,
"g", "g",
0,
()=>g, ()=>g,
"h", "h",
0,
()=>h, ()=>h,
"i", "i",
0,
()=>i, ()=>i,
"j", "j",
0,
()=>j ()=>j
]); ]);
function a() { function a() {
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/index.js"],"sourcesContent":["import * as module from './module'\nconsole.log(module)\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js [test] (ecmascript)"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAACC"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/index.js"],"sourcesContent":["import * as module from './module'\nconsole.log(module)\n"],"names":["console","log","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js [test] (ecmascript)"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAACC"}},
{"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js"],"sourcesContent":["export function a() {\n if (true) {\n a1()\n return\n }\n a2()\n var a3 = 3\n function a4() {\n var a5\n }\n ;(function a6() {\n var a7\n })\n const a8 = () => {\n var a9\n }\n class a10 {}\n let a11 = 11\n let {\n a12 = 12,\n a14: {\n a15,\n a16: [a17, ...a18],\n },\n ...a19\n } = {}\n function a20() {\n return\n a21()\n }\n ;({\n get a22() {\n var a23\n },\n set a22(value) {\n var a24\n },\n a25() {\n var a26\n },\n })\n {\n let a27\n var a28\n }\n}\n\nexport function b() {\n if (true) {\n b1()\n return\n } else {\n b2()\n }\n b3()\n}\n\nexport function c() {\n if (true) {\n return\n }\n c1()\n}\n\nexport function d() {\n if (true) {\n return\n } else {\n d1()\n }\n d2()\n}\n\nexport function e() {\n if (false) {\n e1()\n } else {\n return\n }\n e2()\n}\n\nexport function f() {\n if (false) {\n } else {\n return\n }\n f1()\n}\n\nexport function g() {\n if (false) {\n g1()\n } else {\n g2()\n return\n }\n g3()\n}\n\nexport function h() {\n if (false) {\n } else {\n h1()\n return\n }\n h2()\n}\n\nexport function i(j) {\n if (j < 1) return i1()\n return i2()\n}\n\nexport function j(j) {\n if (j < 1) {\n return i1()\n }\n return i2()\n}\n\nclass K {\n constructor() {\n try {\n k1()\n } catch (e) {\n k2()\n return\n k3()\n } finally {\n k4()\n }\n k5()\n }\n\n l() {\n try {\n l1()\n } catch (e) {\n l2()\n } finally {\n l3()\n return\n l4()\n }\n l5()\n }\n\n get m() {\n if (true) {\n m1()\n return\n }\n m2()\n }\n\n set m(value) {\n m1()\n return m2()\n m3()\n }\n\n n = () => {\n switch (42) {\n case 1:\n n1()\n return\n n2()\n case 2:\n n3()\n break\n default:\n n4()\n }\n n5()\n }\n\n o() {\n if (something) {\n require('./module')\n return\n } else {\n require('./module')\n return\n }\n }\n}\n\nfunction p() {\n class C {\n constructor() {\n p1()\n return\n p2()\n }\n }\n\n p3()\n return\n p4()\n}\n\nfunction q() {\n while (false) {\n q1()\n return\n q2()\n }\n q3()\n}\n\nfunction r() {\n {\n r1()\n return\n r2()\n }\n r3()\n}\n\nz1()\n\nreturn\n\nz2()\n"],"names":["a","a1","a3","a4","a5","a8","a10","a11","a12","a15","a17","a18","a19","a20","a28","b","b1","c","d","e","f","g","g2","h","h1","i","j","i1","i2","K","k1","k2","k4","k5","l","l1","l2","l3","m","m1","value","m2","n","n1","n3","n4","n5","o","something","p","C","p1","p3","q","q1","q3","r","r1","z1","z2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAO,SAASA;IACd,wCAAU;QACRC;QACA;IACF;;;IAEA,IAAIC;IACJ,SAASC;QACP,IAAIC;IACN;IAIA,MAAMC;IAGAC,IAAAA;IACN,IAAIC;IACJ,IACEC,KAEEC,KACMC,KAAQC,KAEbC;IAEL,SAASC;QACP;;;IAEF;IAcE,IAAIC;AAER;AAEO,SAASC;IACd,wCAAU;QACRC;QACA;IACF;;;;AAIF;AAEO,SAASC;IACd,wCAAU;QACR;IACF;;;AAEF;AAEO,SAASC;IACd,wCAAU;QACR;IACF;;;;AAIF;AAEO,SAASC;IACd;;SAEO;QACL;IACF;;;AAEF;AAEO,SAASC;IACd,uCAAW,CACX,OAAO;QACL;IACF;;;AAEF;AAEO,SAASC;IACd;;SAEO;QACLC;QACA;IACF;;;AAEF;AAEO,SAASC;IACd,uCAAW,CACX,OAAO;QACLC;QACA;IACF;;;AAEF;AAEO,SAASC,EAAEC,CAAC;IACjB,IAAIA,IAAI,GAAG,OAAOC;IAClB,OAAOC;AACT;AAEO,SAASF,EAAEA,CAAC;IACjB,IAAIA,IAAI,GAAG;QACT,OAAOC;IACT;IACA,OAAOC;AACT;AAEA,MAAMC;IACJA,aAAc;QACZ,IAAI;YACFC;QACF,EAAE,OAAOX,GAAG;YACVY;YACA;;;QAEF,SAAU;YACRC;QACF;QACAC;IACF;IAEAC,IAAI;QACF,IAAI;YACFC;QACF,EAAE,OAAOhB,GAAG;YACViB;QACF,SAAU;YACRC;YACA;;;QAEF;;;IAEF;IAEA,IAAIC,IAAI;QACN,wCAAU;YACRC;YACA;QACF;;;IAEF;IAEA,IAAID,EAAEE,KAAK,EAAE;QACXD;QACA,OAAOE;;;IAET;IAEAC,IAAI;QACF,OAAQ;YACN,KAAK;gBACHC;gBACA;;;YAEF,KAAK;gBACHC;gBACA;YACF;gBACEC;QACJ;QACAC;IACF,EAAC;IAEDC,IAAI;QACF,IAAIC,WAAW;;YAEb;QACF,OAAO;;YAEL;QACF;IACF;AACF;AAEA,SAASC;IACP,MAAMC;QACJA,aAAc;YACZC;YACA;;;QAEF;IACF;IAEAC;IACA;;;AAEF;AAEA,SAASC;IACP,MAAO,MAAO;QACZC;QACA;;;IAEF;IACAC;AACF;AAEA,SAASC;IACP;QACEC;QACA;;;IAEF;;;AAEF;AAEAC;AAEA;AAEAC"}}] {"offset": {"line": 12, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/comptime/early-return/input/module.js"],"sourcesContent":["export function a() {\n if (true) {\n a1()\n return\n }\n a2()\n var a3 = 3\n function a4() {\n var a5\n }\n ;(function a6() {\n var a7\n })\n const a8 = () => {\n var a9\n }\n class a10 {}\n let a11 = 11\n let {\n a12 = 12,\n a14: {\n a15,\n a16: [a17, ...a18],\n },\n ...a19\n } = {}\n function a20() {\n return\n a21()\n }\n ;({\n get a22() {\n var a23\n },\n set a22(value) {\n var a24\n },\n a25() {\n var a26\n },\n })\n {\n let a27\n var a28\n }\n}\n\nexport function b() {\n if (true) {\n b1()\n return\n } else {\n b2()\n }\n b3()\n}\n\nexport function c() {\n if (true) {\n return\n }\n c1()\n}\n\nexport function d() {\n if (true) {\n return\n } else {\n d1()\n }\n d2()\n}\n\nexport function e() {\n if (false) {\n e1()\n } else {\n return\n }\n e2()\n}\n\nexport function f() {\n if (false) {\n } else {\n return\n }\n f1()\n}\n\nexport function g() {\n if (false) {\n g1()\n } else {\n g2()\n return\n }\n g3()\n}\n\nexport function h() {\n if (false) {\n } else {\n h1()\n return\n }\n h2()\n}\n\nexport function i(j) {\n if (j < 1) return i1()\n return i2()\n}\n\nexport function j(j) {\n if (j < 1) {\n return i1()\n }\n return i2()\n}\n\nclass K {\n constructor() {\n try {\n k1()\n } catch (e) {\n k2()\n return\n k3()\n } finally {\n k4()\n }\n k5()\n }\n\n l() {\n try {\n l1()\n } catch (e) {\n l2()\n } finally {\n l3()\n return\n l4()\n }\n l5()\n }\n\n get m() {\n if (true) {\n m1()\n return\n }\n m2()\n }\n\n set m(value) {\n m1()\n return m2()\n m3()\n }\n\n n = () => {\n switch (42) {\n case 1:\n n1()\n return\n n2()\n case 2:\n n3()\n break\n default:\n n4()\n }\n n5()\n }\n\n o() {\n if (something) {\n require('./module')\n return\n } else {\n require('./module')\n return\n }\n }\n}\n\nfunction p() {\n class C {\n constructor() {\n p1()\n return\n p2()\n }\n }\n\n p3()\n return\n p4()\n}\n\nfunction q() {\n while (false) {\n q1()\n return\n q2()\n }\n q3()\n}\n\nfunction r() {\n {\n r1()\n return\n r2()\n }\n r3()\n}\n\nz1()\n\nreturn\n\nz2()\n"],"names":["a","a1","a3","a4","a5","a8","a10","a11","a12","a15","a17","a18","a19","a20","a28","b","b1","c","d","e","f","g","g2","h","h1","i","j","i1","i2","K","k1","k2","k4","k5","l","l1","l2","l3","m","m1","value","m2","n","n1","n3","n4","n5","o","something","p","C","p1","p3","q","q1","q3","r","r1","z1","z2"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAO,SAASA;IACd,wCAAU;QACRC;QACA;IACF;;;IAEA,IAAIC;IACJ,SAASC;QACP,IAAIC;IACN;IAIA,MAAMC;IAGAC,IAAAA;IACN,IAAIC;IACJ,IACEC,KAEEC,KACMC,KAAQC,KAEbC;IAEL,SAASC;QACP;;;IAEF;IAcE,IAAIC;AAER;AAEO,SAASC;IACd,wCAAU;QACRC;QACA;IACF;;;;AAIF;AAEO,SAASC;IACd,wCAAU;QACR;IACF;;;AAEF;AAEO,SAASC;IACd,wCAAU;QACR;IACF;;;;AAIF;AAEO,SAASC;IACd;;SAEO;QACL;IACF;;;AAEF;AAEO,SAASC;IACd,uCAAW,CACX,OAAO;QACL;IACF;;;AAEF;AAEO,SAASC;IACd;;SAEO;QACLC;QACA;IACF;;;AAEF;AAEO,SAASC;IACd,uCAAW,CACX,OAAO;QACLC;QACA;IACF;;;AAEF;AAEO,SAASC,EAAEC,CAAC;IACjB,IAAIA,IAAI,GAAG,OAAOC;IAClB,OAAOC;AACT;AAEO,SAASF,EAAEA,CAAC;IACjB,IAAIA,IAAI,GAAG;QACT,OAAOC;IACT;IACA,OAAOC;AACT;AAEA,MAAMC;IACJA,aAAc;QACZ,IAAI;YACFC;QACF,EAAE,OAAOX,GAAG;YACVY;YACA;;;QAEF,SAAU;YACRC;QACF;QACAC;IACF;IAEAC,IAAI;QACF,IAAI;YACFC;QACF,EAAE,OAAOhB,GAAG;YACViB;QACF,SAAU;YACRC;YACA;;;QAEF;;;IAEF;IAEA,IAAIC,IAAI;QACN,wCAAU;YACRC;YACA;QACF;;;IAEF;IAEA,IAAID,EAAEE,KAAK,EAAE;QACXD;QACA,OAAOE;;;IAET;IAEAC,IAAI;QACF,OAAQ;YACN,KAAK;gBACHC;gBACA;;;YAEF,KAAK;gBACHC;gBACA;YACF;gBACEC;QACJ;QACAC;IACF,EAAC;IAEDC,IAAI;QACF,IAAIC,WAAW;;YAEb;QACF,OAAO;;YAEL;QACF;IACF;AACF;AAEA,SAASC;IACP,MAAMC;QACJA,aAAc;YACZC;YACA;;;QAEF;IACF;IAEAC;IACA;;;AAEF;AAEA,SAASC;IACP,MAAO,MAAO;QACZC;QACA;;;IAEF;IACAC;AACF;AAEA,SAASC;IACP;QACEC;QACA;;;IAEF;;;AAEF;AAEAC;AAEA;AAEAC"}}]
} }
\ No newline at end of file
;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c43766b6-b61f-49ce-2bc6-d270f17e82af")}catch(e){}}(); ;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="6165c1d1-d5b9-7d3a-3889-39dd6d668107")}catch(e){}}();
(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([ (globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push([
"output/0rv8_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_0bjegbrfzt05o.js", "output/0rv8_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_0bjegbrfzt05o.js",
{"otherChunks":["output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/input/index.js [test] (ecmascript)"]} {"otherChunks":["output/0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_03ibyvsq4xsbk.js"],"runtimeModuleIds":["[project]/turbopack/crates/turbopack-tests/tests/snapshot/debug-ids/browser/input/index.js [test] (ecmascript)"]}
...@@ -110,7 +110,7 @@ function createModuleWithDirection(id) { ...@@ -110,7 +110,7 @@ function createModuleWithDirection(id) {
children: [] children: []
}; };
} }
const BindingTag_Value = 0; const BindingTag_Accessor = 0;
/** /**
* Terminates a module's group of entries in an {@link EsmReexports} list. * Terminates a module's group of entries in an {@link EsmReexports} list.
*/ const REEXPORT_GROUP_END = 0; */ const REEXPORT_GROUP_END = 0;
...@@ -126,19 +126,9 @@ const BindingTag_Value = 0; ...@@ -126,19 +126,9 @@ const BindingTag_Value = 0;
let i = 0; let i = 0;
while(i < bindings.length){ while(i < bindings.length){
const propName = bindings[i++]; const propName = bindings[i++];
const tagOrFunction = bindings[i++]; if (bindings[i] === BindingTag_Accessor && typeof bindings[i + 1] === 'function') {
if (typeof tagOrFunction === 'number') { i++;
if (tagOrFunction === BindingTag_Value) { const getterFn = bindings[i++];
defineProp(exports, propName, {
value: bindings[i++],
enumerable: true,
writable: false
});
} else {
throw new Error(`unexpected tag: ${tagOrFunction}`);
}
} else {
const getterFn = tagOrFunction;
if (typeof bindings[i] === 'function') { if (typeof bindings[i] === 'function') {
const setterFn = bindings[i++]; const setterFn = bindings[i++];
defineProp(exports, propName, { defineProp(exports, propName, {
...@@ -152,6 +142,12 @@ const BindingTag_Value = 0; ...@@ -152,6 +142,12 @@ const BindingTag_Value = 0;
enumerable: true enumerable: true
}); });
} }
} else {
defineProp(exports, propName, {
value: bindings[i++],
enumerable: true,
writable: false
});
} }
} }
// The properties defined above are already non-configurable and // The properties defined above are already non-configurable and
...@@ -270,8 +266,9 @@ function appendReexportBinding(bindings, exportedName, namespace, importedName) ...@@ -270,8 +266,9 @@ function appendReexportBinding(bindings, exportedName, namespace, importedName)
if (descriptor) { if (descriptor) {
if ('value' in descriptor) { if ('value' in descriptor) {
// Code generation only routes immutable imported bindings through this helper, so a data // Code generation only routes immutable imported bindings through this helper, so a data
// descriptor is a constant export and can be captured once. // descriptor is a constant export and can be captured once. Values are untagged; only
bindings.push(exportedName, BindingTag_Value, descriptor.value); // accessors carry a tag.
bindings.push(exportedName, descriptor.value);
return; return;
} }
if (descriptor.get) { if (descriptor.get) {
...@@ -282,12 +279,12 @@ function appendReexportBinding(bindings, exportedName, namespace, importedName) ...@@ -282,12 +279,12 @@ function appendReexportBinding(bindings, exportedName, namespace, importedName)
// and the CommonJS/dynamic-namespace paths create arrows in `createGetter` and // and the CommonJS/dynamic-namespace paths create arrows in `createGetter` and
// `getOwnPropertyDescriptor`. The destination can therefore reuse the exact function instead // `getOwnPropertyDescriptor`. The destination can therefore reuse the exact function instead
// of allocating another wrapper getter. // of allocating another wrapper getter.
bindings.push(exportedName, descriptor.get); bindings.push(exportedName, BindingTag_Accessor, descriptor.get);
return; return;
} }
} }
// Dynamic/proxy/inherited CommonJS edge cases may not expose a usable own descriptor. // Dynamic/proxy/inherited CommonJS edge cases may not expose a usable own descriptor.
bindings.push(exportedName, ()=>namespace[importedName]); bindings.push(exportedName, BindingTag_Accessor, ()=>namespace[importedName]);
} }
function ensureDynamicExports(module, exports) { function ensureDynamicExports(module, exports) {
let reexportedObjects = REEXPORTED_OBJECTS.get(module); let reexportedObjects = REEXPORTED_OBJECTS.get(module);
...@@ -442,9 +439,10 @@ function createGetter(obj, key) { ...@@ -442,9 +439,10 @@ function createGetter(obj, key) {
let defaultLocation = -1; let defaultLocation = -1;
for(let current = raw; (typeof current === 'object' || typeof current === 'function') && !LEAF_PROTOTYPES.includes(current); current = getProto(current)){ for(let current = raw; (typeof current === 'object' || typeof current === 'function') && !LEAF_PROTOTYPES.includes(current); current = getProto(current)){
for (const key of Object.getOwnPropertyNames(current)){ for (const key of Object.getOwnPropertyNames(current)){
bindings.push(key, createGetter(raw, key)); bindings.push(key, BindingTag_Accessor, createGetter(raw, key));
if (defaultLocation === -1 && key === 'default') { if (defaultLocation === -1 && key === 'default') {
defaultLocation = bindings.length - 1; // The index of the tag, so that the tag and the getter can be replaced together below.
defaultLocation = bindings.length - 2;
} }
} }
} }
...@@ -452,11 +450,12 @@ function createGetter(obj, key) { ...@@ -452,11 +450,12 @@ function createGetter(obj, key) {
// we should set the `default` getter if the imported module is a `.cjs file` // we should set the `default` getter if the imported module is a `.cjs file`
if (!(allowExportDefault && defaultLocation >= 0)) { if (!(allowExportDefault && defaultLocation >= 0)) {
// Replace the binding with one for the namespace itself in order to preserve iteration order. // Replace the binding with one for the namespace itself in order to preserve iteration order.
// Values are untagged, so `raw` is bound directly even when it is itself a function.
if (defaultLocation >= 0) { if (defaultLocation >= 0) {
// Replace the getter with the value // Replace the tag and getter with the value
bindings.splice(defaultLocation, 1, BindingTag_Value, raw); bindings.splice(defaultLocation, 2, raw);
} else { } else {
bindings.push('default', BindingTag_Value, raw); bindings.push('default', raw);
} }
} }
esm(ns, bindings); esm(ns, bindings);
...@@ -2614,5 +2613,5 @@ chunkListsToRegister.forEach(registerChunkList); ...@@ -2614,5 +2613,5 @@ chunkListsToRegister.forEach(registerChunkList);
})(); })();
//# debugId=c43766b6-b61f-49ce-2bc6-d270f17e82af //# debugId=6165c1d1-d5b9-7d3a-3889-39dd6d668107
//# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_0bjegbrfzt05o.js.map //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_debug-ids_browser_input_index_0bjegbrfzt05o.js.map
\ No newline at end of file
...@@ -87,7 +87,7 @@ function createModuleWithDirection(id) { ...@@ -87,7 +87,7 @@ function createModuleWithDirection(id) {
children: [] children: []
}; };
} }
const BindingTag_Value = 0; const BindingTag_Accessor = 0;
/** /**
* Terminates a module's group of entries in an {@link EsmReexports} list. * Terminates a module's group of entries in an {@link EsmReexports} list.
*/ const REEXPORT_GROUP_END = 0; */ const REEXPORT_GROUP_END = 0;
...@@ -103,19 +103,9 @@ const BindingTag_Value = 0; ...@@ -103,19 +103,9 @@ const BindingTag_Value = 0;
let i = 0; let i = 0;
while(i < bindings.length){ while(i < bindings.length){
const propName = bindings[i++]; const propName = bindings[i++];
const tagOrFunction = bindings[i++]; if (bindings[i] === BindingTag_Accessor && typeof bindings[i + 1] === 'function') {
if (typeof tagOrFunction === 'number') { i++;
if (tagOrFunction === BindingTag_Value) { const getterFn = bindings[i++];
defineProp(exports, propName, {
value: bindings[i++],
enumerable: true,
writable: false
});
} else {
throw new Error(`unexpected tag: ${tagOrFunction}`);
}
} else {
const getterFn = tagOrFunction;
if (typeof bindings[i] === 'function') { if (typeof bindings[i] === 'function') {
const setterFn = bindings[i++]; const setterFn = bindings[i++];
defineProp(exports, propName, { defineProp(exports, propName, {
...@@ -129,6 +119,12 @@ const BindingTag_Value = 0; ...@@ -129,6 +119,12 @@ const BindingTag_Value = 0;
enumerable: true enumerable: true
}); });
} }
} else {
defineProp(exports, propName, {
value: bindings[i++],
enumerable: true,
writable: false
});
} }
} }
// The properties defined above are already non-configurable and // The properties defined above are already non-configurable and
...@@ -247,8 +243,9 @@ function appendReexportBinding(bindings, exportedName, namespace, importedName) ...@@ -247,8 +243,9 @@ function appendReexportBinding(bindings, exportedName, namespace, importedName)
if (descriptor) { if (descriptor) {
if ('value' in descriptor) { if ('value' in descriptor) {
// Code generation only routes immutable imported bindings through this helper, so a data // Code generation only routes immutable imported bindings through this helper, so a data
// descriptor is a constant export and can be captured once. // descriptor is a constant export and can be captured once. Values are untagged; only
bindings.push(exportedName, BindingTag_Value, descriptor.value); // accessors carry a tag.
bindings.push(exportedName, descriptor.value);
return; return;
} }
if (descriptor.get) { if (descriptor.get) {
...@@ -259,12 +256,12 @@ function appendReexportBinding(bindings, exportedName, namespace, importedName) ...@@ -259,12 +256,12 @@ function appendReexportBinding(bindings, exportedName, namespace, importedName)
// and the CommonJS/dynamic-namespace paths create arrows in `createGetter` and // and the CommonJS/dynamic-namespace paths create arrows in `createGetter` and
// `getOwnPropertyDescriptor`. The destination can therefore reuse the exact function instead // `getOwnPropertyDescriptor`. The destination can therefore reuse the exact function instead
// of allocating another wrapper getter. // of allocating another wrapper getter.
bindings.push(exportedName, descriptor.get); bindings.push(exportedName, BindingTag_Accessor, descriptor.get);
return; return;
} }
} }
// Dynamic/proxy/inherited CommonJS edge cases may not expose a usable own descriptor. // Dynamic/proxy/inherited CommonJS edge cases may not expose a usable own descriptor.
bindings.push(exportedName, ()=>namespace[importedName]); bindings.push(exportedName, BindingTag_Accessor, ()=>namespace[importedName]);
} }
function ensureDynamicExports(module, exports) { function ensureDynamicExports(module, exports) {
let reexportedObjects = REEXPORTED_OBJECTS.get(module); let reexportedObjects = REEXPORTED_OBJECTS.get(module);
...@@ -419,9 +416,10 @@ function createGetter(obj, key) { ...@@ -419,9 +416,10 @@ function createGetter(obj, key) {
let defaultLocation = -1; let defaultLocation = -1;
for(let current = raw; (typeof current === 'object' || typeof current === 'function') && !LEAF_PROTOTYPES.includes(current); current = getProto(current)){ for(let current = raw; (typeof current === 'object' || typeof current === 'function') && !LEAF_PROTOTYPES.includes(current); current = getProto(current)){
for (const key of Object.getOwnPropertyNames(current)){ for (const key of Object.getOwnPropertyNames(current)){
bindings.push(key, createGetter(raw, key)); bindings.push(key, BindingTag_Accessor, createGetter(raw, key));
if (defaultLocation === -1 && key === 'default') { if (defaultLocation === -1 && key === 'default') {
defaultLocation = bindings.length - 1; // The index of the tag, so that the tag and the getter can be replaced together below.
defaultLocation = bindings.length - 2;
} }
} }
} }
...@@ -429,11 +427,12 @@ function createGetter(obj, key) { ...@@ -429,11 +427,12 @@ function createGetter(obj, key) {
// we should set the `default` getter if the imported module is a `.cjs file` // we should set the `default` getter if the imported module is a `.cjs file`
if (!(allowExportDefault && defaultLocation >= 0)) { if (!(allowExportDefault && defaultLocation >= 0)) {
// Replace the binding with one for the namespace itself in order to preserve iteration order. // Replace the binding with one for the namespace itself in order to preserve iteration order.
// Values are untagged, so `raw` is bound directly even when it is itself a function.
if (defaultLocation >= 0) { if (defaultLocation >= 0) {
// Replace the getter with the value // Replace the tag and getter with the value
bindings.splice(defaultLocation, 1, BindingTag_Value, raw); bindings.splice(defaultLocation, 2, raw);
} else { } else {
bindings.push('default', BindingTag_Value, raw); bindings.push('default', raw);
} }
} }
esm(ns, bindings); esm(ns, bindings);
......
...@@ -32,6 +32,7 @@ console.log(StyledButton, ClassNameButton); ...@@ -32,6 +32,7 @@ console.log(StyledButton, ClassNameButton);
__turbopack_context__.s([ __turbopack_context__.s([
"jsx", "jsx",
0,
()=>jsx ()=>jsx
]); ]);
function jsx() { function jsx() {
...@@ -43,6 +44,7 @@ function jsx() { ...@@ -43,6 +44,7 @@ function jsx() {
__turbopack_context__.s([ __turbopack_context__.s([
"jsxDEV", "jsxDEV",
0,
()=>jsxDEV ()=>jsxDEV
]); ]);
function jsxDEV() { function jsxDEV() {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 5, "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":["StyledButton","ClassNameButton","children","className","css","console","log"],"mappings":";;AAAA,oCAAoC,GAEpC;AACA;;;;AAEA,MAAMA,iCAAe,mNAAM;;;AAI3B,SAASC,gBAAgB,EAAEC,QAAQ,EAAE;IACnC,qBACE,uOAAC;QACCC,WAAWC,GAAG,CAAC;;MAEf,CAAC;kBAEAF;;;;;;AAGP;AAEAG,QAAQC,GAAG,CAACN,cAAcC"}}, {"offset": {"line": 5, "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":["StyledButton","ClassNameButton","children","className","css","console","log"],"mappings":";;AAAA,oCAAoC,GAEpC;AACA;;;;AAEA,MAAMA,iCAAe,mNAAM;;;AAI3B,SAASC,gBAAgB,EAAEC,QAAQ,EAAE;IACnC,qBACE,uOAAC;QACCC,WAAWC,GAAG,CAAC;;MAEf,CAAC;kBAEAF;;;;;;AAGP;AAEAG,QAAQC,GAAG,CAACN,cAAcC"}},
{"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/index.js"],"sourcesContent":["export function jsx() {\n return 'purposefully empty stub for @emotion/react/index.js'\n}\n"],"names":["jsx"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, {"offset": {"line": 32, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/index.js"],"sourcesContent":["export function jsx() {\n return 'purposefully empty stub for @emotion/react/index.js'\n}\n"],"names":["jsx"],"mappings":";;;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 43, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/jsx-dev-runtime.js"],"sourcesContent":["export function jsxDEV() {\n return 'purposefully empty stub for @emotion/react/jsx-dev-runtime.js'\n}\n"],"names":["jsxDEV"],"mappings":";;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}}, {"offset": {"line": 44, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/node_modules/@emotion/react/jsx-dev-runtime.js"],"sourcesContent":["export function jsxDEV() {\n return 'purposefully empty stub for @emotion/react/jsx-dev-runtime.js'\n}\n"],"names":["jsxDEV"],"mappings":";;;;;AAAO,SAASA;IACd,OAAO;AACT","ignoreList":[0]}},
{"offset": {"line": 54, "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": 56, "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]}}]
} }
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_constant-bindings_input_0s48an4oqjgn4._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/constant-bindings/input/index.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$reexport$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/constant-bindings/input/reexport.js [test] (ecmascript)");
var /*#__PURE__*/ { "v": __TURBOPACK__imported__binding__constant__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__, "U": __TURBOPACK__imported__binding__default__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__, "W": __TURBOPACK__imported__binding__setLive__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__ } = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$reexport$2e$js__$5b$test$5d$__$28$ecmascript$29$__;
;
console.log(__TURBOPACK__imported__binding__constant__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__, __TURBOPACK__imported__binding__constant__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__, __TURBOPACK__imported__binding__constant__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__, {
constant: __TURBOPACK__imported__binding__constant__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__
}, __TURBOPACK__imported__binding__default__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__(), __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$reexport$2e$js__$5b$test$5d$__$28$ecmascript$29$__["X"]);
__TURBOPACK__imported__binding__setLive__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__('updated');
console.log(__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$constant$2d$bindings$2f$input$2f$reexport$2e$js__$5b$test$5d$__$28$ecmascript$29$__["X"]);
__turbopack_context__.s([]);
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/constant-bindings/input/module.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
const constant = 'constant';
function constantDefault() {
return this === undefined ? 'constant-default' : 'wrong-this';
}
let live = 'initial';
function setLive(value) {
live = value;
}
__turbopack_context__.s([
"v",
constant,
"U",
constantDefault,
"X",
0,
()=>live,
"W",
setLive
]);
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/constant-bindings/input/reexport.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.S([
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/constant-bindings/input/module.js [test] (ecmascript)",
"v,v,U,U,X,X,W,W"
]);
;
}),
]);})()
//# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_imports_constant-bindings_input_0s48an4oqjgn4._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/constant-bindings/input/index.js"],"sourcesContent":["import constantDefault, {\n constant,\n constant as aliasedConstant,\n live,\n setLive,\n} from './reexport.js'\n\nconsole.log(\n constant,\n constant,\n aliasedConstant,\n { constant },\n constantDefault(),\n live\n)\nsetLive('updated')\nconsole.log(live)\n"],"names":["console","log","constant"],"mappings":"AAAA;;;AAOAA,QAAQC,GAAG,0tBAIT;IAAEC,QAAQ;AAAC,GACX,oPACA,qNAAI;AAEN,iPAAQ;AACRF,QAAQC,GAAG,CAAC,qNAAI"}},
{"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/constant-bindings/input/module.js"],"sourcesContent":["export const constant = 'constant'\n\nexport default function constantDefault() {\n return this === undefined ? 'constant-default' : 'wrong-this'\n}\n\nexport let live = 'initial'\n\nexport function setLive(value) {\n live = value\n}\n"],"names":["constant","constantDefault","undefined","live","setLive","value"],"mappings":"AAAO,MAAMA,WAAW;AAET,SAASC;IACtB,OAAO,IAAI,KAAKC,YAAY,qBAAqB;AACnD;AAEO,IAAIC,OAAO;AAEX,SAASC,QAAQC,KAAK;IAC3BF,OAAOE;AACT"}},
{"offset": {"line": 40, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}]
}
\ No newline at end of file
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
__turbopack_context__.s([ __turbopack_context__.s([
"Table", "Table",
0,
()=>Table ()=>Table
]); ]);
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$duplicate$2d$binding$2f$input$2f$table$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/table.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$duplicate$2d$binding$2f$input$2f$table$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/table.js [test] (ecmascript)");
...@@ -17,6 +18,7 @@ function Table() { ...@@ -17,6 +18,7 @@ function Table() {
__turbopack_context__.s([ __turbopack_context__.s([
"Table", "Table",
0,
()=>Table ()=>Table
]); ]);
const Table = ()=>{ const Table = ()=>{
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"version": 3, "version": 3,
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/index.js"],"sourcesContent":["import { Table } from './table'\n\nexport function Table() {\n console.log(Table)\n}\n"],"names":["Table","console","log"],"mappings":";;;;AAAA;;AAEO,SAASA;IACdC,QAAQC,GAAG,CAAC,sNAAK;AACnB"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/index.js"],"sourcesContent":["import { Table } from './table'\n\nexport function Table() {\n console.log(Table)\n}\n"],"names":["Table","console","log"],"mappings":";;;;;AAAA;;AAEO,SAASA;IACdC,QAAQC,GAAG,CAAC,sNAAK;AACnB"}},
{"offset": {"line": 17, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/table.js"],"sourcesContent":["export const Table = () => {\n return 'table'\n}\n"],"names":["Table"],"mappings":";;;;AAAO,MAAMA,QAAQ;IACnB,OAAO;AACT"}}] {"offset": {"line": 18, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/duplicate-binding/input/table.js"],"sourcesContent":["export const Table = () => {\n return 'table'\n}\n"],"names":["Table"],"mappings":";;;;;AAAO,MAAMA,QAAQ;IACnB,OAAO;AACT"}}]
} }
\ No newline at end of file
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
__turbopack_context__.s([ __turbopack_context__.s([
"default", "default",
0,
()=>__TURBOPACK__default__export__ ()=>__TURBOPACK__default__export__
]); ]);
const __TURBOPACK__default__export__ = 'turbopack'; const __TURBOPACK__default__export__ = 'turbopack';
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
"version": 3, "version": 3,
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;uCAAe"}}] {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/dynamic/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;;uCAAe"}}]
} }
\ No newline at end of file
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
__turbopack_context__.s([ __turbopack_context__.s([
"default", "default",
0,
()=>__TURBOPACK__default__export__ ()=>__TURBOPACK__default__export__
]); ]);
const __TURBOPACK__default__export__ = 'turbopack'; const __TURBOPACK__default__export__ = 'turbopack';
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
"version": 3, "version": 3,
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;uCAAe"}}] {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/ignore-comments/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;;uCAAe"}}]
} }
\ No newline at end of file
...@@ -7,6 +7,7 @@ __turbopack_context__.q("/static/ignore-worker.3cqstqcuvhq6o.cjs");}), ...@@ -7,6 +7,7 @@ __turbopack_context__.q("/static/ignore-worker.3cqstqcuvhq6o.cjs");}),
__turbopack_context__.s([ __turbopack_context__.s([
"foo", "foo",
0,
()=>foo ()=>foo
]); ]);
var __TURBOPACK__import$2e$meta__ = { var __TURBOPACK__import$2e$meta__ = {
...@@ -63,6 +64,7 @@ __turbopack_context__.v(__turbopack_context__.r("[turbopack-ecmascript]/worker/b ...@@ -63,6 +64,7 @@ __turbopack_context__.v(__turbopack_context__.r("[turbopack-ecmascript]/worker/b
// values are read from `globalThis`. // values are read from `globalThis`.
__turbopack_context__.s([ __turbopack_context__.s([
"default", "default",
0,
()=>generateCreateWorker ()=>generateCreateWorker
]); ]);
/** /**
......
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/0_9x_turbopack-tests_tests_snapshot_imports_namespace-call-arrow_input_1a2yx4tbrus09._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/namespace-call-arrow/input/index.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/namespace-call-arrow/input/lib.js [test] (ecmascript)");
var /*#__PURE__*/ { "arrowFn": __TURBOPACK__imported__binding__arrowFn__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__, "plainFn": __TURBOPACK__imported__binding__plainFn__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__, "classFn": __TURBOPACK__imported__binding__classFn__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__, "default": __TURBOPACK__imported__binding__default__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__ } = __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__;
;
console.log(__TURBOPACK__imported__binding__arrowFn__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__(1), __TURBOPACK__imported__binding__plainFn__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__(2), __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["methodLike"](), __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__["evalFn"](), __TURBOPACK__imported__binding__classFn__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__(), __TURBOPACK__imported__binding__default__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$namespace$2d$call$2d$arrow$2f$input$2f$lib$2e$js__$5b$test$5d$__$28$ecmascript$29$__());
__turbopack_context__.s([]);
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/namespace-call-arrow/input/lib.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
// An arrow has no `this` of its own, so calling it through the namespace does not need the
// namespace as a receiver.
const arrowFn = (x)=>x * 2;
function plainFn(x) {
return x + 1;
}
function methodLike() {
return this === undefined ? 'no-this' : 'has-this';
}
function evalFn() {
return eval('this');
}
function classFn() {
class Inner {
field = this;
static{
this.tag = 'tag';
}
m() {
return this.x;
}
}
return Inner;
}
const __TURBOPACK__default__export__ = ()=>'default-arrow';
__turbopack_context__.s([
"arrowFn",
arrowFn,
"classFn",
classFn,
"default",
__TURBOPACK__default__export__,
"evalFn",
evalFn,
"methodLike",
methodLike,
"plainFn",
plainFn
]);
}),
]);})()
//# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_imports_namespace-call-arrow_input_1a2yx4tbrus09._.js.map
\ No newline at end of file
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
__turbopack_context__.s([ __turbopack_context__.s([
"default", "default",
0,
()=>__TURBOPACK__default__export__ ()=>__TURBOPACK__default__export__
]); ]);
const __TURBOPACK__default__export__ = 'existing module (esm)'; const __TURBOPACK__default__export__ = 'existing module (esm)';
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
"version": 3, "version": 3,
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.mjs"],"sourcesContent":["export default 'existing module (esm)'\n"],"names":[],"mappings":";;;;uCAAe"}}] {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/optional-comments/input/existing.mjs"],"sourcesContent":["export default 'existing module (esm)'\n"],"names":[],"mappings":";;;;;uCAAe"}}]
} }
\ No newline at end of file
...@@ -15,6 +15,7 @@ if (!__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turb ...@@ -15,6 +15,7 @@ if (!__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turb
__turbopack_context__.s([ __turbopack_context__.s([
"default", "default",
0,
()=>__TURBOPACK__default__export__ ()=>__TURBOPACK__default__export__
]); ]);
const __TURBOPACK__default__export__ = { const __TURBOPACK__default__export__ = {
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/index.js"],"sourcesContent":["import posts from './posts'\n\nconsole.log(posts.js)\nif (!posts.js) {\n process.exit(1)\n}\n"],"names":["console","log","js","process","exit"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,yMAAK,CAACC,EAAE;AACpB,IAAI,CAAC,yMAAK,CAACA,EAAE,EAAE;IACbC,QAAQC,IAAI,CAAC;AACf"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/index.js"],"sourcesContent":["import posts from './posts'\n\nconsole.log(posts.js)\nif (!posts.js) {\n process.exit(1)\n}\n"],"names":["console","log","js","process","exit"],"mappings":";AAAA;;AAEAA,QAAQC,GAAG,CAAC,yMAAK,CAACC,EAAE;AACpB,IAAI,CAAC,yMAAK,CAACA,EAAE,EAAE;IACbC,QAAQC,IAAI,CAAC;AACf"}},
{"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/posts.ts"],"sourcesContent":["export default {\n js: true,\n}\n"],"names":["js"],"mappings":";;;;uCAAe;IACbA,IAAI;AACN"}}] {"offset": {"line": 15, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/order/input/posts.ts"],"sourcesContent":["export default {\n js: true,\n}\n"],"names":["js"],"mappings":";;;;;uCAAe;IACbA,IAAI;AACN"}}]
} }
\ No newline at end of file
(()=>{"use strict";(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push(["output/1jsg_tests_snapshot_imports_same-binding-multiple-paths_input_10t1tbv8670i2._.js",
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/same-binding-multiple-paths/input/index.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
// One binding, reached directly and through a re-exporting module under several names. Every
// name reads the same value, so the output declares a single captured binding for all of them.
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$same$2d$binding$2d$multiple$2d$paths$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/same-binding-multiple-paths/input/module.js [test] (ecmascript)");
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$same$2d$binding$2d$multiple$2d$paths$2f$input$2f$reexport$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/same-binding-multiple-paths/input/reexport.js [test] (ecmascript)");
var __TURBOPACK__imported__binding__binding__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$same$2d$binding$2d$multiple$2d$paths$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = /*#__PURE__*/ __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$same$2d$binding$2d$multiple$2d$paths$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__["f"];
;
;
;
console.log(__TURBOPACK__imported__binding__binding__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$same$2d$binding$2d$multiple$2d$paths$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__, __TURBOPACK__imported__binding__binding__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$same$2d$binding$2d$multiple$2d$paths$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__, __TURBOPACK__imported__binding__binding__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$same$2d$binding$2d$multiple$2d$paths$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__, __TURBOPACK__imported__binding__binding__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$same$2d$binding$2d$multiple$2d$paths$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__, __TURBOPACK__imported__binding__binding__from__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$imports$2f$same$2d$binding$2d$multiple$2d$paths$2f$input$2f$module$2e$js__$5b$test$5d$__$28$ecmascript$29$__);
__turbopack_context__.s([]);
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/same-binding-multiple-paths/input/module.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
const binding = 123;
__turbopack_context__.s([
"f",
binding
]);
}),
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/same-binding-multiple-paths/input/reexport.js [test] (ecmascript)", ((__turbopack_context__) => {
"use strict";
__turbopack_context__.S([
"[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/same-binding-multiple-paths/input/module.js [test] (ecmascript)",
"binding,f,binding2,f"
]);
;
;
}),
]);})()
//# sourceMappingURL=1jsg_tests_snapshot_imports_same-binding-multiple-paths_input_10t1tbv8670i2._.js.map
\ No newline at end of file
{
"version": 3,
"sources": [],
"sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/same-binding-multiple-paths/input/index.js"],"sourcesContent":["// One binding, reached directly and through a re-exporting module under several names. Every\n// name reads the same value, so the output declares a single captured binding for all of them.\nimport { binding } from './module.js'\nimport { binding as binding3, binding2 } from './reexport.js'\nimport * as reexports from './reexport.js'\n\nconsole.log(binding, binding2, binding3, reexports.binding, reexports.binding2)\n"],"names":["console","log"],"mappings":"AAAA,6FAA6F;AAC7F,+FAA+F;AAC/F;AACA;;;;;AAGAA,QAAQC,GAAG"}},
{"offset": {"line": 18, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/same-binding-multiple-paths/input/module.js"],"sourcesContent":["export const binding = 123\n"],"names":["binding"],"mappings":"AAAO,MAAMA,UAAU"}},
{"offset": {"line": 27, "column": 0}, "map": {"version":3,"sources":[],"names":[],"mappings":""}}]
}
\ No newline at end of file
...@@ -13,6 +13,7 @@ __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapsh ...@@ -13,6 +13,7 @@ __turbopack_context__.A("[project]/turbopack/crates/turbopack-tests/tests/snapsh
__turbopack_context__.s([ __turbopack_context__.s([
"default", "default",
0,
()=>__TURBOPACK__default__export__ ()=>__TURBOPACK__default__export__
]); ]);
const __TURBOPACK__default__export__ = 'turbopack'; const __TURBOPACK__default__export__ = 'turbopack';
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
"sources": [], "sources": [],
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/index.js"],"sourcesContent":["import img from './vercel.mjs'\nconsole.log(img)\n\nimport('./vercel.mjs').then(console.log)\n"],"names":["console","log","then"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAAC,8NAAG;AAEf,mKAAuBC,IAAI,CAACF,QAAQC,GAAG"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/index.js"],"sourcesContent":["import img from './vercel.mjs'\nconsole.log(img)\n\nimport('./vercel.mjs').then(console.log)\n"],"names":["console","log","then"],"mappings":";AAAA;;AACAA,QAAQC,GAAG,CAAC,8NAAG;AAEf,mKAAuBC,IAAI,CAACF,QAAQC,GAAG"}},
{"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;uCAAe"}}] {"offset": {"line": 13, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/imports/static-and-dynamic/input/vercel.mjs"],"sourcesContent":["export default 'turbopack'\n"],"names":[],"mappings":";;;;;uCAAe"}}]
} }
\ No newline at end of file
...@@ -27,13 +27,10 @@ function namedFunction() {} ...@@ -27,13 +27,10 @@ function namedFunction() {}
function defaultFunction() {} function defaultFunction() {}
__turbopack_context__.s([ __turbopack_context__.s([
"default", "default",
0,
defaultFunction, defaultFunction,
"local", "local",
0,
local, local,
"namedFunction", "namedFunction",
0,
namedFunction namedFunction
]); ]);
}), }),
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
"sections": [ "sections": [
{"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/index.js"],"sourcesContent":["import { local, namedFunction, default as defaultFunction } from 'lib'\n\nlocal()\nnamedFunction()\n\ndefaultFunction()\n"],"names":[],"mappings":"AAAA;;AAEA,IAAA,yRAAK;AACL,IAAA,iSAAa;AAEb,IAAA,2RAAe"}}, {"offset": {"line": 4, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/index.js"],"sourcesContent":["import { local, namedFunction, default as defaultFunction } from 'lib'\n\nlocal()\nnamedFunction()\n\ndefaultFunction()\n"],"names":[],"mappings":"AAAA;;AAEA,IAAA,yRAAK;AACL,IAAA,iSAAa;AAEb,IAAA,2RAAe"}},
{"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/index.js"],"sourcesContent":["export { unused } from './unused.js'\nexport * from './unused-star.js'\n\nfunction local() {\n console.log('This is a local function')\n}\nfunction localUnused() {\n console.log('This is a local unused function')\n}\n\nexport { local, localUnused }\n\nexport function namedFunction() {}\n\nexport default function defaultFunction() {}\n"],"names":["local","console","log","localUnused","namedFunction","defaultFunction"],"mappings":"AAAA;AACA;;;AAEA,SAASA;IACPC,QAAQC,GAAG,CAAC;AACd;AACA,SAASC;IACPF,QAAQC,GAAG,CAAC;AACd;;AAIO,SAASE,iBAAiB;AAElB,SAASC,mBAAmB","ignoreList":[0]}}, {"offset": {"line": 14, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/index.js"],"sourcesContent":["export { unused } from './unused.js'\nexport * from './unused-star.js'\n\nfunction local() {\n console.log('This is a local function')\n}\nfunction localUnused() {\n console.log('This is a local unused function')\n}\n\nexport { local, localUnused }\n\nexport function namedFunction() {}\n\nexport default function defaultFunction() {}\n"],"names":["local","console","log","localUnused","namedFunction","defaultFunction"],"mappings":"AAAA;AACA;;;AAEA,SAASA;IACPC,QAAQC,GAAG,CAAC;AACd;AACA,SAASC;IACPF,QAAQC,GAAG,CAAC;AACd;;AAIO,SAASE,iBAAiB;AAElB,SAASC,mBAAmB","ignoreList":[0]}},
{"offset": {"line": 42, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused-star.js"],"sourcesContent":["export function unused() {}\n"],"names":["unused"],"mappings":"AAAO,SAASA,UAAU","ignoreList":[0]}}, {"offset": {"line": 39, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused-star.js"],"sourcesContent":["export function unused() {}\n"],"names":["unused"],"mappings":"AAAO,SAASA,UAAU","ignoreList":[0]}},
{"offset": {"line": 48, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused.js"],"sourcesContent":["export function unusedStar() {}\n"],"names":["unusedStar"],"mappings":"AAAO,SAASA,cAAc","ignoreList":[0]}}] {"offset": {"line": 45, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/reexport-with-locals/input/node_modules/lib/unused.js"],"sourcesContent":["export function unusedStar() {}\n"],"names":["unusedStar"],"mappings":"AAAO,SAASA,cAAc","ignoreList":[0]}}]
} }
\ No newline at end of file
...@@ -14,7 +14,6 @@ const a = 'a'; ...@@ -14,7 +14,6 @@ const a = 'a';
const a_unused = 'a_unused'; const a_unused = 'a_unused';
__turbopack_context__.s([ __turbopack_context__.s([
"a", "a",
0,
a a
]); ]);
}), }),
...@@ -24,6 +23,7 @@ __turbopack_context__.s([ ...@@ -24,6 +23,7 @@ __turbopack_context__.s([
var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$rename$2d$side$2d$effect$2d$free$2d$facade$2f$input$2f$node_modules$2f$lib$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/node_modules/lib/a.js [test] (ecmascript)"); var __TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$rename$2d$side$2d$effect$2d$free$2d$facade$2f$input$2f$node_modules$2f$lib$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/intermediate-tree-shake/rename-side-effect-free-facade/input/node_modules/lib/a.js [test] (ecmascript)");
__turbopack_context__.s([ __turbopack_context__.s([
"a0", "a0",
0,
()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$rename$2d$side$2d$effect$2d$free$2d$facade$2f$input$2f$node_modules$2f$lib$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a"] ()=>__TURBOPACK__imported__module__$5b$project$5d2f$turbopack$2f$crates$2f$turbopack$2d$tests$2f$tests$2f$snapshot$2f$intermediate$2d$tree$2d$shake$2f$rename$2d$side$2d$effect$2d$free$2d$facade$2f$input$2f$node_modules$2f$lib$2f$a$2e$js__$5b$test$5d$__$28$ecmascript$29$__["a"]
]); ]);
}), }),
......
...@@ -23,7 +23,6 @@ function getDog() { ...@@ -23,7 +23,6 @@ function getDog() {
} }
__turbopack_context__.s([ __turbopack_context__.s([
"getCat", "getCat",
0,
getCat getCat
]); ]);
}), }),
......
(()=>{"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)",t=>{t.s(["anotherLongExportName",0,"long-2","someLongExportName",0,"long-1"])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/index.js [test] (ecmascript)",t=>{var s=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)"),e=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js [test] (ecmascript)");console.log(s,e.z,e.T),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js [test] (ecmascript)",t=>{t.s(["T",0,"mangled-2","z",0,"mangled-1"])}]})(); (()=>{"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)",t=>{t.s(["anotherLongExportName","long-2","someLongExportName","long-1"])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/index.js [test] (ecmascript)",t=>{var s=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)"),e=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js [test] (ecmascript)");console.log(s,e.z,e.T),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js [test] (ecmascript)",t=>{t.s(["T","mangled-2","z","mangled-1"])}]})();
//# sourceMappingURL=1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js.map //# sourceMappingURL=1jsg_tests_snapshot_mangle-exports_escaping-namespace_input_1ysta134r3dyz._.js.map
\ No newline at end of file
{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js"],"sourcesContent":["// A namespace object of this module escapes, so it keeps its original export names.\nexport const someLongExportName = 'long-1'\nexport const anotherLongExportName = 'long-2'\n","import * as escaping from './escaping.js'\nimport { someLongExportName, anotherLongExportName } from './mangled.js'\n\nconst leak = () => escaping\n\nconsole.log(leak(), someLongExportName, anotherLongExportName)\n","// Nothing escapes here, so this module in the same graph is still mangled.\nexport const someLongExportName = 'mangled-1'\nexport const anotherLongExportName = 'mangled-2'\n"],"names":["someLongExportName","anotherLongExportName","leak","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)","console","log"],"mappings":"0MAEqC,gCADH,iJCDlC,IAAA,EAAA,EAAA,CAAA,CAAA,qIACA,EAAA,EAAA,CAAA,CAAA,oIAIAI,QAAQC,GAAG,CAFQF,AAEPD,EAAQ,EAAA,CAAkB,CAAE,EAAA,CAAqB,6JCHxB,kBADH"} {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/mangled.js"],"sourcesContent":["// A namespace object of this module escapes, so it keeps its original export names.\nexport const someLongExportName = 'long-1'\nexport const anotherLongExportName = 'long-2'\n","import * as escaping from './escaping.js'\nimport { someLongExportName, anotherLongExportName } from './mangled.js'\n\nconst leak = () => escaping\n\nconsole.log(leak(), someLongExportName, anotherLongExportName)\n","// Nothing escapes here, so this module in the same graph is still mangled.\nexport const someLongExportName = 'mangled-1'\nexport const anotherLongExportName = 'mangled-2'\n"],"names":["someLongExportName","anotherLongExportName","leak","imported module [project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/escaping-namespace/input/escaping.js [test] (ecmascript)","console","log"],"mappings":"wMAEqC,8BADH,iJCDlC,IAAA,EAAA,EAAA,CAAA,CAAA,qIACA,EAAA,EAAA,CAAA,CAAA,oIAIAI,QAAQC,GAAG,CAFQF,AAEPD,EAAQ,EAAA,CAAkB,CAAE,EAAA,CAAqB,2JCHxB,gBADH"}
\ No newline at end of file \ No newline at end of file
(()=>{"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/index.js [test] (ecmascript)",t=>{var e=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js [test] (ecmascript)");console.log(e.a,e.$,e.z,e.T,(0,e.X)()),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js [test] (ecmascript)",t=>{t.s(["a",0,"a","X",0,function(){return"fn"},"T",0,"long-2","$",0,"bb","z",0,"long-1"])}]})(); (()=>{"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/index.js [test] (ecmascript)",t=>{var e=t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js [test] (ecmascript)");console.log(e.a,e.$,e.z,e.T,(0,e.X)()),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js [test] (ecmascript)",t=>{t.s(["a","a","X",function(){return"fn"},"T","long-2","$","bb","z","long-1"])}]})();
//# sourceMappingURL=1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js.map //# sourceMappingURL=1jsg_tests_snapshot_mangle-exports_named-and-preserved_input_0pbreftkp_5pc._.js.map
\ No newline at end of file
{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js"],"sourcesContent":["import {\n a,\n bb,\n someLongExportName,\n anotherLongExportName,\n aLongFunctionName,\n} from './lib.js'\n\nconsole.log(\n a,\n bb,\n someLongExportName,\n anotherLongExportName,\n aLongFunctionName()\n)\n","export const a = 'a'\nexport const bb = 'bb'\nexport const someLongExportName = 'long-1'\nexport const anotherLongExportName = 'long-2'\nexport const unusedLongExportName = 'unused'\n\nexport function aLongFunctionName() {\n return 'fn'\n}\n"],"names":["console","log","a","bb","someLongExportName","anotherLongExportName","unusedLongExportName","aLongFunctionName"],"mappings":"yKAAA,IAAA,EAAA,EAAA,CAAA,CAAA,iIAQAA,QAAQC,GAAG,CACT,EAAA,CAAC,CACD,EAAA,CAAE,CACF,EAAA,CAAkB,CAClB,EAAA,CAAqB,CACrB,CAAA,EAAA,EAAA,CAAA,AAAiB,6JCbF,UAMV,SAASM,EACd,MAAO,IACT,QALqC,eAFnB,WACgB"} {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/named-and-preserved/input/lib.js"],"sourcesContent":["import {\n a,\n bb,\n someLongExportName,\n anotherLongExportName,\n aLongFunctionName,\n} from './lib.js'\n\nconsole.log(\n a,\n bb,\n someLongExportName,\n anotherLongExportName,\n aLongFunctionName()\n)\n","export const a = 'a'\nexport const bb = 'bb'\nexport const someLongExportName = 'long-1'\nexport const anotherLongExportName = 'long-2'\nexport const unusedLongExportName = 'unused'\n\nexport function aLongFunctionName() {\n return 'fn'\n}\n"],"names":["console","log","a","bb","someLongExportName","anotherLongExportName","unusedLongExportName","aLongFunctionName"],"mappings":"yKAAA,IAAA,EAAA,EAAA,CAAA,CAAA,iIAQAA,QAAQC,GAAG,CACT,EAAA,CAAC,CACD,EAAA,CAAE,CACF,EAAA,CAAkB,CAClB,EAAA,CAAqB,CACrB,CAAA,EAAA,EAAA,CAAA,AAAiB,2JCbF,QAMV,SAASM,EACd,MAAO,IACT,MALqC,aAFnB,SACgB"}
\ No newline at end of file \ No newline at end of file
(()=>{"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/index.js [test] (ecmascript)",t=>{console.log((0,t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js [test] (ecmascript)").f)()),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js [test] (ecmascript)",t=>{t.s(["f",0,function(){return"lone"}])}]})(); (()=>{"use strict";module.exports=["[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/index.js [test] (ecmascript)",t=>{console.log((0,t.i("[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js [test] (ecmascript)").f)()),t.s([])},"[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js [test] (ecmascript)",t=>{t.s(["f",function(){return"lone"}])}]})();
//# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js.map //# sourceMappingURL=0_9x_turbopack-tests_tests_snapshot_mangle-exports_single-export_input_1mf78g4ogdhgv._.js.map
\ No newline at end of file
{"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js"],"sourcesContent":["import { aLongFunctionNameNobodyWantsInTheBundle } from './lone'\n\nconsole.log(aLongFunctionNameNobodyWantsInTheBundle())\n","// The only export of this module. It is emitted under the fixed single-export key rather than a\n// hashed one, so that every single-export module in the graph produces the same `.f` byte sequence\n// and gzip can share it. Visible in the committed output below.\nexport function aLongFunctionNameNobodyWantsInTheBundle() {\n return 'lone'\n}\n"],"names":["console","log","aLongFunctionNameNobodyWantsInTheBundle"],"mappings":"mKAEAA,QAAQC,GAAG,CAAC,CAAA,EAFZ,AAEY,EAFZ,CAAA,CAAA,4HAEY,CAAA,AAAuC,wJCC5C,SAASC,EACd,MAAO,MACT"} {"version":3,"sources":["turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/index.js","turbopack:///[project]/turbopack/crates/turbopack-tests/tests/snapshot/mangle-exports/single-export/input/lone.js"],"sourcesContent":["import { aLongFunctionNameNobodyWantsInTheBundle } from './lone'\n\nconsole.log(aLongFunctionNameNobodyWantsInTheBundle())\n","// The only export of this module. It is emitted under the fixed single-export key rather than a\n// hashed one, so that every single-export module in the graph produces the same `.f` byte sequence\n// and gzip can share it. Visible in the committed output below.\nexport function aLongFunctionNameNobodyWantsInTheBundle() {\n return 'lone'\n}\n"],"names":["console","log","aLongFunctionNameNobodyWantsInTheBundle"],"mappings":"mKAEAA,QAAQC,GAAG,CAAC,CAAA,EAFZ,AAEY,EAFZ,CAAA,CAAA,4HAEY,CAAA,AAAuC,sJCC5C,SAASC,EACd,MAAO,MACT"}
\ No newline at end of file \ 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