-
-
Notifications
You must be signed in to change notification settings - Fork 470
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added
modules.namedExport
(#485)
- Loading branch information
1 parent
6e54e4f
commit 15889db
Showing
15 changed files
with
556 additions
and
36 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
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
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,93 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`"modules" option should work with the "lazySingletonStyleTag" inject type: DOM 1`] = ` | ||
"<!DOCTYPE html><html><head> | ||
<title>style-loader test</title> | ||
<style id=\\"existing-style\\">.existing { color: yellow }</style> | ||
</head> | ||
<body> | ||
<h1>Body</h1> | ||
<div class=\\"target\\"></div> | ||
<iframe class=\\"iframeTarget\\"></iframe> | ||
<div class=\\"KDvN8WTqb8V1KZHXZP-v\\">Water</div><div class=\\"_2ytpV86orKhgjYu_KpCdi _2SqzNMl3NVNNilgJp7bbug\\">Ground</div></body></html>" | ||
`; | ||
exports[`"modules" option should work with the "lazySingletonStyleTag" inject type: errors 1`] = `Array []`; | ||
exports[`"modules" option should work with the "lazySingletonStyleTag" inject type: warnings 1`] = `Array []`; | ||
exports[`"modules" option should work with the "lazyStyleTag" inject type: DOM 1`] = ` | ||
"<!DOCTYPE html><html><head> | ||
<title>style-loader test</title> | ||
<style id=\\"existing-style\\">.existing { color: yellow }</style> | ||
</head> | ||
<body> | ||
<h1>Body</h1> | ||
<div class=\\"target\\"></div> | ||
<iframe class=\\"iframeTarget\\"></iframe> | ||
<div class=\\"KDvN8WTqb8V1KZHXZP-v\\">Water</div><div class=\\"_2ytpV86orKhgjYu_KpCdi _2SqzNMl3NVNNilgJp7bbug\\">Ground</div></body></html>" | ||
`; | ||
exports[`"modules" option should work with the "lazyStyleTag" inject type: errors 1`] = `Array []`; | ||
exports[`"modules" option should work with the "lazyStyleTag" inject type: warnings 1`] = `Array []`; | ||
exports[`"modules" option should work with the "singletonStyleTag" inject type: DOM 1`] = ` | ||
"<!DOCTYPE html><html><head> | ||
<title>style-loader test</title> | ||
<style id=\\"existing-style\\">.existing { color: yellow }</style> | ||
<style>._2SqzNMl3NVNNilgJp7bbug { | ||
background: red; | ||
} | ||
.KDvN8WTqb8V1KZHXZP-v { | ||
background: red; | ||
} | ||
._2ytpV86orKhgjYu_KpCdi { | ||
color: blue; | ||
} | ||
</style></head> | ||
<body> | ||
<h1>Body</h1> | ||
<div class=\\"target\\"></div> | ||
<iframe class=\\"iframeTarget\\"></iframe> | ||
<div class=\\"KDvN8WTqb8V1KZHXZP-v\\">Water</div><div class=\\"_2ytpV86orKhgjYu_KpCdi _2SqzNMl3NVNNilgJp7bbug\\">Ground</div></body></html>" | ||
`; | ||
exports[`"modules" option should work with the "singletonStyleTag" inject type: errors 1`] = `Array []`; | ||
exports[`"modules" option should work with the "singletonStyleTag" inject type: warnings 1`] = `Array []`; | ||
exports[`"modules" option should work with the "styleTag" inject type: DOM 1`] = ` | ||
"<!DOCTYPE html><html><head> | ||
<title>style-loader test</title> | ||
<style id=\\"existing-style\\">.existing { color: yellow }</style> | ||
<style>._2SqzNMl3NVNNilgJp7bbug { | ||
background: red; | ||
} | ||
</style><style>.KDvN8WTqb8V1KZHXZP-v { | ||
background: red; | ||
} | ||
._2ytpV86orKhgjYu_KpCdi { | ||
color: blue; | ||
} | ||
</style></head> | ||
<body> | ||
<h1>Body</h1> | ||
<div class=\\"target\\"></div> | ||
<iframe class=\\"iframeTarget\\"></iframe> | ||
<div class=\\"KDvN8WTqb8V1KZHXZP-v\\">Water</div><div class=\\"_2ytpV86orKhgjYu_KpCdi _2SqzNMl3NVNNilgJp7bbug\\">Ground</div></body></html>" | ||
`; | ||
exports[`"modules" option should work with the "styleTag" inject type: errors 1`] = `Array []`; | ||
exports[`"modules" option should work with the "styleTag" inject type: warnings 1`] = `Array []`; |
Oops, something went wrong.