Skip to content

Commit 914fe2c

Browse files
committed
Merge branch 'master' of github.com:webpack/webpack into examples-dll-readme-update2
2 parents fa2c16a + d7f3039 commit 914fe2c

File tree

6 files changed

+48
-30
lines changed

6 files changed

+48
-30
lines changed

examples/common-chunk-and-vendor-chunk/README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ This example shows how to create an explicit vendor chunk as well as a common ch
33
To better understand, here are the entry points and which utility modules they depend on:
44

55
- `pageA`
6-
- `utility1`
7-
- `utility2`
6+
- `utility1`
7+
- `utility2`
88
- `pageB`
9-
- `utility2`
10-
- `utility3`
9+
- `utility2`
10+
- `utility3`
1111
- `pageC`
12-
- `utility2`
13-
- `utility3`
12+
- `utility2`
13+
- `utility3`
1414

1515
Given this configuration, webpack will produce the following bundles:
1616

1717
- `vendor`
18-
- webpack runtime
19-
- `vendor1`
20-
- `vendor2`
18+
- webpack runtime
19+
- `vendor1`
20+
- `vendor2`
2121
- `common`
22-
- `utility2`
23-
- `utility3`
22+
- `utility2`
23+
- `utility3`
2424
- `pageA`
25-
- `pageA`
26-
- `utility1`
25+
- `pageA`
26+
- `utility1`
2727
- `pageB`
28-
- `pageB`
28+
- `pageB`
2929
- `pageC`
30-
- `pageC`
30+
- `pageC`
3131

3232
With this bundle configuration, you would load your third party libraries, then your common application code, then your page-specific application code.
3333

examples/common-chunk-and-vendor-chunk/template.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ This example shows how to create an explicit vendor chunk as well as a common ch
33
To better understand, here are the entry points and which utility modules they depend on:
44

55
- `pageA`
6-
- `utility1`
7-
- `utility2`
6+
- `utility1`
7+
- `utility2`
88
- `pageB`
9-
- `utility2`
10-
- `utility3`
9+
- `utility2`
10+
- `utility3`
1111
- `pageC`
12-
- `utility2`
13-
- `utility3`
12+
- `utility2`
13+
- `utility3`
1414

1515
Given this configuration, webpack will produce the following bundles:
1616

1717
- `vendor`
18-
- webpack runtime
19-
- `vendor1`
20-
- `vendor2`
18+
- webpack runtime
19+
- `vendor1`
20+
- `vendor2`
2121
- `common`
22-
- `utility2`
23-
- `utility3`
22+
- `utility2`
23+
- `utility3`
2424
- `pageA`
25-
- `pageA`
26-
- `utility1`
25+
- `pageA`
26+
- `utility1`
2727
- `pageB`
28-
- `pageB`
28+
- `pageB`
2929
- `pageC`
30-
- `pageC`
30+
- `pageC`
3131

3232
With this bundle configuration, you would load your third party libraries, then your common application code, then your page-specific application code.
3333

lib/DelegatedModule.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ class DelegatedModule extends Module {
6767
str += `[${JSON.stringify(this.request)}]`;
6868
break;
6969
}
70+
71+
str += ";";
7072
}
7173

7274
if(this.useSourceMap) {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default "ECMAScript 2015";
2+
export const alias = "ECMAScript Harmony";
3+
export const year = 2015;

test/configCases/plugins/provide-plugin/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,12 @@ it("should provide a module for a property request", function() {
2525
var x = dddeeefff;
2626
x.should.be.eql("fff");
2727
});
28+
29+
it("should provide ES2015 modules", function() {
30+
(es2015.default).should.be.eql("ECMAScript 2015");
31+
(es2015.alias).should.be.eql("ECMAScript Harmony");
32+
(es2015.year).should.be.eql(2015);
33+
(es2015_name).should.be.eql("ECMAScript 2015");
34+
(es2015_alias).should.be.eql("ECMAScript Harmony");
35+
(es2015_year).should.be.eql(2015);
36+
});

test/configCases/plugins/provide-plugin/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ module.exports = {
66
"bbb.ccc": "./bbbccc",
77
"dddeeefff": ["./ddd", "eee", "3-f"],
88
"process.env.NODE_ENV": "./env",
9+
es2015: "./harmony",
10+
es2015_name: ["./harmony", "default"],
11+
es2015_alias: ["./harmony", "alias"],
12+
es2015_year: ["./harmony", "year"],
913
})
1014
]
1115
};

0 commit comments

Comments
 (0)