jeffling / wallaby-webpack

webpack preprocessor for wallabyjs
25 stars 8 forks source link

ES6 import syntax not working in spec file #7

Closed okonet closed 9 years ago

okonet commented 9 years ago

ES6 import in the spec file doesn't get resolved to the file.

Rewriting using require works fine.

ArtemGovorov commented 9 years ago

Can't reproduce the issue. I have created this sample repo with ES6 import (via babel), can you have a look to see how is it different from your case?

okonet commented 9 years ago

Seems like export default syntax is the problem. I've changed the source file in the sample repo to be:

export default class Person {
  constructor(name) {
    this.name = name;
  }
}

and it failed.

okonet commented 9 years ago

Also it seems to be webpack unrelated? Should it be moved to the wallaby-public?

ArtemGovorov commented 9 years ago

@okonet Thanks, I will have a look. Regarding the issue, yep it should ideally be in wallaby-public, but I don't know how to move issues on GitHub between repos, is it even possible?

okonet commented 9 years ago

I've reported it again here: https://github.com/wallabyjs/public/issues/55