Add node emulation to `typehead serve`
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, node.js, typescript
- Domain
- build-system, cli
Research direction
Start at the typehead serve entry point and inspect how its esbuild configuration is assembled. Implement the two requested node-emulation steps, then verify that serve handles Node-style globals and modules without adding them to the regular bundle.
Written by the indexing model from the issue text.
Description
Description
Parcel bundler has "node integration" which mirrors what Webpack, Browserify, etc do. We wouldn't want to include this in the actual bundle, in case users are using Node.js or a platform we don't recognize, but we can do the following for typescript serve:
- Prepend a
window.global = global;since ESBuild doesn't do this by default. - Add the esbuild-plugin-node-emulation plugin.
- Dominant language
- JavaScript
- Stars
- 24
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/typehead
-
Add livereload Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
Similar issues
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
georgestephanis/p2026#40 ·
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·