GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add requested changes from PR comments · webpack/webpack@57c6c43

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • WebpackOptionsDefaulter.js
  • test/configCases/source-map/array-as-output-library
    • index.js
    • webpack.config.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/WebpackOptionsDefaulter.js‎

Copy file name to clipboardExpand all lines: lib/WebpackOptionsDefaulter.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
129129
});
130130
this.set("output.devtoolNamespace", "make", options => {
131131
if (Array.isArray(options.output.library))
132-
return [].concat(options.output.library).join(".");
132+
return options.output.library.join(".");
133133
return options.output.library || "";
134134
});
135135
this.set("output.libraryTarget", "var");
Collapse file

‎test/configCases/source-map/array-as-output-library/index.js‎

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
it("should compile successfully when output.library is an array of strings", function() {});
Collapse file

‎test/configCases/source-map/array-as-output-library/webpack.config.js‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
devtool: "source-map",
3+
output: {
4+
filename: "MyLibrary.[name].js",
5+
library: ["Foo", "[name]"]
6+
}
7+
};

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.