Closed twada closed 8 years ago
To write tests in ES6 with babel, please use babel-plugin-espower or espower-babel (espower-babel uses babel-plugin-espower internally).
webpack-espower-loader (and the other instrumentors) transforms code after babel, which does not work since babel's output has changed.
babel-plugin-espower works as a babel plugin and runs before babel's transformation, so it works as expected.
I confirmed that it works. Thnaks !! :100:
Thank you for reporting! :+1:
To write tests in ES6 with babel, please use babel-plugin-espower or espower-babel (espower-babel uses babel-plugin-espower internally).
webpack-espower-loader (and the other instrumentors) transforms code after babel, which does not work since babel's output has changed.
babel-plugin-espower works as a babel plugin and runs before babel's transformation, so it works as expected.