Skip to content

Commit bbacba9

Browse files
authored
fix(pack): loader resolve path (#2307)
1 parent f74da8a commit bbacba9

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
error - [transform] /crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/input/test.txt Error evaluating Node.js code
2+
3+
Error: Cannot find module './test-file-loader.js'
4+
Require stack:
5+
- WORKSPACE_ROOT/packages/pack/.turbopack/[turbopack]_runtime.js
6+
- WORKSPACE_ROOT/packages/pack/.turbopack/webpack-loaders.js
7+
[at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)]
8+
[at Function.resolve (node:internal/modules/helpers:145:19)]
9+
[at externalRequire.resolve (WORKSPACE_ROOT/packages/pack/.turbopack/[turbopack]_runtime.js:533:20)]
10+
[at WORKSPACE_ROOT/packages/pack/.turbopack/__8b1e0af0.js:385:86]
11+
[at <anonymous>]
12+
[at WORKSPACE_ROOT/packages/pack/.turbopack/__8b1e0af0.js:384:41]
13+
[at <anonymous>]
14+
[at transform (WORKSPACE_ROOT/packages/pack/.turbopack/__8b1e0af0.js:133:12)]
15+
[at run (WORKSPACE_ROOT/packages/pack/.turbopack/__c7ae8543.js:443:37)]
16+
[at run (WORKSPACE_ROOT/packages/pack/.turbopack/__c7ae8543.js:464:25)]

crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/crates_pack-tests_tests_snapshot_fe2230b9.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/pack-tests/tests/snapshot/webpack-loaders/custom-loader/output/crates_pack-tests_tests_snapshot_fe2230b9.js.map

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)