Skip to content

delete statement dropped in the output #352

Description

@pygy
//main.js
export default function foo(o) {}

foo.bar = 8;

delete foo.bar;

rollup -i main.js > bundle.js

//bundle.js
function foo(o) {}

foo.bar = 8;
// note the conspicuous absence of `delete foo.bar;`.
export default foo;

Is this expected?

The test case is available in the drops-delete branch of my rollup playground.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions