@rolldown/debug
Advanced tools
| export type Asset = { | ||
| /** | ||
| * The id of the chunk that the asset is created from. Empty means the asset is not created from a chunk. | ||
| */ | ||
| chunk_id: number | null; | ||
| content: string | null; | ||
| /** | ||
| * The size of the asset in bytes. | ||
| */ | ||
| size: number; | ||
| filename: string; | ||
| }; |
| // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
| export {}; |
| import type { Asset } from "./Asset"; | ||
| export type AssetsReady = { | ||
| action: 'AssetsReady'; | ||
| assets: Array<Asset>; | ||
| }; |
| export {}; |
| import type { ChunkImport } from "./ChunkImport"; | ||
| export type Chunk = { | ||
| id: number; | ||
| /** | ||
| * ```js | ||
| * import { defineConfig } from 'rolldown'; | ||
| * export default defineConfig({ | ||
| * input: { | ||
| * main: './index.ts', | ||
| * }, | ||
| * output: { | ||
| * advancedChunks: { | ||
| * groups: [ | ||
| * { | ||
| * name: 'npm-libs', | ||
| * test: /node_modules/, | ||
| * }, | ||
| * ], | ||
| * }, | ||
| * }, | ||
| * }); | ||
| * ``` | ||
| * - `main` is the name, if this chunk is an entry chunk. | ||
| * - `npm-libs` is the name, if this chunk is created by `output.advancedChunks`. | ||
| */ | ||
| name: string | null; | ||
| /** | ||
| * ```js | ||
| * import { defineConfig } from 'rolldown'; | ||
| * export default defineConfig({ | ||
| * input: { | ||
| * main: './index.ts', | ||
| * }, | ||
| * output: { | ||
| * advancedChunks: { | ||
| * groups: [ | ||
| * { | ||
| * name: 'npm-libs', | ||
| * test: /node_modules/, | ||
| * }, | ||
| * ], | ||
| * }, | ||
| * }, | ||
| * }); | ||
| * ``` | ||
| * - `advanced_chunk_group_id` will be `0` if this chunk is created by `output.advancedChunks`. | ||
| */ | ||
| advanced_chunk_group_id: number | null; | ||
| is_user_defined_entry: boolean; | ||
| /** | ||
| * A entry could be both user-defined and async. | ||
| */ | ||
| is_async_entry: boolean; | ||
| entry_module: string | null; | ||
| modules: Array<string>; | ||
| reason: 'advanced-chunks' | 'preserve-modules' | 'entry' | 'common'; | ||
| imports: Array<ChunkImport>; | ||
| }; |
| export {}; |
| import type { Chunk } from "./Chunk"; | ||
| export type ChunkGraphReady = { | ||
| action: 'ChunkGraphReady'; | ||
| chunks: Array<Chunk>; | ||
| }; |
| export {}; |
| export type ChunkImport = { | ||
| /** | ||
| * Id of the imported chunk | ||
| */ | ||
| chunk_id: number; | ||
| kind: 'import-statement' | 'dynamic-import'; | ||
| }; |
| // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
| export {}; |
| export type HookRenderChunkEnd = { | ||
| action: 'HookRenderChunkEnd'; | ||
| plugin_name: string; | ||
| /** | ||
| * The index of the plugin in the plugin list. It's unique to each plugin. | ||
| */ | ||
| plugin_id: number; | ||
| call_id: string; | ||
| content: string | null; | ||
| }; |
| // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
| export {}; |
| export type HookRenderChunkStart = { | ||
| action: 'HookRenderChunkStart'; | ||
| plugin_name: string; | ||
| /** | ||
| * The index of the plugin in the plugin list. It's unique to each plugin. | ||
| */ | ||
| plugin_id: number; | ||
| call_id: string; | ||
| content: string; | ||
| }; |
| // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
| export {}; |
| export type InputItem = { | ||
| /** | ||
| * For `input: { main: './main.js' }`, `./main.js` has the name `main`. | ||
| * For `input: ['./main.js']`, `./main.js` doesn't have a name. | ||
| */ | ||
| name: string | null; | ||
| /** | ||
| * For `input: { main: './main.js' }`, `./main.js` is the filename. | ||
| */ | ||
| filename: string; | ||
| }; |
| // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
| export {}; |
| export type PluginItem = { | ||
| name: string; | ||
| plugin_id: number; | ||
| }; |
| // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. | ||
| export {}; |
| import type { InputItem } from "./InputItem"; | ||
| import type { PluginItem } from "./PluginItem"; | ||
| export type SessionMeta = { | ||
| action: 'SessionMeta'; | ||
| inputs: Array<InputItem>; | ||
| plugins: Array<PluginItem>; | ||
| cwd: string; | ||
| platform: 'browser' | 'node' | 'neutral'; | ||
| format: 'esm' | 'cjs' | 'iife' | 'umd'; | ||
| /** | ||
| * `OutputOptions.dir` | ||
| */ | ||
| dir: string | null; | ||
| /** | ||
| * `OutputOptions.file` | ||
| */ | ||
| file: string | null; | ||
| }; |
| export {}; |
| export type HookLoadCallEnd = { | ||
| action: 'HookLoadCallEnd'; | ||
| module_id: string; | ||
| source: string | null; | ||
| content: string | null; | ||
| plugin_name: string; | ||
@@ -9,4 +9,4 @@ /** | ||
| */ | ||
| plugin_index: number; | ||
| plugin_id: number; | ||
| call_id: string; | ||
| }; |
@@ -8,4 +8,4 @@ export type HookLoadCallStart = { | ||
| */ | ||
| plugin_index: number; | ||
| plugin_id: number; | ||
| call_id: string; | ||
| }; |
@@ -12,5 +12,9 @@ export type HookResolveIdCallEnd = { | ||
| */ | ||
| plugin_index: number; | ||
| plugin_id: number; | ||
| /** | ||
| * - `automatic` means the resolve call is triggered by the bundler automatically. | ||
| * - `manual` means the resolve call is triggered manually by `this.resolve(...)` | ||
| */ | ||
| trigger: 'automatic' | 'manual'; | ||
| call_id: string; | ||
| }; |
@@ -10,5 +10,9 @@ export type HookResolveIdCallStart = { | ||
| */ | ||
| plugin_index: number; | ||
| plugin_id: number; | ||
| /** | ||
| * - `automatic` means the resolve call is triggered by the bundler automatically. | ||
| * - `manual` means the resolve call is triggered manually by `this.resolve(...)` | ||
| */ | ||
| trigger: 'automatic' | 'manual'; | ||
| call_id: string; | ||
| }; |
| export type HookTransformCallEnd = { | ||
| action: 'HookTransformCallEnd'; | ||
| module_id: string; | ||
| transformed_source: string | null; | ||
| /** | ||
| * Result after transform. Empty means the transform hook returns nothing. | ||
| */ | ||
| content: string | null; | ||
| plugin_name: string; | ||
@@ -9,4 +12,4 @@ /** | ||
| */ | ||
| plugin_index: number; | ||
| plugin_id: number; | ||
| call_id: string; | ||
| }; |
| export type HookTransformCallStart = { | ||
| action: 'HookTransformCallStart'; | ||
| module_id: string; | ||
| source: string; | ||
| /** | ||
| * The content of the module before transform. | ||
| */ | ||
| content: string; | ||
| plugin_name: string; | ||
@@ -9,4 +12,4 @@ /** | ||
| */ | ||
| plugin_index: number; | ||
| plugin_id: number; | ||
| call_id: string; | ||
| }; |
@@ -0,5 +1,12 @@ | ||
| export * from './Asset.js'; | ||
| export * from './AssetsReady.js'; | ||
| export * from './BuildEnd.js'; | ||
| export * from './BuildStart.js'; | ||
| export * from './Chunk.js'; | ||
| export * from './ChunkGraphReady.js'; | ||
| export * from './ChunkImport.js'; | ||
| export * from './HookLoadCallEnd.js'; | ||
| export * from './HookLoadCallStart.js'; | ||
| export * from './HookRenderChunkEnd.js'; | ||
| export * from './HookRenderChunkStart.js'; | ||
| export * from './HookResolveIdCallEnd.js'; | ||
@@ -9,2 +16,3 @@ export * from './HookResolveIdCallStart.js'; | ||
| export * from './HookTransformCallStart.js'; | ||
| export * from './InputItem.js'; | ||
| export * from './Meta.js'; | ||
@@ -14,1 +22,3 @@ export * from './Module.js'; | ||
| export * from './ModuleImport.js'; | ||
| export * from './PluginItem.js'; | ||
| export * from './SessionMeta.js'; |
@@ -0,5 +1,12 @@ | ||
| export * from './Asset.js'; | ||
| export * from './AssetsReady.js'; | ||
| export * from './BuildEnd.js'; | ||
| export * from './BuildStart.js'; | ||
| export * from './Chunk.js'; | ||
| export * from './ChunkGraphReady.js'; | ||
| export * from './ChunkImport.js'; | ||
| export * from './HookLoadCallEnd.js'; | ||
| export * from './HookLoadCallStart.js'; | ||
| export * from './HookRenderChunkEnd.js'; | ||
| export * from './HookRenderChunkStart.js'; | ||
| export * from './HookResolveIdCallEnd.js'; | ||
@@ -9,2 +16,3 @@ export * from './HookResolveIdCallStart.js'; | ||
| export * from './HookTransformCallStart.js'; | ||
| export * from './InputItem.js'; | ||
| export * from './Meta.js'; | ||
@@ -14,1 +22,3 @@ export * from './Module.js'; | ||
| export * from './ModuleImport.js'; | ||
| export * from './PluginItem.js'; | ||
| export * from './SessionMeta.js'; |
@@ -0,5 +1,9 @@ | ||
| import type { AssetsReady } from "./AssetsReady"; | ||
| import type { BuildEnd } from "./BuildEnd"; | ||
| import type { BuildStart } from "./BuildStart"; | ||
| import type { ChunkGraphReady } from "./ChunkGraphReady"; | ||
| import type { HookLoadCallEnd } from "./HookLoadCallEnd"; | ||
| import type { HookLoadCallStart } from "./HookLoadCallStart"; | ||
| import type { HookRenderChunkEnd } from "./HookRenderChunkEnd"; | ||
| import type { HookRenderChunkStart } from "./HookRenderChunkStart"; | ||
| import type { HookResolveIdCallEnd } from "./HookResolveIdCallEnd"; | ||
@@ -10,2 +14,3 @@ import type { HookResolveIdCallStart } from "./HookResolveIdCallStart"; | ||
| import type { ModuleGraphReady } from "./ModuleGraphReady"; | ||
| export type Meta = HookTransformCallStart | HookTransformCallEnd | HookLoadCallStart | HookLoadCallEnd | BuildStart | BuildEnd | HookResolveIdCallStart | HookResolveIdCallEnd | ModuleGraphReady; | ||
| import type { SessionMeta } from "./SessionMeta"; | ||
| export type Meta = HookTransformCallStart | HookTransformCallEnd | HookLoadCallStart | HookLoadCallEnd | BuildStart | BuildEnd | HookResolveIdCallStart | HookResolveIdCallEnd | ModuleGraphReady | SessionMeta | ChunkGraphReady | HookRenderChunkStart | HookRenderChunkEnd | AssetsReady; |
| export type ModuleImport = { | ||
| id: string; | ||
| module_id: string; | ||
| /** | ||
| * - `import`: `import { foo } from './lib.js';` | ||
| * - `import-statement`: `import { foo } from './lib.js';` | ||
| * - `dynamic-import`: `import('./lib.js')` | ||
@@ -12,3 +12,3 @@ * - `require-call`: `require('./lib.js')` | ||
| */ | ||
| kind: 'import' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept'; | ||
| kind: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept'; | ||
| /** | ||
@@ -15,0 +15,0 @@ * `./lib.js` in `import { foo } from './lib.js';` |
+7
-2
| import { type Meta } from './generated/index.js'; | ||
| export * from './generated/index.js'; | ||
| export type Event = { | ||
| export type Event = StringRef | ({ | ||
| timestamp: string; | ||
| session_id: string; | ||
| } & Meta; | ||
| } & Meta); | ||
| export declare function parseToEvents(data: string): Event[]; | ||
| export declare function parseToEvent(data: string): Event; | ||
| export interface StringRef { | ||
| action: 'StringRef'; | ||
| id: string; | ||
| content: string; | ||
| } |
+1
-1
| export * from './generated/index.js'; | ||
| export function parseToEvents(data) { | ||
| return data.split('\n').map(v => JSON.parse(v)); | ||
| return data.split('\n').map((v) => JSON.parse(v)); | ||
| } | ||
@@ -5,0 +5,0 @@ export function parseToEvent(data) { |
+15
-13
| { | ||
| "name": "@rolldown/debug", | ||
| "version": "1.0.0-beta.9-commit.d91dfb5", | ||
| "version": "1.0.0-rc.1", | ||
| "homepage": "https://rolldown.rs/", | ||
| "license": "MIT", | ||
| "type": "module", | ||
| "repository": { | ||
@@ -11,2 +11,12 @@ "type": "git", | ||
| }, | ||
| "files": [ | ||
| "dist" | ||
| ], | ||
| "type": "module", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./dist/index.d.ts", | ||
| "import": "./dist/index.js" | ||
| } | ||
| }, | ||
| "publishConfig": { | ||
@@ -16,18 +26,10 @@ "access": "public" | ||
| "devDependencies": { | ||
| "@oxc-node/cli": "^0.0.27" | ||
| "@oxc-node/cli": "^0.0.35" | ||
| }, | ||
| "exports": { | ||
| ".": { | ||
| "import": "./dist/index.js", | ||
| "types": "./dist/index.d.ts" | ||
| } | ||
| }, | ||
| "files": [ | ||
| "dist" | ||
| ], | ||
| "scripts": { | ||
| "gen-action-types": "oxnode ../../scripts/src/gen-debug-action-types.ts", | ||
| "build": "pnpm run gen-action-types && tsc -b", | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| "test": "echo \"Error: no test specified\" && exit 1", | ||
| "publint": "publint ." | ||
| } | ||
| } |
Sorry, the diff of this file is not supported yet
No website
QualityPackage does not have a website.
15332
73.71%51
64.52%376
113.64%2
-33.33%