mirror of https://github.com/webpack/webpack.git
Merge pull request #7184 from byzyk/fix/allow-array-in-lib-root
fix: allow array of strings for `output.library.root`
This commit is contained in:
commit
d5a648b28a
|
|
@ -492,7 +492,14 @@
|
|||
"properties": {
|
||||
"root": {
|
||||
"description": "Name of the property exposed globally by a UMD library",
|
||||
"type": "string"
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/common.arrayOfStringValues"
|
||||
}
|
||||
]
|
||||
},
|
||||
"amd": {
|
||||
"description": "Name of the exposed AMD library in the UMD",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
it("should run", function() {
|
||||
|
||||
});
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
module.exports = {
|
||||
output: {
|
||||
libraryTarget: "umd",
|
||||
library: {
|
||||
root: ["test", "library"],
|
||||
amd: "test-library",
|
||||
commonjs: "test-library"
|
||||
}
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue