Skip to content

[Bug] Build fails if .swcrc includes comments #22

@jlowcs

Description

@jlowcs

Describe the bug

.swcrc files support comments, but this addon reads it as basic JSON, resulting in a failure:

=> Failed to build the preview
SyntaxError: Expected double-quoted property name in JSON at position 399 (line 19 column 5)

Steps to reproduce the behavior

Add a comment to the project's .swcrc and build the docs.

Expected behavior

It should not fail when there are comments in .swcrc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions