Skip to content

Add babel-plugin-transform-es2015-spread #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2016
Merged

Add babel-plugin-transform-es2015-spread #28

merged 1 commit into from
Nov 8, 2016

Conversation

cheton
Copy link
Contributor

@cheton cheton commented Nov 8, 2016

Webpack throws an error when requiring write-file-webpack-plugin@3.4.1. The generated file didn't transform ...append into ES5 syntax:

dist/index.js

console.log(_chalk2.default.dim('[' + (0, _moment2.default)().format('HH:mm:ss') + '] [write-file-webpack-plugin]'), 
...append);

With ES2015 spread plugin, it will produce correct result like this:

(_console = console).log.apply(_console, [_chalk2.default.dim('[' + (0, _moment2.default)().format('HH:   mm:ss') + '] [write-file-webpack-plugin]')].concat(append));};

@gajus gajus merged commit eee86dd into gajus:master Nov 8, 2016
@gajus
Copy link
Owner

gajus commented Nov 8, 2016

https://github.com/gajus/write-file-webpack-plugin/tree/v3.4.2

Copy link

@YoutacRandS-VA YoutacRandS-VA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants