Skip to content

Commit 4cf710e

Browse files
committed
update ssr package
1 parent 646061f commit 4cf710e

File tree

10 files changed

+3193
-3008
lines changed

10 files changed

+3193
-3008
lines changed

benchmarks/ssr/renderToStream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const Vue = require('../../dist/vue.common.js')
4-
const createRenderer = require('../../packages/vue-server-renderer')
4+
const createRenderer = require('../../packages/vue-server-renderer').createRenderer
55
const renderToStream = createRenderer().renderToStream
66
const gridComponent = require('./common.js')
77

benchmarks/ssr/renderToString.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const Vue = require('../../dist/vue.common.js')
4-
const createRenderer = require('../../packages/vue-server-renderer')
4+
const createRenderer = require('../../packages/vue-server-renderer').createRenderer
55
const renderToString = createRenderer().renderToString
66
const gridComponent = require('./common.js')
77

build/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var builds = [
7373
entry: 'src/entries/web-server-renderer.js',
7474
format: 'cjs',
7575
external: ['stream', 'entities'],
76-
out: 'packages/vue-server-renderer/index.js'
76+
out: 'packages/vue-server-renderer/create-renderer.js'
7777
}
7878
]
7979

build/webpack.ssr.dev.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ var path = require('path')
22
var alias = require('./alias')
33

44
module.exports = {
5+
target: 'node',
56
entry: path.resolve(__dirname, 'webpack.ssr.dev.entry.js'),
67
target: 'node',
78
output: {
89
path: path.resolve(__dirname, '../packages/vue-server-renderer'),
9-
filename: 'index.js',
10+
filename: 'create-renderer.js',
1011
libraryTarget: 'commonjs2'
1112
},
1213
resolve: {

0 commit comments

Comments
 (0)