Skip to content

"Unexpected token" when analyzing after upgrading marked #42

@rejas

Description

@rejas

I noticed that our packtracker.io webpack-plugin started reporting bogus values after our latest "npm update" run.

Our logs show this error from the analyzer:

Unexpected token (1:245361)

This points to the updated markedjs package, right into the middle of this codeline:

https://github.com/markedjs/marked/blob/4c1a164f70c3fecf83286a2723e8c067eb782817/src/Hooks.js#L8

Downgrading only that package from v4.3.0 to v4.2.12 fixes the error and the packtracker stats are ok again.

Not sure why the parser doesn't like this line / codechange though, running the analyzer with the CLI directly from our code doesn't bring this error.

Already reported to webpack-bundle-analyzer (webpack/webpack-bundle-analyzer#595) but wanted to get your feedback too

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions