ember-cli / ember-cli/babel-plugin-filter-imports

Bug: cannot find path for removal

Open
#124 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Hi! This is a really dope plugin!!

Today I faced the following issue: Cannot find the path for removal, please open issue with code example and the stack trace on Github: https://github.com/ember-cli/babel-plugin-filter-imports

It happened with the following code:

```js
import VueTypes from "vue-types";

const props = {
name: VueTypes.string.isRequired
};

export default {
name: "App",
props,
};
```

The following code works:

```js
import VueTypes from "vue-types";

let props;

props = {
name: VueTypes.string.isRequired
};

export default {
name: "App",
props,
};
```

Repro code: https://codesandbox.io/s/rrno774wq4

Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.