Skip to content

es modules contains top level this #714

@TrySound

Description

@TrySound

bundler bug

Overview of the problem

I'm using re-resizable version 6.9.0

I am sure this issue is not a duplicate? yes

Description

Compiled with tsc es modules contains top level this which does not exist in es module. Rollup for example warns about it's usage. TS users usually recommend switching transpilation to babel.

Steps to Reproduce

https://unpkg.com/browse/re-resizable@6.9.0/lib/index.js

https://codesandbox.io/s/ll587k677z

Expected behavior

No this

Actual behavior

this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions