Skip to content

Commit

Permalink
build: build 2.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Sep 14, 2017
1 parent a2f73f2 commit a32490f
Show file tree
Hide file tree
Showing 13 changed files with 7,633 additions and 82 deletions.
4 changes: 2 additions & 2 deletions dist/vue.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.4.3
* Vue.js v2.4.4
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -4724,7 +4724,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
}
});

Vue$3.version = '2.4.3';
Vue$3.version = '2.4.4';

/* */

Expand Down
4 changes: 2 additions & 2 deletions dist/vue.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.4.3
* Vue.js v2.4.4
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -4722,7 +4722,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
}
});

Vue$3.version = '2.4.3';
Vue$3.version = '2.4.4';

/* */

Expand Down
4 changes: 2 additions & 2 deletions dist/vue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.4.3
* Vue.js v2.4.4
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -4713,7 +4713,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
}
});

Vue$3.version = '2.4.3';
Vue$3.version = '2.4.4';

/* */

Expand Down
4 changes: 2 additions & 2 deletions dist/vue.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/vue.runtime.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.4.3
* Vue.js v2.4.4
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -4720,7 +4720,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
}
});

Vue$3.version = '2.4.3';
Vue$3.version = '2.4.4';

/* */

Expand Down
4 changes: 2 additions & 2 deletions dist/vue.runtime.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.4.3
* Vue.js v2.4.4
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -4718,7 +4718,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
}
});

Vue$3.version = '2.4.3';
Vue$3.version = '2.4.4';

/* */

Expand Down
4 changes: 2 additions & 2 deletions dist/vue.runtime.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.4.3
* Vue.js v2.4.4
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -4709,7 +4709,7 @@ Object.defineProperty(Vue$3.prototype, '$ssrContext', {
}
});

Vue$3.version = '2.4.3';
Vue$3.version = '2.4.4';

/* */

Expand Down
4 changes: 2 additions & 2 deletions dist/vue.runtime.min.js

Large diffs are not rendered by default.

30 changes: 14 additions & 16 deletions packages/vue-server-renderer/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7833,27 +7833,25 @@ function createBundleRunner (entry, files, basedir, runInNewContext) {
}
}
userContext._registeredComponents = new Set();

// vue-style-loader styles imported outside of component lifecycle hooks
if (initialContext._styles) {
userContext._styles = deepClone(initialContext._styles);
}
// #6353 after the app is resolved, if the userContext doesn't have a
// styles property, it means the app doesn't have any lifecycle-injected
// styles, so vue-style-loader never defined the styles getter.
// just expose the same styles from the initialContext.
var exposeStylesAndResolve = function (app) {
if (!userContext.hasOwnProperty('styles')) {
userContext.styles = initialContext.styles;
// #6353 ensure "styles" is exposed even if no styles are injected
// in component lifecycles.
// the renderStyles fn is exposed by vue-style-loader >= 3.0.3
var renderStyles = initialContext._renderStyles;
if (renderStyles) {
Object.defineProperty(userContext, 'styles', {
enumerable: true,
get: function get () {
return renderStyles(userContext._styles)
}
});
}
resolve(app);
};

var res = runner(userContext);
if (typeof res.then === 'function') {
res.then(exposeStylesAndResolve);
} else {
exposeStylesAndResolve(res);
}

resolve(runner(userContext));
});
}
}
Expand Down
Loading

0 comments on commit a32490f

Please sign in to comment.