You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes look like the adding or removing of three lines of whitespace, and the adding or removing of these lines:
/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cadf");
/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("551c");
/* harmony import */ var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var core_js_modules_es7_promise_finally__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("097d");
/* harmony import */ var core_js_modules_es7_promise_finally__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_promise_finally__WEBPACK_IMPORTED_MODULE_2__);
For context of why this matters: I want npx vue-cli-service build to not modify the output files if the input files have not changed. That's both because I want to keep the build artifacts in source control and have a test server check if they are up to date, and I don't want every deploy to break the hashes on cached resources.
In the linked repo, the default imports injected by babel-preset-app randomly appear and disappear on consecutive runs. There are also three lines of whitespace that randomly appear and disappear.
The issue is specific to multipage apps that import libraries across entrypoints. My example repo has 3 entrypoints that collectively import 5 libraries, which is based on the real code where I found this issue. If I simplify the repro further, I find the problem still happens but more intermittently.
Initial debugging: I included a commented-out workaround in babel.config.js that disables the default polyfills. This does avoid the issue if you don't need polyfills, but I don't have any idea what the underlying issue is.
The text was updated successfully, but these errors were encountered:
Version
3.1.1
Reproduction link
https://github.com/jcushman/vue_cli_polyfills_bug
Node and OS info
Node 11.1.0 / npm 6.4.1 / OS X 10.12.6
Steps to reproduce
npm i
)sudo rm -r node_modules/.cache/; npx vue-cli-service build; git status
What is expected?
git status
should printOn branch master; nothing to commit, working tree clean
, as dist/ files are in source control and src/ has not changed.What is actually happening?
About half the time,
git status
reports files modified:The changes look like the adding or removing of three lines of whitespace, and the adding or removing of these lines:
For context of why this matters: I want
npx vue-cli-service build
to not modify the output files if the input files have not changed. That's both because I want to keep the build artifacts in source control and have a test server check if they are up to date, and I don't want every deploy to break the hashes on cached resources.In the linked repo, the default imports injected by
babel-preset-app
randomly appear and disappear on consecutive runs. There are also three lines of whitespace that randomly appear and disappear.The issue is specific to multipage apps that import libraries across entrypoints. My example repo has 3 entrypoints that collectively import 5 libraries, which is based on the real code where I found this issue. If I simplify the repro further, I find the problem still happens but more intermittently.
Initial debugging: I included a commented-out workaround in
babel.config.js
that disables the default polyfills. This does avoid the issue if you don't need polyfills, but I don't have any idea what the underlying issue is.The text was updated successfully, but these errors were encountered: