Closed
Description
Version
3.0.4
Reproduction link
https://github.com/diachedelic/vue-cli-transpile-dependencies-repro
Node and OS info
Node 8.9.0 / yarn 1.9.4 / MacOS 10.13.6 / Google Chrome 69.0.3497.100 (Official Build) (64-bit)
Steps to reproduce
git clone git@github.com:diachedelic/vue-cli-transpile-dependencies-repro.git
cd vue-cli-transpile-dependencies-repro
yarn
git checkout transpile-dependencies-simple
yarn add file:dep # refresh dep
yarn serve --open
# see compiler warning
# see error in browser console
git checkout transpile-dependencies-obj-spread
yarn add file:dep # refresh dep
yarn serve --open
# see error in browser console
What is expected?
transpileDependencies
should transpile any listed dependencies to ES5 without compiler warnings or runtime errors.
What is actually happening?
I am seeing two distinct runtime errors:
Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
TypeError: _objectSpread is not a function
See README.md for full stack traces etc.
I am upgrading a couple of PWAs from their modified vue-cli v2 templates, to use vue-cli v3 (so I don't have to maintain a webpack config). I had dependencies transpiling ok using my own webpack config, and I want to get that behaviour back.
Check out README.md on repro's master branch for a full walkthrough.
Metadata
Metadata
Assignees
Labels
No labels