FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
webpack/examples/code-splitting-harmony/example.js at master · codeinvain/webpack · GitHub
codeinvain
webpack
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
webpack
/
examples
/
code-splitting-harmony
/
example.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (10 loc) · 256 Bytes
Breadcrumbs
webpack
/
examples
/
code-splitting-harmony
/
example.js
Copy path
File metadata and controls
13 lines (10 loc) · 256 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
import
a
from
"a"
;
System
.
import
(
"b"
)
.
then
(
function
(
b
)
{
console
.
log
(
"b loaded"
,
b
)
;
}
)
function
loadC
(
name
)
{
return
System
.
import
(
"c/"
+
name
)
}
Promise
.
all
(
[
loadC
(
"1"
)
,
loadC
(
"2"
)
]
)
.
then
(
function
(
arr
)
{
console
.
log
(
"c/1 and c/2 loaded"
,
arr
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL