Skip to content

Missing prism-ruby dependency when installing with Yarn #450

@florentdestremau

Description

@florentdestremau

When trying to install using yarn, the file expects this line:

import 'prismjs/components/prism-ruby';

To compile with webpack. This file is not declared as a dependency (or optional dependency). As a result, projects that do not already include prismjs — or specifically the prism-ruby component — cannot compile.

Lexxy should either:

  • Declare prismjs (and the required components) as a dependency or peer dependency, or
  • Make this import optional so it does not break builds for projects that do not use Prism.

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