Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6844 from swederik/issue-6843
Add handling for devtool source-map with library specified as Object
- Loading branch information
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
it("should compile successfully when output.library is an object of type:name", function() {}); |
11 changes: 11 additions & 0 deletions
11
test/configCases/source-map/object-as-output-library/webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
devtool: "source-map", | ||
output: { | ||
library: { | ||
root: "[name]", | ||
amd: "[name]", | ||
commonjs: "[name]" | ||
}, | ||
libraryTarget: "umd" | ||
} | ||
}; |