From d1d48713ee01c114d92431b0a6dcc8e7417fcd4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Wed, 22 May 2024 15:15:34 +0900 Subject: [PATCH] [TMP] Update tests --- .../Error evaluating Node.js code-68c403.txt | 60 +++++++++++++++++++ ...g ecmascript source code failed-4ce15c.txt | 5 ++ ...g ecmascript source code failed-b26b78.txt | 5 ++ ...und____c__ Can't resolve '__c_.-8e3b90.txt | 8 +++ .../unexpected export __star__-47f54b.txt | 4 ++ .../unexpected export __star__-9c6901.txt | 5 ++ .../unexpected export __star__-d1ab5c.txt | 4 ++ .../unexpected export __star__-d7b7e1.txt | 4 ++ .../unexpected export __star__-d93f40.txt | 5 ++ .../unexpected export __star__-dc634e.txt | 4 ++ .../unexpected export __star__-f881b4.txt | 60 +++++++++++++++++++ 11 files changed, 164 insertions(+) create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Error evaluating Node.js code-68c403.txt create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Parsing ecmascript source code failed-4ce15c.txt create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Parsing ecmascript source code failed-b26b78.txt create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/__l___Module not found____c__ Can't resolve '__c_.-8e3b90.txt create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-47f54b.txt create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-9c6901.txt create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d1ab5c.txt create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d7b7e1.txt create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d93f40.txt create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-dc634e.txt create mode 100644 crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-f881b4.txt diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Error evaluating Node.js code-68c403.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Error evaluating Node.js code-68c403.txt new file mode 100644 index 0000000000000..f70d0cdaf89d8 --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Error evaluating Node.js code-68c403.txt @@ -0,0 +1,60 @@ +error - [transform] [project]/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/input/index.js Error evaluating Node.js code + Error: Could not parse module '[project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-compiled.js' + + Expression expected + [at Object. (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/4f837_65cc75._.js:329:11)] + [at [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-compiled.js [test] (ecmascript) (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/4f837_65cc75._.js:334:3)] + at turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:347:21 [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:545:27] + at runModuleExecutionHooks (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:403:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:587:9] + at instantiateModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:345:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:543:9] + at getOrInstantiateModuleFromParent (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:451:10) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:619:12] + at esmImport (turbopack://[turbopack]/shared/runtime-utils.ts:228:18) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:142:20] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/4f837_65cc75._.js:435:268] + [at [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/index.js [test] (ecmascript) (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/4f837_65cc75._.js:458:3)] + at turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:347:21 [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:545:27] + at runModuleExecutionHooks (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:403:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:587:9] + at instantiateModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:345:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:543:9] + at getOrInstantiateModuleFromParent (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:451:10) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:619:12] + at esmImport (turbopack://[turbopack]/shared/runtime-utils.ts:228:18) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:142:20] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:41:286] + at asyncModule (turbopack://[turbopack]/shared/runtime-utils.ts:465:3) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:299:5] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:30:1] + [at [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/index.js [test] (ecmascript) (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:254:3)] + at turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:347:21 [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:545:27] + at runModuleExecutionHooks (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:403:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:587:9] + at instantiateModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:345:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:543:9] + at getOrInstantiateModuleFromParent (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:451:10) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:619:12] + at esmImport (turbopack://[turbopack]/shared/runtime-utils.ts:228:18) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:142:20] + [at Module. (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:258:251)] + [at [project]/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/input/index.js [test] (ecmascript) (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:263:3)] + at turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:347:21 [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:545:27] + at runModuleExecutionHooks (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:403:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:587:9] + at instantiateModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:345:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:543:9] + at getOrInstantiateModuleFromParent (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:451:10) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:619:12] + at esmImport (turbopack://[turbopack]/shared/runtime-utils.ts:228:18) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:142:20] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:269:235] + at asyncModule (turbopack://[turbopack]/shared/runtime-utils.ts:465:3) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:299:5] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:267:1] + [at [project]/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/input/index.js [test] (ecmascript) (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:279:3)] + at turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:347:21 [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:545:27] + at runModuleExecutionHooks (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:403:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:587:9] + at instantiateModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:345:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:543:9] + at getOrInstantiateRuntimeModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:1311:10) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:1279:12] + at Object.registerChunk (turbopack://[turbopack]/dev/runtime/nodejs/runtime-backend-nodejs.ts:90:11) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:1475:21] + at registerChunk (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:1375:18) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:1328:20] + [at ] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:1503:18] + [at Object. (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:1504:3)] + [at Module._compile (node:internal/modules/cjs/loader:1256:14)] + [at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)] + [at Module.load (node:internal/modules/cjs/loader:1119:32)] + [at Module._load (node:internal/modules/cjs/loader:960:12)] + [at Module.require (node:internal/modules/cjs/loader:1143:19)] + [at require (node:internal/modules/cjs/helpers:121:18)] + [at Object. (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/jest-entry.js:6:1)] + [at Module._compile (node:internal/modules/cjs/loader:1256:14)] + [at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)] + [at Module.load (node:internal/modules/cjs/loader:1119:32)] + [at Module._load (node:internal/modules/cjs/loader:960:12)] + [at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)] + [at node:internal/main/run_main_module:23:47] \ No newline at end of file diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Parsing ecmascript source code failed-4ce15c.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Parsing ecmascript source code failed-4ce15c.txt new file mode 100644 index 0000000000000..69452029cdc00 --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Parsing ecmascript source code failed-4ce15c.txt @@ -0,0 +1,5 @@ +warning - [analysis] [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-named/x.js unexpected export * + export * used with module [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-named/x.js [test] (ecmascript) which has no exports + Typescript only: Did you want to export only types with `export type * from "..."`? + Note: Using `export type` is more efficient than `export *` as it won't emit any runtime code. + diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Parsing ecmascript source code failed-b26b78.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Parsing ecmascript source code failed-b26b78.txt new file mode 100644 index 0000000000000..ea8c7c8990391 --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/Parsing ecmascript source code failed-b26b78.txt @@ -0,0 +1,5 @@ +warning - [analysis] [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/b.js unexpected export * + export * used with module [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/b.js [test] (ecmascript) which has no exports + Typescript only: Did you want to export only types with `export type * from "..."`? + Note: Using `export type` is more efficient than `export *` as it won't emit any runtime code. + diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/__l___Module not found____c__ Can't resolve '__c_.-8e3b90.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/__l___Module not found____c__ Can't resolve '__c_.-8e3b90.txt new file mode 100644 index 0000000000000..f139ceeebac0a --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/__l___Module not found____c__ Can't resolve '__c_.-8e3b90.txt @@ -0,0 +1,8 @@ +error - [analysis] [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-compiled.js /crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-compiled.js:1:0 Parsing ecmascript source code failed + + v + 1 + ))) + + ^ + 2 | + + Expression expected + diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-47f54b.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-47f54b.txt new file mode 100644 index 0000000000000..a49568a50b2cc --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-47f54b.txt @@ -0,0 +1,4 @@ +warning - [analysis] [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-executed.js unexpected export * + export * used with module [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-executed.js [test] (ecmascript) which has no exports + Typescript only: Did you want to export only types with `export type * from "..."`? + Note: Using `export type` is more efficient than `export *` as it won't emit any runtime code. \ No newline at end of file diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-9c6901.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-9c6901.txt new file mode 100644 index 0000000000000..4c162a8eb6ec8 --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-9c6901.txt @@ -0,0 +1,5 @@ +warning - [analysis] [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-compiled.js unexpected export * + export * used with module [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-compiled.js [test] (ecmascript) which has no exports + Typescript only: Did you want to export only types with `export type * from "..."`? + Note: Using `export type` is more efficient than `export *` as it won't emit any runtime code. + diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d1ab5c.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d1ab5c.txt new file mode 100644 index 0000000000000..38d3506c4886c --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d1ab5c.txt @@ -0,0 +1,4 @@ +warning - [analysis] [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-compiled.js unexpected export * + export * used with module [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-compiled.js [test] (ecmascript) which has no exports + Typescript only: Did you want to export only types with `export type * from "..."`? + Note: Using `export type` is more efficient than `export *` as it won't emit any runtime code. \ No newline at end of file diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d7b7e1.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d7b7e1.txt new file mode 100644 index 0000000000000..11815f8213896 --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d7b7e1.txt @@ -0,0 +1,4 @@ +warning - [analysis] [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-partial/not-executed.js unexpected export * + export * used with module [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-partial/not-executed.js [test] (ecmascript) which has no exports + Typescript only: Did you want to export only types with `export type * from "..."`? + Note: Using `export type` is more efficient than `export *` as it won't emit any runtime code. \ No newline at end of file diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d93f40.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d93f40.txt new file mode 100644 index 0000000000000..7bb6cb43fb759 --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-d93f40.txt @@ -0,0 +1,5 @@ +warning - [analysis] [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-partial/not-executed.js unexpected export * + export * used with module [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-partial/not-executed.js [test] (ecmascript) which has no exports + Typescript only: Did you want to export only types with `export type * from "..."`? + Note: Using `export type` is more efficient than `export *` as it won't emit any runtime code. + diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-dc634e.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-dc634e.txt new file mode 100644 index 0000000000000..95486358b9f3f --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-dc634e.txt @@ -0,0 +1,4 @@ +warning - [analysis] [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-partial/not-compiled.js unexpected export * + export * used with module [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-partial/not-compiled.js [test] (ecmascript) which has no exports + Typescript only: Did you want to export only types with `export type * from "..."`? + Note: Using `export type` is more efficient than `export *` as it won't emit any runtime code. \ No newline at end of file diff --git a/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-f881b4.txt b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-f881b4.txt new file mode 100644 index 0000000000000..f70d0cdaf89d8 --- /dev/null +++ b/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/issues/unexpected export __star__-f881b4.txt @@ -0,0 +1,60 @@ +error - [transform] [project]/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/input/index.js Error evaluating Node.js code + Error: Could not parse module '[project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-compiled.js' + + Expression expected + [at Object. (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/4f837_65cc75._.js:329:11)] + [at [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/not-compiled.js [test] (ecmascript) (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/4f837_65cc75._.js:334:3)] + at turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:347:21 [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:545:27] + at runModuleExecutionHooks (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:403:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:587:9] + at instantiateModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:345:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:543:9] + at getOrInstantiateModuleFromParent (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:451:10) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:619:12] + at esmImport (turbopack://[turbopack]/shared/runtime-utils.ts:228:18) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:142:20] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/4f837_65cc75._.js:435:268] + [at [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/node_modules/package-star/index.js [test] (ecmascript) (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/4f837_65cc75._.js:458:3)] + at turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:347:21 [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:545:27] + at runModuleExecutionHooks (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:403:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:587:9] + at instantiateModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:345:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:543:9] + at getOrInstantiateModuleFromParent (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:451:10) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:619:12] + at esmImport (turbopack://[turbopack]/shared/runtime-utils.ts:228:18) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:142:20] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:41:286] + at asyncModule (turbopack://[turbopack]/shared/runtime-utils.ts:465:3) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:299:5] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:30:1] + [at [project]/crates/turbopack-tests/tests/execution/turbopack/side-effects-optimization/basic/input/index.js [test] (ecmascript) (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:254:3)] + at turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:347:21 [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:545:27] + at runModuleExecutionHooks (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:403:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:587:9] + at instantiateModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:345:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:543:9] + at getOrInstantiateModuleFromParent (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:451:10) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:619:12] + at esmImport (turbopack://[turbopack]/shared/runtime-utils.ts:228:18) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:142:20] + [at Module. (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:258:251)] + [at [project]/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/input/index.js [test] (ecmascript) (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:263:3)] + at turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:347:21 [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:545:27] + at runModuleExecutionHooks (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:403:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:587:9] + at instantiateModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:345:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:543:9] + at getOrInstantiateModuleFromParent (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:451:10) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:619:12] + at esmImport (turbopack://[turbopack]/shared/runtime-utils.ts:228:18) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:142:20] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:269:235] + at asyncModule (turbopack://[turbopack]/shared/runtime-utils.ts:465:3) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:299:5] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:267:1] + [at [project]/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/input/index.js [test] (ecmascript) (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/[root of the server]__eb59da._.js:279:3)] + at turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:347:21 [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:545:27] + at runModuleExecutionHooks (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:403:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:587:9] + at instantiateModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:345:5) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:543:9] + at getOrInstantiateRuntimeModule (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:1311:10) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:1279:12] + at Object.registerChunk (turbopack://[turbopack]/dev/runtime/nodejs/runtime-backend-nodejs.ts:90:11) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:1475:21] + at registerChunk (turbopack://[turbopack]/dev/runtime/base/runtime-base.ts:1375:18) [WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:1328:20] + [at ] + [at WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:1503:18] + [at Object. (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/2f2aa_tests_execution_turbopack_tree-shaking_basic_output_jest-entry_a0db1c.js:1504:3)] + [at Module._compile (node:internal/modules/cjs/loader:1256:14)] + [at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)] + [at Module.load (node:internal/modules/cjs/loader:1119:32)] + [at Module._load (node:internal/modules/cjs/loader:960:12)] + [at Module.require (node:internal/modules/cjs/loader:1143:19)] + [at require (node:internal/modules/cjs/helpers:121:18)] + [at Object. (WORKSPACE_ROOT/crates/turbopack-tests/tests/execution/turbopack/tree-shaking/basic/output/jest-entry.js:6:1)] + [at Module._compile (node:internal/modules/cjs/loader:1256:14)] + [at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)] + [at Module.load (node:internal/modules/cjs/loader:1119:32)] + [at Module._load (node:internal/modules/cjs/loader:960:12)] + [at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)] + [at node:internal/main/run_main_module:23:47] \ No newline at end of file