@rolldown/debug
Advanced tools
+1
-1
| { | ||
| "name": "@rolldown/debug", | ||
| "version": "1.2.3", | ||
| "version": "1.2.4", | ||
| "homepage": "https://rolldown.rs/", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+5
-3
@@ -8,3 +8,3 @@ # @rolldown/debug | ||
| ```text | ||
| node_modules/.rolldown/<session_id>/ | ||
| <cwd>/node_modules/.rolldown/<session_id>/ | ||
| meta.json | ||
@@ -14,2 +14,4 @@ logs.json | ||
| `<cwd>` is the build's `InputOptions#cwd`, which defaults to the working directory the build ran from. Resolve the files against it rather than your own working directory, which may differ. | ||
| `logs.json` is complete after `await bundle.close()` resolves. | ||
@@ -23,3 +25,3 @@ | ||
| const data = fs.readFileSync('node_modules/.rolldown/<session_id>/logs.json', 'utf8'); | ||
| const data = fs.readFileSync('<cwd>/node_modules/.rolldown/<session_id>/logs.json', 'utf8'); | ||
| const events = parseToEvents(data.trim()); | ||
@@ -47,3 +49,3 @@ | ||
| const data = fs.readFileSync('node_modules/.rolldown/<session_id>/logs.json', 'utf8'); | ||
| const data = fs.readFileSync('<cwd>/node_modules/.rolldown/<session_id>/logs.json', 'utf8'); | ||
| const actionEvents = parseToEvents(data.trim()).filter(isActionEvent); | ||
@@ -50,0 +52,0 @@ const buildId = actionEvents.at(-1)?.build_id; |
20926
1.01%104
1.96%