feat(next-swc): support wasm32-* build target (#61586)

<!-- Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the
PR.
- Read the Docs Contribution Guide to ensure your contribution follows
the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

### Adding or Updating Examples

- The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- Make sure the linting passes by running `pnpm build && pnpm lint`. See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See:
https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md

### Adding a feature

- Implements an existing feature request or RFC. Make sure the feature
request has been accepted for implementation before opening a PR. (A
discussion must be opened, see
https://github.com/vercel/next.js/discussions/new?category=ideas)
- Related issues/discussions are linked using `fixes #number`
- e2e tests added
(https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
- Documentation added
- Telemetry added. In case of a feature if it's used or not.
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to
understand the PR)
- When linking to a Slack thread, you might want to share details of the
conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### How?

Closes NEXT-
Fixes #

-->

### What?

This PR introduces a ground work to generate wasm bindings package from
our napi bindings. This doesn't actually replace anything yet, however
aim to establish our napi bindings package can be built against wasm32
target.

### Why?

We currently have two bindings package to generate native / wasm target
support, one for napi and one other for wasm. Recently napi-rs started
to support to generate bindings for the wasm directly - which means we
can get rid of the wasm-pack based bindings code entirely and maintain a
single bindings code only.

This'll makes our `next-swc` simpler as well, since the invocation to
the bindings now becomes identical we don't have to additional wasm
specific logics to invoke functions (i.e transform, transformsync..).
Also napi generates wasi-supported wasm bindings, provides few more
features to the current wasm bindings.

#### Good
- Async napi binding fn works transparently (`transform`, `minify`...)
- (Experimental) thread supports depends on node.js runtime
- Wasi support: i.e it can even read filesystem directly!

#### Things to consider
- node.js's wasi support is experimental yet
- napi-rs's wasm support is in beta yet, specifically `packaging`
generated wasm output.

Due to `things to consider` reasons, this PR does not replace existing
wasm target yet. We should be able to plan out things later.

**What happens to the turbopack api in napi bindings?**

Simply put, this **does not support turbopack in wasm**. Build works by
disabling turbopack (more notably, underlying dependency doesn't support
wasm) features. It is something to explore separately.


Closes PACK-2367


There is a branch at https://github.com/vercel/next.js/pull/61586 shows
quick demo for importing, running sync / async / read external files.
This commit is contained in:
OJ Kwon 2024-02-06 10:15:13 -08:00 committed by GitHub
parent 6d07c00dee
commit 9cadae5eef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 224 additions and 47 deletions

View file

@ -180,6 +180,18 @@ jobs:
stepName: 'test-next-swc-wasm'
secrets: inherit
#[NOTE] currently this only checks building wasi target
test-next-swc-napi-wasi:
name: test next-swc wasi
needs: ['changes', 'build-next']
if: ${{ needs.changes.outputs.docs-only == 'false' }}
uses: ./.github/workflows/build_reusable.yml
with:
afterBuild: rustup target add wasm32-wasi-preview1-threads && turbo run build-native-wasi
stepName: 'test-next-swc-napi-wasi'
secrets: inherit
test-unit:
name: test unit
needs: ['changes']

25
Cargo.lock generated
View file

@ -3270,9 +3270,9 @@ dependencies = [
[[package]]
name = "napi"
version = "2.14.0"
version = "2.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f9d90182620f32fe34b6ac9b52cba898af26e94c7f5abc01eb4094c417ae2e6c"
checksum = "efbf98e1bcb85cc441bbf7cdfb11070d2537a100e2697d75397b2584c32492d1"
dependencies = [
"anyhow",
"bitflags 2.4.0",
@ -3287,29 +3287,29 @@ dependencies = [
[[package]]
name = "napi-build"
version = "2.0.1"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "882a73d9ef23e8dc2ebbffb6a6ae2ef467c0f18ac10711e4cc59c5485d41df0e"
checksum = "d4b4532cf86bfef556348ac65e561e3123879f0e7566cca6d43a6ff5326f13df"
[[package]]
name = "napi-derive"
version = "2.14.0"
version = "2.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a01328a2da5c52a77fe839ec8576ddf063529cf23db8958b1030005675f32c45"
checksum = "7622f0dbe0968af2dacdd64870eee6dee94f93c989c841f1ad8f300cf1abd514"
dependencies = [
"cfg-if 1.0.0",
"convert_case 0.6.0",
"napi-derive-backend",
"proc-macro2",
"quote",
"syn 1.0.109",
"syn 2.0.32",
]
[[package]]
name = "napi-derive-backend"
version = "1.0.54"
version = "1.0.59"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ecd3ea4b54020c73d591a49cd192f6334c5f37f71a63ead54dbc851fa991ef00"
checksum = "8ec514d65fce18a959be55e7f683ac89c6cb850fb59b09e25ab777fd5a4a8d9e"
dependencies = [
"convert_case 0.6.0",
"once_cell",
@ -3317,7 +3317,7 @@ dependencies = [
"quote",
"regex",
"semver 1.0.18",
"syn 1.0.109",
"syn 2.0.32",
]
[[package]]
@ -3485,6 +3485,8 @@ dependencies = [
"backtrace",
"dhat",
"fxhash",
"getrandom",
"iana-time-zone",
"napi",
"napi-build",
"napi-derive",
@ -3496,6 +3498,7 @@ dependencies = [
"serde",
"serde_json",
"shadow-rs",
"swc_core",
"tokio",
"tracing",
"tracing-chrome",
@ -8234,7 +8237,7 @@ version = "1.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675"
dependencies = [
"cfg-if 1.0.0",
"cfg-if 0.1.10",
"rand",
"static_assertions",
]

View file

@ -42,17 +42,17 @@ __internal_dhat-ad-hoc = ["dhat"]
[target.'cfg(all(target_os = "linux", target_arch = "aarch64"))'.dependencies]
turbopack-binding = { workspace = true, features = ["__turbo_tasks_malloc"] }
[target.'cfg(all(target_os = "linux", not(target_arch = "aarch64")))'.dependencies]
[target.'cfg(all(target_os = "linux", not(any(target_arch = "aarch64", target_arch = "wasm32"))))'.dependencies]
turbopack-binding = { workspace = true, features = ["__turbo_tasks_malloc", "__turbo_tasks_malloc_custom_allocator"] }
[target.'cfg(not(target_os = "linux"))'.dependencies]
[target.'cfg(not(any(target_os = "linux", target_arch = "wasm32")))'.dependencies]
turbopack-binding = { workspace = true, features = ["__turbo_tasks_malloc", "__turbo_tasks_malloc_custom_allocator"] }
# Enable specific tls features per-target.
[target.'cfg(all(target_os = "windows", target_arch = "aarch64"))'.dependencies]
next-core = { workspace = true, features = ["native-tls"] }
[target.'cfg(not(all(target_os = "windows", target_arch = "aarch64")))'.dependencies]
[target.'cfg(not(any(all(target_os = "windows", target_arch = "aarch64"), target_arch="wasm32")))'.dependencies]
next-core = { workspace = true, features = ["rustls-tls"] }
[lints]
@ -71,19 +71,25 @@ napi = { version = "2", default-features = false, features = [
] }
napi-derive = "2"
next-custom-transforms = { workspace = true }
next-api = { workspace = true }
next-build = { workspace = true }
next-core = { workspace = true }
turbo-tasks = { workspace = true }
once_cell = { workspace = true }
serde = "1"
serde_json = "1"
shadow-rs = { workspace = true }
tokio = { workspace = true, features = ["full"] }
tracing = { workspace = true }
tracing-futures = "0.2.5"
tracing-subscriber = { workspace = true }
tracing-chrome = "0.5.0"
url = {workspace = true}
urlencoding = {workspace = true}
# Dependencies for the native, non-wasm32 build.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { workspace = true, features = ["full"] }
turbo-tasks = { workspace = true }
next-api = { workspace = true }
next-build = { workspace = true }
next-core = { workspace = true }
turbopack-binding = { workspace = true, features = [
"__swc_core_binding_napi",
"__feature_node_file_trace",
@ -94,8 +100,17 @@ turbopack-binding = { workspace = true, features = [
"__turbopack",
"__turbopack_ecmascript_hmr_protocol",
] }
url = {workspace = true}
urlencoding = {workspace = true}
# Dependencies for the wasm32 build.
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2.9", default-features = false, features = ["js"] }
iana-time-zone = { version = "*", features = ["fallback"] }
#[todo] turbopack-binding should expose serde serializable features
swc_core = { workspace = true, features = ["ecma_ast_serde"] }
turbopack-binding = { workspace = true, features = [
"__swc_core_binding_napi",
"__feature_mdx_rs",
] }
[build-dependencies]
napi-build = "2"
@ -103,4 +118,7 @@ serde = "1"
serde_json = "1"
# It is not a mistake this dependency is specified in dep / build-dep both.
shadow-rs = { workspace = true }
# build-dependencies for the native, non-wasm32 build
[target.'cfg(not(target_arch = "wasm32"))'.build-dependencies]
turbopack-binding = { workspace = true, features = ["__turbo_tasks_build"] }

View file

@ -1,5 +1,3 @@
use turbopack_binding::turbo::tasks_build::generate_register;
extern crate napi_build;
fn main() {
@ -10,5 +8,6 @@ fn main() {
napi_build::setup();
generate_register();
#[cfg(not(target_arch = "wasm32"))]
turbopack_binding::turbo::tasks_build::generate_register();
}

View file

@ -47,13 +47,17 @@ use turbopack_binding::swc::core::{
common::{sync::Lazy, FilePathMapping, SourceMap},
};
#[cfg(not(target_arch = "wasm32"))]
pub mod app_structure;
pub mod mdx;
pub mod minify;
#[cfg(not(target_arch = "wasm32"))]
pub mod next_api;
pub mod parse;
pub mod transform;
#[cfg(not(target_arch = "wasm32"))]
pub mod turbopack;
#[cfg(not(target_arch = "wasm32"))]
pub mod turbotrace;
pub mod util;
@ -64,6 +68,7 @@ shadow_rs::shadow!(build);
// compile error
#[cfg(not(any(
all(target_os = "linux", target_env = "musl", target_arch = "aarch64"),
target_arch = "wasm32",
feature = "__internal_dhat-heap",
feature = "__internal_dhat-ad-hoc"
)))]
@ -81,6 +86,7 @@ static COMPILER: Lazy<Arc<Compiler>> = Lazy::new(|| {
Arc::new(Compiler::new(cm))
});
#[cfg(not(target_arch = "wasm32"))]
#[napi::module_init]
fn init() {
if cfg!(debug_assertions) || env::var("SWC_DEBUG").unwrap_or_default() == "1" {
@ -119,6 +125,7 @@ pub type ArcCompiler = Arc<Compiler>;
static REGISTER_ONCE: Once = Once::new();
#[cfg(not(target_arch = "wasm32"))]
fn register() {
REGISTER_ONCE.call_once(|| {
::next_api::register();
@ -126,3 +133,8 @@ fn register() {
include!(concat!(env!("OUT_DIR"), "/register.rs"));
});
}
#[cfg(target_arch = "wasm32")]
fn register() {
//noop
}

View file

@ -2,14 +2,17 @@ use std::collections::{HashMap, HashSet};
use anyhow::Result;
use lazy_static::lazy_static;
use turbo_tasks::{Value, Vc};
use turbo_tasks::{TaskInput, Value, Vc};
use turbo_tasks_fs::glob::Glob;
use turbopack_binding::{
turbo::tasks_fs::FileSystemPath,
turbopack::core::{
diagnostics::DiagnosticExt,
file_source::FileSource,
issue::{unsupported_module::UnsupportedModuleIssue, IssueExt},
issue::{
unsupported_module::UnsupportedModuleIssue, Issue, IssueExt, IssueSeverity,
OptionStyledString, StyledString,
},
reference_type::ReferenceType,
resolve::{
parse::Request,
@ -41,6 +44,8 @@ lazy_static! {
),
("@next", vec!["/font/google", "/font/local"])
]);
static ref CLIENT_ONLY_IMPORTS: HashSet<&'static str> = ["client-only", "next/dist/compiled/server-only/error"].into();
static ref SERVER_ONLY_IMPORTS: HashSet<&'static str> = ["server-only", "next/dist/compiled/server-only/index"].into();
}
#[turbo_tasks::value]
@ -105,6 +110,129 @@ impl ResolvePlugin for UnsupportedModulesResolvePlugin {
}
}
#[turbo_tasks::value(shared)]
#[derive(Debug, Copy, Clone, TaskInput, Ord, PartialOrd, Hash)]
pub(crate) enum InvalidImportType {
ClientOnly,
ServerOnly,
}
#[turbo_tasks::value(shared)]
pub struct InvalidImportModuleIssue {
pub file_path: Vc<FileSystemPath>,
pub import_type: InvalidImportType,
}
#[turbo_tasks::value_impl]
impl Issue for InvalidImportModuleIssue {
#[turbo_tasks::function]
fn severity(&self) -> Vc<IssueSeverity> {
IssueSeverity::Warning.into()
}
#[turbo_tasks::function]
fn category(&self) -> Vc<String> {
Vc::cell("resolve".to_string())
}
#[turbo_tasks::function]
fn title(&self) -> Vc<StyledString> {
StyledString::Text("Invalid import".into()).cell()
}
#[turbo_tasks::function]
fn file_path(&self) -> Vc<FileSystemPath> {
self.file_path
}
#[turbo_tasks::function]
async fn description(&self) -> Result<Vc<OptionStyledString>> {
let message = match self.import_type {
InvalidImportType::ClientOnly => {
"'client-only' cannot be imported from a Server Component module. It should only \
be used from a Client Component."
}
InvalidImportType::ServerOnly => {
"'server-only' cannot be imported from a Client Component module. It should only \
be used from a Server Component."
}
};
Ok(Vc::cell(Some(
StyledString::Text(message.to_string()).cell(),
)))
}
}
/// A resolve plugin detects import to the `client-only`/`server-only`, then
/// emits an error according to the context.
#[turbo_tasks::value]
pub(crate) struct InvalidImportResolvePlugin {
root: Vc<FileSystemPath>,
import_type: InvalidImportType,
}
#[turbo_tasks::value_impl]
impl InvalidImportResolvePlugin {
#[turbo_tasks::function]
pub fn new(root: Vc<FileSystemPath>, import_type: InvalidImportType) -> Vc<Self> {
InvalidImportResolvePlugin { root, import_type }.cell()
}
}
#[turbo_tasks::value_impl]
impl ResolvePlugin for InvalidImportResolvePlugin {
#[turbo_tasks::function]
fn after_resolve_condition(&self) -> Vc<ResolvePluginCondition> {
ResolvePluginCondition::new(self.root.root(), Glob::new("**".to_string()))
}
#[turbo_tasks::function]
async fn after_resolve(
&self,
_fs_path: Vc<FileSystemPath>,
file_path: Vc<FileSystemPath>,
_reference_type: Value<ReferenceType>,
request: Vc<Request>,
) -> Result<Vc<ResolveResultOption>> {
let imports = if self.import_type == InvalidImportType::ClientOnly {
&*CLIENT_ONLY_IMPORTS
} else {
&*SERVER_ONLY_IMPORTS
};
if let Request::Module {
module,
path,
query: _,
} = &*request.await?
{
if imports.contains(module.as_str()) {
UnsupportedModuleIssue {
file_path,
package: module.into(),
package_path: None,
}
.cell()
.emit();
}
if let Pattern::Constant(path) = path {
if imports.contains(path.as_str()) {
InvalidImportModuleIssue {
file_path,
import_type: self.import_type,
}
.cell()
.emit();
}
}
}
Ok(ResolveResultOption::none())
}
}
#[turbo_tasks::value]
pub(crate) struct NextExternalResolvePlugin {
root: Vc<FileSystemPath>,

View file

@ -9,6 +9,7 @@
"build-native-no-plugin": "napi build --platform -p next-swc-napi --cargo-cwd ../../ --cargo-name next_swc_napi --features image-webp --js false native",
"build-native-no-plugin-woa": "napi build --platform -p next-swc-napi --cargo-cwd ../../ --cargo-name next_swc_napi --cargo-flags=--no-default-features --features image-webp --js false native",
"build-native-no-plugin-woa-release": "napi build --platform -p next-swc-napi --cargo-cwd ../../ --cargo-name next_swc_napi --release --cargo-flags=--no-default-features --features image-webp,tracing/release_max_level_info --js false native",
"build-native-wasi": "npx --package=@napi-rs/cli@3.0.0-alpha.36 napi build --platform --target wasm32-wasi-preview1-threads -p next-swc-napi --cwd ../../ --output-dir packages/next-swc/native",
"build-wasm": "wasm-pack build crates/wasm --scope=next",
"cache-build-native": "echo $(ls native)",
"rust-check-fmt": "cd ../..; cargo fmt -- --check",
@ -26,12 +27,13 @@
"aarch64-apple-darwin",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc"
"aarch64-pc-windows-msvc",
"wasm32-wasi-preview1-threads"
]
}
},
"devDependencies": {
"@napi-rs/cli": "2.16.2",
"@napi-rs/cli": "2.18.0",
"cross-env": "6.0.3"
}
}

View file

@ -144,8 +144,7 @@
"@jest/transform": "29.5.0",
"@jest/types": "29.5.0",
"@mswjs/interceptors": "0.23.0",
"@napi-rs/cli": "2.16.2",
"@napi-rs/triples": "1.1.0",
"@napi-rs/triples": "1.2.0",
"@next/polyfill-module": "14.1.1-canary.37",
"@next/polyfill-nomodule": "14.1.1-canary.37",
"@next/react-dev-overlay": "14.1.1-canary.37",

File diff suppressed because one or more lines are too long

View file

@ -929,12 +929,9 @@ importers:
'@mswjs/interceptors':
specifier: 0.23.0
version: 0.23.0
'@napi-rs/cli':
specifier: 2.16.2
version: 2.16.2
'@napi-rs/triples':
specifier: 1.1.0
version: 1.1.0
specifier: 1.2.0
version: 1.2.0
'@next/polyfill-module':
specifier: 14.1.1-canary.37
version: link:../next-polyfill-module
@ -1533,8 +1530,8 @@ importers:
packages/next-swc:
devDependencies:
'@napi-rs/cli':
specifier: 2.16.2
version: 2.16.2
specifier: 2.18.0
version: 2.18.0
cross-env:
specifier: 6.0.3
version: 6.0.3
@ -2172,7 +2169,6 @@ packages:
/@babel/plugin-proposal-dynamic-import@7.16.7(@babel/core@7.22.5):
resolution: {integrity: sha512-I8SW9Ho3/8DRSdmDdH3gORdyUuYnk1m4cMxUAdu5oy4n3OfN8flDEH+d60iG7dUfi0KkYwSvoalHzzdRzpWHTg==}
engines: {node: '>=6.9.0'}
deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.
peerDependencies:
'@babel/core': 7.22.5
dependencies:
@ -2184,7 +2180,6 @@ packages:
/@babel/plugin-proposal-export-namespace-from@7.16.7(@babel/core@7.22.5):
resolution: {integrity: sha512-ZxdtqDXLRGBL64ocZcs7ovt71L3jhC1RGSyR996svrCi3PYqHNkb3SwPJCs8RIzD86s+WPpt2S73+EHCGO+NUA==}
engines: {node: '>=6.9.0'}
deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.
peerDependencies:
'@babel/core': 7.22.5
dependencies:
@ -2208,7 +2203,6 @@ packages:
/@babel/plugin-proposal-logical-assignment-operators@7.16.7(@babel/core@7.22.5):
resolution: {integrity: sha512-K3XzyZJGQCr00+EtYtrDjmwX7o7PLK6U9bi1nCwkQioRFVUv6dJoxbQjtWVtP+bCPy82bONBKG8NPyQ4+i6yjg==}
engines: {node: '>=6.9.0'}
deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.
peerDependencies:
'@babel/core': 7.22.5
dependencies:
@ -2231,7 +2225,6 @@ packages:
/@babel/plugin-proposal-numeric-separator@7.16.7(@babel/core@7.22.5):
resolution: {integrity: sha512-vQgPMknOIgiuVqbokToyXbkY/OmmjAzr/0lhSIbG/KmnzXPGwW/AdhdKpi+O4X/VkWiWjnkKOBiqJrTaC98VKw==}
engines: {node: '>=6.9.0'}
deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
peerDependencies:
'@babel/core': 7.22.5
dependencies:
@ -2282,7 +2275,6 @@ packages:
/@babel/plugin-proposal-private-methods@7.16.11(@babel/core@7.22.5):
resolution: {integrity: sha512-F/2uAkPlXDr8+BHpZvo19w3hLFKge+k75XUprE6jaqKxjGkSYcK+4c+bup5PdW/7W/Rpjwql7FTVEDW+fRAQsw==}
engines: {node: '>=6.9.0'}
deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
peerDependencies:
'@babel/core': 7.22.5
dependencies:
@ -5365,14 +5357,14 @@ packages:
strict-event-emitter: 0.5.0
dev: true
/@napi-rs/cli@2.16.2:
resolution: {integrity: sha512-U2aZfnr0s9KkXpZlYC0l5WxWCXL7vJUNpCnWMwq3T9GG9rhYAAUM9CTZsi1Z+0iR2LcHbfq9EfMgoqnuTyUjfg==}
/@napi-rs/cli@2.18.0:
resolution: {integrity: sha512-lfSRT7cs3iC4L+kv9suGYQEezn5Nii7Kpu+THsYVI0tA1Vh59LH45p4QADaD7hvIkmOz79eEGtoKQ9nAkAPkzA==}
engines: {node: '>= 10'}
hasBin: true
dev: true
/@napi-rs/triples@1.1.0:
resolution: {integrity: sha512-XQr74QaLeMiqhStEhLn1im9EOMnkypp7MZOwQhGzqp2Weu5eQJbpPxWxixxlYRKWPOmJjsk6qYfYH9kq43yc2w==}
/@napi-rs/triples@1.2.0:
resolution: {integrity: sha512-HAPjR3bnCsdXBsATpDIP5WCrw0JcACwhhrwIAQhiR46n+jm+a2F8kBsfseAuWtSyQ+H3Yebt2k43B5dy+04yMA==}
dev: true
/@next/react-refresh-utils@13.5.4(react-refresh@0.12.0)(webpack@5.90.0):

View file

@ -73,6 +73,18 @@
"dependsOn": ["^build-wasm"],
"outputs": ["crates/wasm/pkg/*"]
},
"build-native-wasi": {
"inputs": [
"../../.cargo/**",
"../../packages/next-swc/crates/**",
"../../**/Cargo.toml",
"../../**/Cargo.lock",
"../../.github/workflows/build_and_deploy.yml",
"../../rust-toolchain"
],
"dependsOn": ["^build-native-wasi"],
"outputs": ["native/*"]
},
"cache-build-native": {
"inputs": [
"../../.cargo/**",