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 — Merge pull request #7184 from byzyk/fix/allow-array-in-lib-root · webpack/webpack@d5a648b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • schemas
    • WebpackOptions.json
  • test/configCases/library/umd-array
    • index.js
    • webpack.config.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎schemas/WebpackOptions.json‎

Copy file name to clipboardExpand all lines: schemas/WebpackOptions.json
+8-1Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,14 @@
492492
"properties": {
493493
"root": {
494494
"description": "Name of the property exposed globally by a UMD library",
495-
"type": "string"
495+
"anyOf": [
496+
{
497+
"type": "string"
498+
},
499+
{
500+
"$ref": "#/definitions/common.arrayOfStringValues"
501+
}
502+
]
496503
},
497504
"amd": {
498505
"description": "Name of the exposed AMD library in the UMD",
Collapse file

‎test/configCases/library/umd-array/index.js‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
it("should run", function() {
2+
3+
});
Collapse file

‎test/configCases/library/umd-array/webpack.config.js‎

Copy file name to clipboard
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
output: {
3+
libraryTarget: "umd",
4+
library: {
5+
root: ["test", "library"],
6+
amd: "test-library",
7+
commonjs: "test-library"
8+
}
9+
}
10+
};

0 commit comments

Comments
0 (0)
You are visitor 01402622 — 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.