Commit ceff818b authored by Luke Sandberg's avatar Luke Sandberg

Consume new vargraph data to set liveness

parent 5a521781
...@@ -387,7 +387,7 @@ async fn get_all_export_names( ...@@ -387,7 +387,7 @@ async fn get_all_export_names(
star_export_names star_export_names
.esm_exports .esm_exports
.iter() .iter()
.map(|(k, &v)| (k.clone(), v)), .map(|(k, (_liveness, v))| (k.clone(), *v)),
); );
dynamic_exporting_modules dynamic_exporting_modules
.extend(star_export_names.dynamic_exporting_modules.iter().copied()); .extend(star_export_names.dynamic_exporting_modules.iter().copied());
...@@ -402,7 +402,7 @@ async fn get_all_export_names( ...@@ -402,7 +402,7 @@ async fn get_all_export_names(
#[turbo_tasks::value] #[turbo_tasks::value]
pub struct ExpandStarResult { pub struct ExpandStarResult {
pub esm_exports: FxIndexMap<RcStr, ResolvedVc<Box<dyn EcmascriptChunkPlaceable>>>, pub esm_exports: FxIndexMap<RcStr, (Liveness, ResolvedVc<Box<dyn EcmascriptChunkPlaceable>>)>,
pub dynamic_exporting_modules: Vec<ResolvedVc<Box<dyn EcmascriptChunkPlaceable>>>, pub dynamic_exporting_modules: Vec<ResolvedVc<Box<dyn EcmascriptChunkPlaceable>>>,
} }
...@@ -419,11 +419,13 @@ pub async fn expand_star_exports( ...@@ -419,11 +419,13 @@ pub async fn expand_star_exports(
match &*exports.await? { match &*exports.await? {
EcmascriptExports::EsmExports(exports) => { EcmascriptExports::EsmExports(exports) => {
let exports = exports.await?; let exports = exports.await?;
for key in exports.exports.keys() { for (key, export) in exports.exports.iter() {
if key == "default" { if key == "default" {
continue; continue;
} }
esm_exports.entry(key.clone()).or_insert_with(|| asset); esm_exports
.entry(key.clone())
.or_insert_with(|| (export.liveness(), asset));
} }
for esm_ref in exports.star_exports.iter() { for esm_ref in exports.star_exports.iter() {
if let ReferencedAsset::Some(asset) = if let ReferencedAsset::Some(asset) =
......
...@@ -782,8 +782,12 @@ pub(crate) async fn analyse_ecmascript_module_internal( ...@@ -782,8 +782,12 @@ pub(crate) async fn analyse_ecmascript_module_internal(
let (webpack_runtime, webpack_entry, webpack_chunks, mut esm_exports) = let (webpack_runtime, webpack_entry, webpack_chunks, mut esm_exports) =
set_handler_and_globals(&handler, globals, || { set_handler_and_globals(&handler, globals, || {
// TODO migrate to effects // TODO migrate to effects
let mut visitor = let mut visitor = ModuleReferencesVisitor::new(
ModuleReferencesVisitor::new(eval_context, &import_references, &mut analysis); eval_context,
&import_references,
&mut analysis,
&var_graph,
);
// ModuleReferencesVisitor has already called analysis.add_esm_reexport_reference // ModuleReferencesVisitor has already called analysis.add_esm_reexport_reference
// for any references in esm_exports // for any references in esm_exports
program.visit_with_ast_path(&mut visitor, &mut Default::default()); program.visit_with_ast_path(&mut visitor, &mut Default::default());
...@@ -3200,6 +3204,7 @@ struct ModuleReferencesVisitor<'a> { ...@@ -3200,6 +3204,7 @@ struct ModuleReferencesVisitor<'a> {
webpack_runtime: Option<(RcStr, Span)>, webpack_runtime: Option<(RcStr, Span)>,
webpack_entry: bool, webpack_entry: bool,
webpack_chunks: Vec<Lit>, webpack_chunks: Vec<Lit>,
var_graph: &'a VarGraph,
} }
impl<'a> ModuleReferencesVisitor<'a> { impl<'a> ModuleReferencesVisitor<'a> {
...@@ -3207,6 +3212,7 @@ impl<'a> ModuleReferencesVisitor<'a> { ...@@ -3207,6 +3212,7 @@ impl<'a> ModuleReferencesVisitor<'a> {
eval_context: &'a EvalContext, eval_context: &'a EvalContext,
import_references: &'a [ResolvedVc<EsmAssetReference>], import_references: &'a [ResolvedVc<EsmAssetReference>],
analysis: &'a mut AnalyzeEcmascriptModuleResultBuilder, analysis: &'a mut AnalyzeEcmascriptModuleResultBuilder,
var_graph: &'a VarGraph,
) -> Self { ) -> Self {
Self { Self {
eval_context, eval_context,
...@@ -3217,6 +3223,7 @@ impl<'a> ModuleReferencesVisitor<'a> { ...@@ -3217,6 +3223,7 @@ impl<'a> ModuleReferencesVisitor<'a> {
webpack_runtime: None, webpack_runtime: None,
webpack_entry: false, webpack_entry: false,
webpack_chunks: Vec::new(), webpack_chunks: Vec::new(),
var_graph,
} }
} }
} }
...@@ -3225,10 +3232,10 @@ fn as_parent_path(ast_path: &AstNodePath<AstParentNodeRef<'_>>) -> Vec<AstParent ...@@ -3225,10 +3232,10 @@ fn as_parent_path(ast_path: &AstNodePath<AstParentNodeRef<'_>>) -> Vec<AstParent
ast_path.iter().map(|n| n.kind()).collect() ast_path.iter().map(|n| n.kind()).collect()
} }
fn for_each_ident_in_pat(pat: &Pat, f: &mut impl FnMut(RcStr)) { fn for_each_ident_in_pat(pat: &Pat, f: &mut impl FnMut(&Ident)) {
match pat { match pat {
Pat::Ident(BindingIdent { id, .. }) => { Pat::Ident(BindingIdent { id, .. }) => {
f(id.sym.as_str().into()); f(id);
} }
Pat::Array(ArrayPat { elems, .. }) => elems.iter().for_each(|e| { Pat::Array(ArrayPat { elems, .. }) => elems.iter().for_each(|e| {
if let Some(e) = e { if let Some(e) = e {
...@@ -3244,7 +3251,7 @@ fn for_each_ident_in_pat(pat: &Pat, f: &mut impl FnMut(RcStr)) { ...@@ -3244,7 +3251,7 @@ fn for_each_ident_in_pat(pat: &Pat, f: &mut impl FnMut(RcStr)) {
for_each_ident_in_pat(value, f); for_each_ident_in_pat(value, f);
} }
ObjectPatProp::Assign(AssignPatProp { key, .. }) => { ObjectPatProp::Assign(AssignPatProp { key, .. }) => {
f(key.sym.as_str().into()); f(&key.id);
} }
ObjectPatProp::Rest(RestPat { arg, .. }) => { ObjectPatProp::Rest(RestPat { arg, .. }) => {
for_each_ident_in_pat(arg, f); for_each_ident_in_pat(arg, f);
...@@ -3283,6 +3290,7 @@ impl VisitAstPath for ModuleReferencesVisitor<'_> { ...@@ -3283,6 +3290,7 @@ impl VisitAstPath for ModuleReferencesVisitor<'_> {
.map(find_turbopack_part_id_in_asserts) .map(find_turbopack_part_id_in_asserts)
.is_some(); .is_some();
// This is for a statement like `export {a, b as c}` with no `from` clause.
if export.src.is_none() { if export.src.is_none() {
for spec in export.specifiers.iter() { for spec in export.specifiers.iter() {
fn to_rcstr(name: &ModuleExportName) -> RcStr { fn to_rcstr(name: &ModuleExportName) -> RcStr {
...@@ -3361,30 +3369,27 @@ impl VisitAstPath for ModuleReferencesVisitor<'_> { ...@@ -3361,30 +3369,27 @@ impl VisitAstPath for ModuleReferencesVisitor<'_> {
) { ) {
{ {
let decl: &Decl = &export.decl; let decl: &Decl = &export.decl;
let insert_export_binding = &mut |name: RcStr, liveness: Liveness| { let insert_export_binding = &mut |id: &Ident| {
let liveness = if self.is_export_ident_live(id) {
Liveness::Live
} else {
Liveness::Constant
};
let name: RcStr = id.sym.as_str().into();
self.esm_exports self.esm_exports
.insert(name.clone(), EsmExport::LocalBinding(name, liveness)); .insert(name.clone(), EsmExport::LocalBinding(name, liveness));
}; };
match decl { match decl {
Decl::Class(ClassDecl { ident, .. }) | Decl::Fn(FnDecl { ident, .. }) => { Decl::Class(ClassDecl { ident, .. }) | Decl::Fn(FnDecl { ident, .. }) => {
// TODO: examine whether the value is ever mutated rather than just checking insert_export_binding(ident);
// 'const'
insert_export_binding(ident.sym.as_str().into(), Liveness::Live);
} }
Decl::Var(var_decl) => { Decl::Var(var_decl) => {
// TODO: examine whether the value is ever mutated rather than just checking var_decl
// 'const' .decls
let liveness = match var_decl.kind { .iter()
VarDeclKind::Var => Liveness::Live, .for_each(|VarDeclarator { name, .. }| {
VarDeclKind::Let => Liveness::Live, for_each_ident_in_pat(name, insert_export_binding);
VarDeclKind::Const => Liveness::Constant, });
};
let decls = &*var_decl.decls;
decls.iter().for_each(|VarDeclarator { name, .. }| {
for_each_ident_in_pat(name, &mut |name| {
insert_export_binding(name, liveness)
})
});
} }
Decl::Using(_) => { Decl::Using(_) => {
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export#:~:text=You%20cannot%20use%20export%20on%20a%20using%20or%20await%20using%20declaration // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export#:~:text=You%20cannot%20use%20export%20on%20a%20using%20or%20await%20using%20declaration
...@@ -3428,17 +3433,22 @@ impl VisitAstPath for ModuleReferencesVisitor<'_> { ...@@ -3428,17 +3433,22 @@ impl VisitAstPath for ModuleReferencesVisitor<'_> {
) { ) {
match &export.decl { match &export.decl {
DefaultDecl::Class(ClassExpr { ident, .. }) | DefaultDecl::Fn(FnExpr { ident, .. }) => { DefaultDecl::Class(ClassExpr { ident, .. }) | DefaultDecl::Fn(FnExpr { ident, .. }) => {
self.esm_exports.insert( let export = match ident {
rcstr!("default"), Some(ident) => EsmExport::LocalBinding(
EsmExport::LocalBinding( ident.sym.as_str().into(),
ident if self.is_export_ident_live(ident) {
.as_ref() Liveness::Live
.map(|i| i.sym.as_str().into()) } else {
.unwrap_or_else(|| magic_identifier::mangle("default export").into()), Liveness::Constant
// Default export expressions cannot be mutated },
),
// If there is no name, like `export default function(){}` then it is not live.
None => EsmExport::LocalBinding(
magic_identifier::mangle("default export").into(),
Liveness::Constant, Liveness::Constant,
), ),
); };
self.esm_exports.insert(rcstr!("default"), export);
} }
DefaultDecl::TsInterfaceDecl(..) => { DefaultDecl::TsInterfaceDecl(..) => {
// ignore // ignore
......
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js Error evaluating Node.js code
Error: Cannot find module './side-effects/reexport-internal.js'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/40cd4_turbopack_async-modules_async-reexport-side-effects-split_input_eae6bde3._.js:6:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/40cd4_turbopack_async-modules_async-reexport-side-effects-split_input_eae6bde3._.js:9:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[root-of-the-server]__4a7dfbc1._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[root-of-the-server]__4a7dfbc1._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/output/[turbopack-node]__0ef06507._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js:1:0 Module not found: Can't resolve './reexport-internal.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-internal.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:11:4 Module not found: Can't resolve './side-effect-free/reexport-internal.js'
7 | (await import('./side-effects/reexport-internal-test.js')).default,
8 | 'async module with side effects via require': () =>
9 | require('./side-effects/reexport-internal.js'),
10 | 'async module flagged side-effect-free via dynamic import': () =>
+ v-----------------------------------------------v
11 + import('./side-effect-free/reexport-internal.js'),
+ ^-----------------------------------------------^
12 | 'async module flagged side-effect-free via esm import': async () =>
13 | (await import('./side-effect-free/reexport-internal-test.js')).default,
14 | 'async module flagged side-effect-free via require': () =>
15 | require('./side-effect-free/reexport-internal.js'),
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effect-free/reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: EcmaScript Modules request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js:1:0 Module not found: Can't resolve './reexport-external.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-external.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:15:4 Module not found: Can't resolve './side-effect-free/reexport-internal.js'
11 | import('./side-effect-free/reexport-internal.js'),
12 | 'async module flagged side-effect-free via esm import': async () =>
13 | (await import('./side-effect-free/reexport-internal-test.js')).default,
14 | 'async module flagged side-effect-free via require': () =>
+ v------------------------------------------------v
15 + require('./side-effect-free/reexport-internal.js'),
+ ^------------------------------------------------^
16 | 'module with externals with side effects via dynamic import': () =>
17 | import('./side-effects/reexport-external.js'),
18 | 'module with externals with side effects via esm import': async () =>
19 | (await import('./side-effects/reexport-external-test.js')).default,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effect-free/reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:5:4 Module not found: Can't resolve './side-effects/reexport-internal.js'
1 | import { a as a1, b as b1, c as c1 } from './side-effects/reexport-internal.js'
2 |
3 | const cases = {
4 | 'async module with side effects via dynamic import': () =>
+ v-------------------------------------------v
5 + import('./side-effects/reexport-internal.js'),
+ ^-------------------------------------------^
6 | 'async module with side effects via esm import': async () =>
7 | (await import('./side-effects/reexport-internal-test.js')).default,
8 | 'async module with side effects via require': () =>
9 | require('./side-effects/reexport-internal.js'),
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effects/reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: EcmaScript Modules request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js:1:0 Module not found: Can't resolve './reexport-external.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-external.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-external-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:23:4 Module not found: Can't resolve './side-effect-free/reexport-external.js'
19 | (await import('./side-effects/reexport-external-test.js')).default,
20 | 'module with externals with side effects via require': () =>
21 | require('./side-effects/reexport-external.js'),
22 | 'module with externals flagged side-effect-free via dynamic import': () =>
+ v-----------------------------------------------v
23 + import('./side-effect-free/reexport-external.js'),
+ ^-----------------------------------------------^
24 | 'module with externals flagged side-effect-free via esm import': async () =>
25 | (await import('./side-effect-free/reexport-external-test.js')).default,
26 | 'module with externals flagged side-effect-free via require': () =>
27 | require('./side-effect-free/reexport-external.js'),
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effect-free/reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: EcmaScript Modules request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:9:4 Module not found: Can't resolve './side-effects/reexport-internal.js'
5 | import('./side-effects/reexport-internal.js'),
6 | 'async module with side effects via esm import': async () =>
7 | (await import('./side-effects/reexport-internal-test.js')).default,
8 | 'async module with side effects via require': () =>
+ v--------------------------------------------v
9 + require('./side-effects/reexport-internal.js'),
+ ^--------------------------------------------^
10 | 'async module flagged side-effect-free via dynamic import': () =>
11 | import('./side-effect-free/reexport-internal.js'),
12 | 'async module flagged side-effect-free via esm import': async () =>
13 | (await import('./side-effect-free/reexport-internal-test.js')).default,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effects/reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:1:0 Module not found: Can't resolve './side-effects/reexport-internal.js'
+ v-----------------------------------------------------------------------------v
1 + import { a as a1, b as b1, c as c1 } from './side-effects/reexport-internal.js'
+ ^-----------------------------------------------------------------------------^
2 |
3 | const cases = {
4 | 'async module with side effects via dynamic import': () =>
5 | import('./side-effects/reexport-internal.js'),
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effects/reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:17:4 Module not found: Can't resolve './side-effects/reexport-external.js'
13 | (await import('./side-effect-free/reexport-internal-test.js')).default,
14 | 'async module flagged side-effect-free via require': () =>
15 | require('./side-effect-free/reexport-internal.js'),
16 | 'module with externals with side effects via dynamic import': () =>
+ v-------------------------------------------v
17 + import('./side-effects/reexport-external.js'),
+ ^-------------------------------------------^
18 | 'module with externals with side effects via esm import': async () =>
19 | (await import('./side-effects/reexport-external-test.js')).default,
20 | 'module with externals with side effects via require': () =>
21 | require('./side-effects/reexport-external.js'),
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effects/reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: EcmaScript Modules request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:27:4 Module not found: Can't resolve './side-effect-free/reexport-external.js'
23 | import('./side-effect-free/reexport-external.js'),
24 | 'module with externals flagged side-effect-free via esm import': async () =>
25 | (await import('./side-effect-free/reexport-external-test.js')).default,
26 | 'module with externals flagged side-effect-free via require': () =>
+ v------------------------------------------------v
27 + require('./side-effect-free/reexport-external.js'),
+ ^------------------------------------------------^
28 | }
29 |
30 | for (const [name, fn] of Object.entries(cases)) {
31 | it(`should reexport a ${name} with side effects optimization`, async () => {
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effect-free/reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js:1:0 Module not found: Can't resolve './reexport-internal.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-internal.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effects/reexport-internal-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-external-test.js:1:0 Module not found: Can't resolve './reexport-external.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-external.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-external-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-external-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js:21:4 Module not found: Can't resolve './side-effects/reexport-external.js'
17 | import('./side-effects/reexport-external.js'),
18 | 'module with externals with side effects via esm import': async () =>
19 | (await import('./side-effects/reexport-external-test.js')).default,
20 | 'module with externals with side effects via require': () =>
+ v--------------------------------------------v
21 + require('./side-effects/reexport-external.js'),
+ ^--------------------------------------------^
22 | 'module with externals flagged side-effect-free via dynamic import': () =>
23 | import('./side-effect-free/reexport-external.js'),
24 | 'module with externals flagged side-effect-free via esm import': async () =>
25 | (await import('./side-effect-free/reexport-external-test.js')).default,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './side-effects/reexport-external.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-internal-test.js:1:0 Module not found: Can't resolve './reexport-internal.js'
+ v----------------------------------------------v
1 + import { a, b, c } from './reexport-internal.js'
+ ^----------------------------------------------^
2 |
3 | export default {
4 | a,
5 | b,
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport-internal.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-internal-test.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/side-effect-free/reexport-internal-test.js
./turbopack/crates/turbopack-tests/tests/execution/turbopack/async-modules/async-reexport-side-effects-split/input/index.js
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/input/index.js Error evaluating Node.js code
Error: Cannot find module './math'
at <unknown> (turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/input/index.js:1:7) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/780ce_turbopack-tests_tests_execution_turbopack_wasm_simple_input_index_2fe2b888.js:5:15]
| v
1 + const mathAsyncModule = require('./math')
| ^
2 |
3 | it('should handle wasm imports', async () => {
4 | // math.js is an async module, so we require it and await inside this function to make sure the entrypoint isn't async.
5 | const {
at {module evaluation} (turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/input/index.js:1:7) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/780ce_turbopack-tests_tests_execution_turbopack_wasm_simple_input_index_2fe2b888.js:8:3]
| v
1 + const mathAsyncModule = require('./math')
| ^
2 |
3 | it('should handle wasm imports', async () => {
4 | // math.js is an async module, so we require it and await inside this function to make sure the entrypoint isn't async.
5 | const {
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[root-of-the-server]__c8f2ec0e._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[root-of-the-server]__c8f2ec0e._.js:49:5]
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/output/[turbopack-node]__96f6d6a7._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/input/index.js:1:24 Module not found: Can't resolve './math'
+ v---------------v
1 + const mathAsyncModule = require('./math')
+ ^---------------^
2 |
3 | it('should handle wasm imports', async () => {
4 | // math.js is an async module, so we require it and await inside this function to make sure the entrypoint isn't async.
5 | const {
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './math'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/turbopack/wasm/simple/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js:1:0 Module not found: Can't resolve './root'
+ v---------------------------v
1 + export { test } from './root'
+ ^---------------------------^
2 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js:1:0 Module not found: Can't resolve './root'
+ v---------------------------v
1 + export { test } from './root'
+ ^---------------------------^
2 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/root-ref.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js:1:0 Module not found: Can't resolve './root'
+ v--------------------------------------------v
1 + import { a, b, c, default as d } from './root'
+ ^--------------------------------------------^
2 |
3 | expect(a()).toBe('a')
4 | if (process.env.NODE_ENV === 'production') {
5 | // These two cases only work correctly when scope hoisted
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external-ref.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js:1:0 Module not found: Can't resolve './root'
+ v--------------------------------------------v
1 + import { a, b, c, default as d } from './root'
+ ^--------------------------------------------^
2 |
3 | expect(a()).toBe('a')
4 | if (process.env.NODE_ENV === 'production') {
5 | // These two cases only work correctly when scope hoisted
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/external-ref.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/circular-root-export/input/index.js
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js Error evaluating Node.js code
Error: Cannot find module './module1'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/bf321_tests_execution_webpack_scope-hoisting_export-namespace_input_index_68dd9e33.js:6:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/bf321_tests_execution_webpack_scope-hoisting_export-namespace_input_index_68dd9e33.js:9:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[root-of-the-server]__03b61751._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[root-of-the-server]__03b61751._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/output/[turbopack-node]__d2c62f07._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js:1:0 Module not found: Can't resolve './module1'
+ v-----------------------------------v
1 + import { ns as ns1 } from './module1'
+ ^-----------------------------------^
2 | const ns2 = require('./module2').ns
3 |
4 | it('should allow to export a namespace object (concated)', function () {
5 | expect(ns1).toEqual(
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module1'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js:2:12 Module not found: Can't resolve './module2'
1 | import { ns as ns1 } from './module1'
+ v------------------v
2 + const ns2 = require('./module2').ns
+ ^------------------^
3 |
4 | it('should allow to export a namespace object (concated)', function () {
5 | expect(ns1).toEqual(
6 | nsObj({
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js:1:0 Module not found: Can't resolve './module1'
+ v-----------------------------------v
1 + import { ns as ns1 } from './module1'
+ ^-----------------------------------^
2 | const ns2 = require('./module2').ns
3 |
4 | it('should allow to export a namespace object (concated)', function () {
5 | expect(ns1).toEqual(
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module1'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/export-namespace/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js Error evaluating Node.js code
Error: Cannot find module './root2'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/bf321_tests_execution_webpack_scope-hoisting_external-root_input_49f3ddd3._.js:11:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/bf321_tests_execution_webpack_scope-hoisting_external-root_input_49f3ddd3._.js:14:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[root-of-the-server]__64abd862._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[root-of-the-server]__64abd862._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/output/[turbopack-node]__100127a5._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/chunk.js:1:0 Module not found: Can't resolve './root2'
+ v--------------------------v
1 + import result from './root2'
+ ^--------------------------^
2 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/chunk.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/chunk.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js:3:0 Module not found: Can't resolve './root2'
1 | import './module'
2 | import f, { ns } from './root2'
+ v---------------------------v
3 + import * as r2 from './root2'
+ ^---------------------------^
4 |
5 | it('should be able to import a secondary root', () => {
6 | expect(f()).toBe('ok')
7 | expect(f.x()).toBe('ok')
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js:3:0 Module not found: Can't resolve './root2'
1 | import './module'
2 | import f, { ns } from './root2'
+ v---------------------------v
3 + import * as r2 from './root2'
+ ^---------------------------^
4 |
5 | it('should be able to import a secondary root', () => {
6 | expect(f()).toBe('ok')
7 | expect(f.x()).toBe('ok')
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js:2:0 Module not found: Can't resolve './root2'
1 | import './module'
+ v-----------------------------v
2 + import f, { ns } from './root2'
+ ^-----------------------------^
3 | import * as r2 from './root2'
4 |
5 | it('should be able to import a secondary root', () => {
6 | expect(f()).toBe('ok')
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js:2:0 Module not found: Can't resolve './root2'
1 | import './module'
+ v-----------------------------v
2 + import f, { ns } from './root2'
+ ^-----------------------------^
3 | import * as r2 from './root2'
4 |
5 | it('should be able to import a secondary root', () => {
6 | expect(f()).toBe('ok')
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './root2'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/external-root/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/input/index.js Error evaluating Node.js code
Error: Cannot find module './c'
at <unknown> (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/bf321_tests_execution_webpack_scope-hoisting_indirect-reexport_input_index_fe986ad4.js:5:15]
| v
1 + var c = require('./c')
| ^
2 |
3 | it('should have the correct values', function () {
4 | expect(c.named).toBe('named')
5 | })
at {module evaluation} (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/bf321_tests_execution_webpack_scope-hoisting_indirect-reexport_input_index_fe986ad4.js:8:3]
| v
1 + var c = require('./c')
| ^
2 |
3 | it('should have the correct values', function () {
4 | expect(c.named).toBe('named')
5 | })
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[root-of-the-server]__94ad0a74._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[root-of-the-server]__94ad0a74._.js:49:5]
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/output/[turbopack-node]__62659473._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/input/index.js:1:8 Module not found: Can't resolve './c'
+ v------------v
1 + var c = require('./c')
+ ^------------^
2 |
3 | it('should have the correct values', function () {
4 | expect(c.named).toBe('named')
5 | })
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './c'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/indirect-reexport/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js:1:0 Module not found: Can't resolve './cts'
+ v---------------------v
1 + import cts from './cts'
+ ^---------------------^
2 | export default cts.connectData(function () {})
3 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './cts'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/main.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/b.js:1:0 Module not found: Can't resolve './cts'
+ v---------------------v
1 + import cts from './cts'
+ ^---------------------^
2 | export function b() {}
3 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './cts'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/b.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/b.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js:1:0 Module not found: Can't resolve './cts'
+ v---------------------v
1 + import cts from './cts'
+ ^---------------------^
2 | export default cts.connectData(function () {})
3 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './cts'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/a.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/main.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/main.js:1:0 Module not found: Can't resolve './cts'
+ v---------------------v
1 + import cts from './cts'
+ ^---------------------^
2 | import a from './a'
3 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './cts'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/main.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/main.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-10409/input/index.js
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/input/index.js Error evaluating Node.js code
Error: Cannot find module './src/index.js'
at <unknown> (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/bf321_tests_execution_webpack_scope-hoisting_issue-5020-minimal_input_index_0002c85e.js:5:15]
| v
1 + var testData = require('./src/index.js')
| ^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
at {module evaluation} (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/bf321_tests_execution_webpack_scope-hoisting_issue-5020-minimal_input_index_0002c85e.js:8:3]
| v
1 + var testData = require('./src/index.js')
| ^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[root-of-the-server]__361e074f._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[root-of-the-server]__361e074f._.js:49:5]
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/output/[turbopack-node]__521a3541._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/input/index.js:1:15 Module not found: Can't resolve './src/index.js'
+ v-----------------------v
1 + var testData = require('./src/index.js')
+ ^-----------------------^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './src/index.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020-minimal/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/input/index.js Error evaluating Node.js code
Error: Cannot find module './src/index.js'
at <unknown> (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/bf321_tests_execution_webpack_scope-hoisting_issue-5020_input_index_3d26eb6c.js:5:15]
| v
1 + var testData = require('./src/index.js')
| ^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
at {module evaluation} (turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/input/index.js:1:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/bf321_tests_execution_webpack_scope-hoisting_issue-5020_input_index_3d26eb6c.js:8:3]
| v
1 + var testData = require('./src/index.js')
| ^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[root-of-the-server]__46a5051f._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[root-of-the-server]__46a5051f._.js:49:5]
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/output/[turbopack-node]__01ddeb9a._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/input/index.js:1:15 Module not found: Can't resolve './src/index.js'
+ v-----------------------v
1 + var testData = require('./src/index.js')
+ ^-----------------------^
2 |
3 | it('should export the correct values', function () {
4 | expect(testData).toEqual(
5 | nsObj({
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './src/index.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5020/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/input/index.js Error evaluating Node.js code
Error: Cannot find module './reexport'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/bf321_tests_execution_webpack_scope-hoisting_issue-5443_input_index_b765d7b3.js:6:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/bf321_tests_execution_webpack_scope-hoisting_issue-5443_input_index_b765d7b3.js:9:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[root-of-the-server]__024aa8f5._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[root-of-the-server]__024aa8f5._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/output/[turbopack-node]__d61da3c3._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/input/index.js:1:0 Module not found: Can't resolve './reexport'
+ v---------------------------------v
1 + import { module } from './reexport'
+ ^---------------------------------^
2 |
3 | it('should have the correct values', function () {
4 | expect(module).toEqual(
5 | nsObj({
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/input/index.js:1:0 Module not found: Can't resolve './reexport'
+ v---------------------------------v
1 + import { module } from './reexport'
+ ^---------------------------------^
2 |
3 | it('should have the correct values', function () {
4 | expect(module).toEqual(
5 | nsObj({
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './reexport'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/issue-5443/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/input/index.js Error evaluating Node.js code
Error: Cannot find module './json.js'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/bf321_tests_execution_webpack_scope-hoisting_json-reexport-6700_input_index_bb546557.js:6:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/bf321_tests_execution_webpack_scope-hoisting_json-reexport-6700_input_index_bb546557.js:9:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[root-of-the-server]__aae8294c._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[root-of-the-server]__aae8294c._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/output/[turbopack-node]__3149ff46._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/input/index.js:1:0 Module not found: Can't resolve './json.js'
+ v--------------------------------------v
1 + import { a, b, aa, bb } from './json.js'
+ ^--------------------------------------^
2 |
3 | it('should reexport json data correctly', () => {
4 | expect(aa).toEqual({ a: 'A' })
5 | expect(bb).toEqual({ b: 'B' })
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './json.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/input/index.js:1:0 Module not found: Can't resolve './json.js'
+ v--------------------------------------v
1 + import { a, b, aa, bb } from './json.js'
+ ^--------------------------------------^
2 |
3 | it('should reexport json data correctly', () => {
4 | expect(aa).toEqual({ a: 'A' })
5 | expect(bb).toEqual({ b: 'B' })
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::is_marked_as_side_effect_free failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './json.js'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/json-reexport-6700/input/index.js
| Type of request: EcmaScript Modules (part) request
|
\ No newline at end of file
error - [transform] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/input/index.js Error evaluating Node.js code
Error: Cannot find module './module'
[at WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/bf321_tests_execution_webpack_scope-hoisting_orphan_input_index_848c372c.js:10:15]
[at {module evaluation} (WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/bf321_tests_execution_webpack_scope-hoisting_orphan_input_index_848c372c.js:13:3)]
at instantiateModule (turbopack:///[turbopack]/nodejs/runtime.ts:228:5) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[turbopack]_runtime.js:713:9]
at getOrInstantiateModuleFromParent (turbopack:///[turbopack]/nodejs/runtime.ts:261:10) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[turbopack]_runtime.js:736:12]
at Context.esmImport [as i] (turbopack:///[turbopack]/shared/runtime-utils.ts:347:18) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[turbopack]_runtime.js:228:20]
at <unknown> (turbopack/crates/turbopack-tests/js/jest-entry.ts:68:1) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[root-of-the-server]__75b5805a._.js:85:16]
64 | jestResult,
65 | uncaughtExceptions,
66 | unhandledRejections,
67 | }
| v
68 + }
| ^
69 |
[at process.processTicksAndRejections (node:internal/process/task_queues:95:5)]
at async run (turbopack/crates/turbopack-tests/js/jest-entry.ts:40:3) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[root-of-the-server]__75b5805a._.js:49:5]
36 |
37 | export default async function run() {
38 | setupGlobals()
39 |
| v
40 + await import('TESTS')
| ^
41 |
42 | let jestResult = await jest.run()
43 | // Jest test results can contain references to arbitrary objects.
44 | // Defensively remove circular references to avoid breaking our serialization protocol.
at async run (turbopack:///[turbopack-node]/ipc/evaluate.ts:92:23) [WORKSPACE_ROOT/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/output/[turbopack-node]__ffb5bd50._.js:407:31]
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/input/node_modules/pkg/index.js:1:0 Module not found: Can't resolve './module'
+ v----------------------------------v
1 + import { y as used } from './module'
+ ^----------------------------------^
2 | import unused from './b'
3 |
4 | export default used
5 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/input/node_modules/pkg/index.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/input/node_modules/pkg/index.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/orphan/input/index.js
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js:2:9 Module not found: Can't resolve './module'
1 | it('should check existing variables when renaming', function () {
+ v-----------------v
2 + expect(require('./module').d.x()).toBe('ok')
+ ^-----------------^
3 | expect(require('./module').c.a()).toBe('ok')
4 | expect(require('./module').test()).toBe('ok')
5 | })
6 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js:3:9 Module not found: Can't resolve './module'
1 | it('should check existing variables when renaming', function () {
2 | expect(require('./module').d.x()).toBe('ok')
+ v-----------------v
3 + expect(require('./module').c.a()).toBe('ok')
+ ^-----------------^
4 | expect(require('./module').test()).toBe('ok')
5 | })
6 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js:4:9 Module not found: Can't resolve './module'
1 | it('should check existing variables when renaming', function () {
2 | expect(require('./module').d.x()).toBe('ok')
3 | expect(require('./module').c.a()).toBe('ok')
+ v-----------------v
4 + expect(require('./module').test()).toBe('ok')
+ ^-----------------^
5 | })
6 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './module'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/renaming-4967/input/index.js
| Type of request: commonjs request
|
\ No newline at end of file
error - [resolve] /turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/side-effects-9159/input/reexport.js:1:0 Module not found: Can't resolve './package'
+ v-----------------------------------v
1 + export { value, ns } from './package'
+ ^-----------------------------------^
2 |
all exported names should be analyzed
Debug info:
- Execution of <ModuleAssetContext as AssetContext>::process_resolve_result failed
- Execution of apply_module_type failed
- Execution of *EcmascriptExports::split_locals_and_reexports failed
- Execution of <EcmascriptModuleAsset as EcmascriptChunkPlaceable>::get_exports failed
- Execution of analyse_ecmascript_module failed
- all exported names should be analyzed
| An error happened during resolving.
| Parsed request as written in source code: relative './package'
| Path where resolving has started: [project]/turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/side-effects-9159/input/reexport.js
| Type of request: EcmaScript Modules (part) request
|
Import trace:
test:
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/side-effects-9159/input/reexport.js
./turbopack/crates/turbopack-tests/tests/execution/webpack/scope-hoisting/side-effects-9159/input/index.js
\ No newline at end of file
...@@ -35,7 +35,8 @@ function localUnused() { ...@@ -35,7 +35,8 @@ function localUnused() {
; ;
__turbopack_context__.s([ __turbopack_context__.s([
"local", "local",
()=>local 0,
local
]); ]);
}), }),
]); ]);
......
...@@ -23,7 +23,8 @@ function getDog() { ...@@ -23,7 +23,8 @@ function getDog() {
} }
__turbopack_context__.s([ __turbopack_context__.s([
"getCat", "getCat",
()=>getCat 0,
getCat
]); ]);
}), }),
]); ]);
......
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