Crate next_taskless

Crate next_taskless 

Source
Expand description

Utilities for Next.js written without a dependency on turbo-tasks, allowing them to be shared with webpack and/or rspack codepaths. This crate must be compilable to WASM, so that it works in environments where no native bindings are available.

These utilities should not perform file IO directly, but instead accept files they depend on as arguments (preferred) or via async trait methods or callbacks (acceptable). Follow “sans-io” patterns where possible.

Constants§

BUN_EXTERNALS
EDGE_NODE_EXTERNALS
NODE_EXTERNALS

Statics§

NEVER_EXTERNAL_RE

Functions§

expand_next_js_template
Given a next.js template file’s contents, replaces replacements and injections and makes sure there are none left over.