Closed HastingsGreer closed 5 years ago
We use the spread operator in many places in this library, so it will be difficult to keep future developers from adding it indiscriminately. Seems like it would be better to solve your downstream build issue, or as @subdavis has suggested in the past, ship a transpiled version of this library.
EDIT: Of course, you can also use the ES5 UMD module that is in the dist directory of the published package, but then you won't get tree shaking.
@HastingsGreer what version of vue-template-es2015-compiler are you using?
Also if you post the error message you're seeing it could help diagnose your build configuration problem.
I'm going to close this as rejection of this particular change, but feel free to continue to discuss the issue, or if there's some other fix we should do, please open an issue.
We had significant issues with vue-template-es2015-compiler versioning, that came down to (unsuccessfully) allowing spread syntax to work in this file. Could we just change it to an Object.assign? Thanks!