Skip to content

Failure if helper functions are renamed internally in Svelte bundle #538

Closed
@Conduitry

Description

@Conduitry

I've been attempting to upgrade Svelte to Acorn v5 and have been running into interesting issues. On the latest version of Acorn, the assign helper function in the bundle gets renamed to assign$1, because assign conflicts with a new internal assign variable that Acorn is using (for an Object.assign polyfill, incidentally).

This exposed a limitation in the code that lets helper functions depend on other helper functions. In particular, that code expects that

parse( shared[ key ].toString() ).body[0].id.name === key

but this is no longer the case with assign when using Acorn v5.

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