Skip to content

Add node emulation to typehead serve #2

@mbullington

Description

@mbullington

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:

  1. Prepend a window.global = global; since ESBuild doesn't do this by default.
  2. Add the esbuild-plugin-node-emulation plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions