-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
We need to do some heavy-cpu tasks with Rust, the first of which is to accurately collect project meta-information, with support of watch.
Solution
How?
- New tnf and tnf_binding in crates directory, new tnf-binding in packages directory (package name @umijs/tnf-binding)
- export a build and an update method.
export function build(opts: {
entry: Record<string, string>,
alias: [[string, string]],
externals: Record<string, string>,
}): {
files: {
path: string,
code: string,
imports: {
source: string,
loc: any,
default: string,
namespace: string,
specifiers: Record<string, { name: string, kind: any }>,
}[],
exports: any[],
}[]
}
export function update(opts: {
changes: {
path: string,
type: any,
}[]
}): { changes: files: {...}[] }3、try to use oxc instead of swc
Alternatives
No response
Importance
i cannot use TNF without it
Additional Information
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request