Open gklittlejohn opened 2 years ago
I also noticed this issue on my project. Seems like vue-loader uses an absolute path to generate import names.
/***/ "./src/views/DebugConfig.vue":
/*!***********************************!*\
!*** ./src/views/DebugConfig.vue ***!
\***********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _DebugConfig_vue_vue_type_template_id_b0addeaa__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DebugConfig.vue?vue&type=template&id=b0addeaa */ \"./src/views/DebugConfig.vue?vue&type=template&id=b0addeaa\");\n/* harmony import */ var _DebugConfig_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DebugConfig.vue?vue&type=script&lang=js */ \"./src/views/DebugConfig.vue?vue&type=script&lang=js\");\n/* harmony import */ var _opt_openWB_dev_settings_test_openwb_ui_settings_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/vue-loader/dist/exportHelper.js */ \"./node_modules/vue-loader/dist/exportHelper.js\");\n\n\n\n\n;\nconst __exports__ = /*#__PURE__*/(0,_opt_openWB_dev_settings_test_openwb_ui_settings_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(_DebugConfig_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"], [['render',_DebugConfig_vue_vue_type_template_id_b0addeaa__WEBPACK_IMPORTED_MODULE_0__.render],['__file',\"src/views/DebugConfig.vue\"]])\n/* hot reload */\nif (false) {}\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (__exports__);\n\n//# sourceURL=webpack://openwb-ui-settings/./src/views/DebugConfig.vue?");
/***/ }),
The string _opt_openWB_dev_settings_test_openwb_ui_settings_node_modules_vue_loader_dist_exportHelper_js
represents the absolute path in my dev envorinment: /opt/openwb-dev/settings-test/openwb-ui-settings
As a result the hashes of the generated files are different even if the source is identical.
+1
Version
5.0.4
Reproduction link
github.com
Environment info
Steps to reproduce
What is expected?
The output of both builds to be identical.
What is actually happening?
In dist/js folder of the original project:
13,439 app-legacy.7a0997ea.js
19,094 app-legacy.7a0997ea.js.map
13,511 app.f9fe8d15.js
19,637 app.f9fe8d15.js.map
131,082 chunk-vendors-legacy.b2985fc5.js
689,301 chunk-vendors-legacy.b2985fc5.js.map
80,554 chunk-vendors.5405343c.js
420,490 chunk-vendors.5405343c.js.map
In dist/js folder of the copied project:
13,439 app-legacy.7b76f303.js
19,094 app-legacy.7b76f303.js.map
13,511 app.f9fe8d15.js
19,637 app.f9fe8d15.js.map
131,082 chunk-vendors-legacy.7f90cd79.js
689,301 chunk-vendors-legacy.7f90cd79.js.map
80,554 chunk-vendors.5405343c.js
420,490 chunk-vendors.5405343c.js.map