Skip to content

Commit 4b08eea

Browse files
MachinisteWebchrisvfritz
authored andcommitted
[Doc EN]: Some consistency changes (vuejs#146)
* Some consistency changes Signed-off-by: Bruno Lesieur <[email protected]> * Update PR Signed-off-by: Bruno Lesieur <[email protected]>
1 parent d0fd00d commit 4b08eea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

en/non-node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Usage in non-Node.js Environments
22

3-
The default build of `vue-server-renderer` assumes a Node.js environment, which makes it unusable in alternative JavaScript environments such as [php-v8js](https://github.com/phpv8/v8js) or [Nashorn](https://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/). In 2.5 we have shipped a build in `vue-server-renderer/basic.js` that is largely environment-agnostic, which makes it usable in the environments mentioned above.
3+
The default build of `vue-server-renderer` assumes a Node.js environment, which makes it unusable in alternative JavaScript environments such as [PHP V8Js](https://github.com/phpv8/v8js) or [Oracle Nashorn](https://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/). In 2.5+ we have shipped a build in `vue-server-renderer/basic.js` that is largely environment-agnostic, which makes it usable in the environments mentioned above.
44

55
For both environments, it is necessary to first prepare the environment by mocking the `global` and `process` objects, with `process.env.VUE_ENV` set to `"server"`, and `process.env.NODE_ENV` set to `"development"` or `"production"`.
66

@@ -34,7 +34,7 @@ var vm = new Vue({
3434
}
3535
})
3636

37-
// exposed by vue-server-renderer/basic.js
37+
// exposed by `vue-server-renderer/basic.js`
3838
renderVueComponentToString(vm, (err, res) => {
3939
print(res)
4040
})

0 commit comments

Comments
 (0)