Skip to content

json as string in JS bundle #1461

Description

@retyui

Webpack wraps JSON objects inside JSON.parse('...') strings primarily for JavaScript parsing performance and memory optimization. Does it make to apply this V8 optimisation from webpack for Hermes engine (especially for apps with huge json locales)

https://github.com/webpack/webpack/blob/69adee615b758639f3499d54c0b1d62f8328c6f2/lib/json/JsonGenerator.js#L230-L237

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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