-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test bundleRenderer bundle format support + source map
- Loading branch information
Showing
8 changed files
with
137 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
render (h) { | ||
return h('div', 'async') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Vue from '../../../dist/vue.runtime.common.js' | ||
|
||
// async component! | ||
const Foo = () => import('./comp') | ||
|
||
export default context => { | ||
return new Promise(resolve => { | ||
context.msg = 'hello' | ||
const vm = new Vue({ | ||
render (h) { | ||
return h('div', [ | ||
context.url, | ||
h(Foo) | ||
]) | ||
} | ||
}) | ||
|
||
// simulate router.onReady | ||
Foo().then(comp => { | ||
// resolve now to make the render sync | ||
Foo.resolved = Vue.extend(comp) | ||
resolve(vm) | ||
}) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -256,13 +256,13 @@ [email protected], async@^1.4.0: | |
version "1.5.2" | ||
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" | ||
|
||
[email protected], async@^2.0.0: | ||
[email protected]: | ||
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/async/-/async-2.0.1.tgz#b709cc0280a9c36f09f4536be823c838a9049e25" | ||
dependencies: | ||
lodash "^4.8.0" | ||
|
||
async@^2.1.2: | ||
async@^2.0.0, async@^2.1.2: | ||
version "2.1.4" | ||
resolved "https://registry.yarnpkg.com/async/-/async-2.1.4.tgz#2d2160c7788032e4dd6cbe2502f1f9a2c8f6cde4" | ||
dependencies: | ||
|
@@ -459,6 +459,10 @@ babel-plugin-syntax-class-properties@^6.8.0: | |
version "6.13.0" | ||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" | ||
|
||
babel-plugin-syntax-dynamic-import@^6.18.0: | ||
version "6.18.0" | ||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da" | ||
|
||
babel-plugin-syntax-flow@^6.18.0, babel-plugin-syntax-flow@^6.8.0: | ||
version "6.18.0" | ||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" | ||
|
@@ -4903,6 +4907,10 @@ void-elements@^2.0.0: | |
version "2.0.1" | ||
resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec" | ||
|
||
vue-ssr-webpack-plugin@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/vue-ssr-webpack-plugin/-/vue-ssr-webpack-plugin-1.0.0.tgz#00b35a6b7d23689c65c1af838ef416b0a772b8f5" | ||
|
||
watchpack@^1.2.0: | ||
version "1.2.0" | ||
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.2.0.tgz#15d4620f1e7471f13fcb551d5c030d2c3eb42dbb" | ||
|