Skip to content

Standalone prettier plugin build imports "prettier" instead of "prettier/standalone" #1098

@EskiMojo14

Description

@EskiMojo14

Describe the bug
The standalone build of the prettier plugin includes require("prettier") instead of require("prettier/standalone"), meaning the build ends up trying to include Node modules (e.g. "module, "url" and "path")

Source
import prettierPluginLiquid from "prettier-plugin-liquid/standalone"

Expected behaviour
Should work in the browser

Actual behaviour
Image

Debugging information

  • OS MacOS
  • OS Version Tahoe 26.2

Additional context
Import can be seen in the first line here: https://unpkg.com/@shopify/prettier-plugin-liquid@1.10.0/standalone.js

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