Skip to content

Commit

Permalink
refactor: init
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a committed Nov 13, 2024
1 parent 7c9e9f8 commit 6fedece
Show file tree
Hide file tree
Showing 71 changed files with 1,566 additions and 270 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
"ukey",
"Ukey"
]
}
}
139 changes: 121 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ustr = { package = "ustr-fxhash", version = "1.0.0" }
xxhash-rust = { version = "0.8.10" }

# Pinned
napi = { version = "3.0.0-alpha.19" }
napi = { version = "3.0.0-alpha.19", features = ["anyhow"] }
napi-build = { version = "2" }
napi-derive = { version = "3.0.0-alpha.17" }

Expand Down
8 changes: 5 additions & 3 deletions crates/node_binding/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ default = []
plugin = ["rspack_binding_options/plugin"]

[dependencies]
anyhow = { workspace = true }
ropey = { workspace = true }
rspack_allocator = { version = "0.1.0", path = "../rspack_allocator" }
rspack_binding_options = { version = "0.1.0", path = "../rspack_binding_options" }
Expand All @@ -33,9 +34,10 @@ rspack_util = { version = "0.1.0", path = "../rspack_util" }

rspack_tracing = { version = "0.1.0", path = "../rspack_tracing" }

async-trait = { workspace = true }
cow-utils = { workspace = true }
tracing = { workspace = true }
async-trait = { workspace = true }
cow-utils = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }

napi = { workspace = true }
napi-derive = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion crates/node_binding/binding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ export interface JsLoaderContext {
loaderIndex: number
loaderState: Readonly<JsLoaderState>
__internal__error?: JsRspackError
__internal__tracingCarrier?: Record<string, string>
}

export interface JsLoaderItem {
Expand Down Expand Up @@ -1971,7 +1972,7 @@ export interface RawTrustedTypes {
* Author Donny/강동윤
* Copyright (c)
*/
export declare function registerGlobalTrace(filter: string, layer: "chrome" | "logger"| "console", output: string): void
export declare function registerGlobalTrace(filter: string, layer: "chrome" | "logger"| "console" | "otel", output: string): void

export declare enum RegisterJsTapKind {
CompilerThisCompilation = 0,
Expand Down
Loading

0 comments on commit 6fedece

Please sign in to comment.