Skip to content

Conversation

Firestar99
Copy link
Collaborator

Requires #2985

Adds a feature gate shader-node to hide any shader nodes, by default disabled.

@Firestar99
Copy link
Collaborator Author

Firestar99 commented Aug 27, 2025

Q: How do you enable that feature with npm start? I could just edit the the frontend/package.json to add the --features shader-node, but could there be a nicer way to pass that?

diff --git a/frontend/package.json b/frontend/package.json
--- a/frontend/package.json	(revision 9b151d444916636d8b6581f85a6e3cbc7cd70270)
+++ b/frontend/package.json	(date 1756300984106)
@@ -23,10 +23,10 @@
 		"setup": "node package-installer.js",
 		"native:build-dev": "wasm-pack build ./wasm --dev --target=web --features native",
 		"native:build-production": "wasm-pack build ./wasm --release --target=web --features native",
-		"wasm:build-dev": "wasm-pack build ./wasm --dev --target=web",
+		"wasm:build-dev": "wasm-pack build ./wasm --dev --target=web --features shader-node",
 		"wasm:build-profiling": "wasm-pack build ./wasm --profiling --target=web",
 		"wasm:build-production": "wasm-pack build ./wasm --release --target=web",
-		"wasm:watch-dev": "cargo watch --postpone --watch-when-idle --workdir=wasm --shell \"wasm-pack build . --dev --target=web -- --color=always\"",
+		"wasm:watch-dev": "cargo watch --postpone --watch-when-idle --workdir=wasm --shell \"wasm-pack build . --dev --target=web -- --features shader-node --color=always\"",
 		"wasm:watch-profiling": "cargo watch --postpone --watch-when-idle --workdir=wasm --shell \"wasm-pack build . --profiling --target=web -- --color=always\"",
 		"wasm:watch-production": "cargo watch --postpone --watch-when-idle --workdir=wasm --shell \"wasm-pack build . --release --target=web -- --color=always\""
 	},

@Firestar99 Firestar99 force-pushed the shaders-feature-gate branch from 13a290f to dd9fba8 Compare August 28, 2025 13:39
@Firestar99 Firestar99 force-pushed the shaders-feature-gate branch from dd9fba8 to babf85d Compare August 28, 2025 13:40
@Firestar99 Firestar99 force-pushed the shaders branch 2 times, most recently from a8ba74e to 4437134 Compare August 29, 2025 11:07
@Firestar99
Copy link
Collaborator Author

merged into #3097 and #2985 respectively

@Firestar99 Firestar99 closed this Aug 29, 2025
@Firestar99 Firestar99 deleted the shaders-feature-gate branch August 29, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants