git
ask
hub
Privacy
Terms
Sign in with GitHub
brillout/rolldown-define-testbed
↗
Language ·
JavaScript
Simplify and Visualize This Repo
Scan the safety of this repo
Self Host this repo
Check out more work of Developer: brillout
Ask anything about this repo to start.
Set up a minimal JavaScript project that tests whether a bundler's define option replaces both global and local variable references, using Rolldown as the bundler.
Create side-by-side test cases for Rolldown, esbuild, and Rollup that demonstrate how each tool handles define substitution on local versus global variables.
Write a build script that uses Rolldown's define option to replace a placeholder like API_URL, and include test code showing the difference between declaring that placeholder as a global versus a local variable inside a function.
Full explanation on explaingit →
📎
Send
By chatting or signing in you agree to the
Terms
and chat-message logging (revocable in
History
).