Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: webpack_runner.js

Issue 29602573: Issue 6020 - Avoid including (webpack)/buildin/global.js in bundles (Closed)
Patch Set: Created Nov. 9, 2017, 5:55 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 rules: [{ 52 rules: [{
53 include: path.join(__dirname, "info.js"), 53 include: path.join(__dirname, "info.js"),
54 use: ["info-loader"] 54 use: ["info-loader"]
55 }] 55 }]
56 }, 56 },
57 entry: entry_points, 57 entry: entry_points,
58 output: { 58 output: {
59 path: path.resolve(""), 59 path: path.resolve(""),
60 filename: bundle_name 60 filename: bundle_name
61 }, 61 },
62 node: {
63 global: false
64 },
62 resolve: { 65 resolve: {
63 modules: resolve_paths, 66 modules: resolve_paths,
64 alias: { 67 alias: {
65 // To use our custom loader for the info module we must first set up 68 // To use our custom loader for the info module we must first set up
66 // an alias to a file that exists. 69 // an alias to a file that exists.
67 info$: path.join(__dirname, "info.js"), 70 info$: path.join(__dirname, "info.js"),
68 // Prevent builtin Node.js modules from being used instead of our own 71 // Prevent builtin Node.js modules from being used instead of our own
69 // when the names clash. Once relative paths are used this won't be 72 // when the names clash. Once relative paths are used this won't be
70 // necessary. 73 // necessary.
71 url$: "url.js", 74 url$: "url.js",
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 included.add(path.relative(extension_path, module.name)); 162 included.add(path.relative(extension_path, module.name));
160 } 163 }
161 } 164 }
162 } 165 }
163 output.included = Array.from(included); 166 output.included = Array.from(included);
164 167
165 console.log(JSON.stringify(output)); 168 console.log(JSON.stringify(output));
166 } 169 }
167 }); 170 });
168 }); 171 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld