Skip to content

error: Cannot read property 'isIfStatement' of null #850

@eeve

Description

@eeve

Bug Report

Current Behavior
babel-preset-minify
Cannot read property 'isIfStatement' of null

Input Code
https://github.com/eeve/test.v2

// module-a.js
export default function () {
    return 1;
}

Babel Configuration (.babelrc, package.json, cli command)

{
  "presets": [
    [
      "@babel/preset-env",
      {
        "debug": true,
        "useBuiltIns": "usage",
        "targets": {
          "node": 6
        }
      }
    ],
    "minify"
  ],
  "sourceMaps": "inline"
}

Environment

  • Babel version(s): v7.0.0-beta.47
  • Node/npm version: Node 8.9.4/npm 6.0.0
  • Monorepo: no
  • How you are using Babel: cli

Additional context/Screenshots
20180516111516.png

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