-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Inconsistent builds #4002
Comments
Additional details. About page chunk with the normal build: (4767e3f41bc29ddaa1e5.js / 494 bytes) (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{124:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",[this._v("Hi from "+this._s(this.name))]),this._v(" "),e("nuxt-link",{attrs:{to:"/"}},[this._v("Home page")])],1)};i._withStripped=!0;var a={asyncData:function(){return{name:"client"}},head:{title:"About page"}},s=n(17),o=Object(s.a)(a,i,[],!1,null,null,null);o.options.__file="about.vue";e.default=o.exports}}]); With production env: (06cd332c6aa0e8b0c1f0.js / 467 bytes) (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{124:function(t,e,n){"use strict";n.r(e);var i={asyncData:function(){return{name:"client"}},head:{title:"About page"}},s=n(17),a=Object(s.a)(i,function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("p",[this._v("Hi from "+this._s(this.name))]),this._v(" "),e("nuxt-link",{attrs:{to:"/"}},[this._v("Home page")])],1)},[],!1,null,null,null);a.options.__file="about.vue";e.default=a.exports}}]); |
This is probably because of not passing proper options to the |
s.options.__file present inboth normal and production |
@aldarund It seems for production builds, a safe file name is being added. (Something intentional) Related PR: vuejs/vue-loader#1368 |
Closing this issue as #4003's workaround is enough and no action would be required from us but upgrading vue-loader. |
Meta
Version
v2.0.0
Reproduction link
dev
Steps to reproduce
./bin/nuxt build examples/hello-world
NODE_ENV=production ./bin/nuxt build examples/hello-world
What is expected?
Results should be the same.
What is actually happening?
Chunk names are different.
Also things likes.options.__file
should be stripped but it is not.Additional comments?
Normal build:
When setting
NODE_ENV=production
:The text was updated successfully, but these errors were encountered: