-
-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
110 changed files
with
455 additions
and
464 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,6 @@ | ||
import defineTest from "@webpack-cli/utils/defineTest"; | ||
import { join } from "path"; | ||
|
||
defineTest(join(__dirname, ".."), "bannerPlugin", "bannerPlugin-0"); | ||
defineTest(join(__dirname, ".."), "bannerPlugin", "bannerPlugin-1"); | ||
defineTest(join(__dirname, ".."), "bannerPlugin", "bannerPlugin-2"); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
packages/migrate/commonsChunkPlugin/__tests__/commonsChunkPlugin.test.ts
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,30 @@ | ||
import defineTest from "@webpack-cli/utils/defineTest"; | ||
import { join } from "path"; | ||
|
||
defineTest(join(__dirname, ".."), "commonsChunkPlugin", "commonsChunkPlugin-0"); | ||
defineTest(join(__dirname, ".."), "commonsChunkPlugin", "commonsChunkPlugin-1"); | ||
defineTest(join(__dirname, ".."), "commonsChunkPlugin", "commonsChunkPlugin-2"); | ||
defineTest(join(__dirname, ".."), "commonsChunkPlugin", "commonsChunkPlugin-3"); | ||
defineTest(join(__dirname, ".."), "commonsChunkPlugin", "commonsChunkPlugin-4"); | ||
defineTest(join(__dirname, ".."), "commonsChunkPlugin", "commonsChunkPlugin-5"); | ||
defineTest( | ||
join(__dirname, ".."), | ||
"commonsChunkPlugin", | ||
"commonsChunkPlugin-6a", | ||
); | ||
defineTest( | ||
join(__dirname, ".."), | ||
"commonsChunkPlugin", | ||
"commonsChunkPlugin-6b", | ||
); | ||
defineTest( | ||
join(__dirname, ".."), | ||
"commonsChunkPlugin", | ||
"commonsChunkPlugin-6c", | ||
); | ||
defineTest( | ||
join(__dirname, ".."), | ||
"commonsChunkPlugin", | ||
"commonsChunkPlugin-6d", | ||
); | ||
defineTest(join(__dirname, ".."), "commonsChunkPlugin", "commonsChunkPlugin-7"); |
15 changes: 0 additions & 15 deletions
15
packages/migrate/commonsChunkPlugin/commonsChunkPlugin.test.js
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
packages/migrate/extractTextPlugin/__snapshots__/extractTextPlugin.test.js.snap
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
packages/migrate/extractTextPlugin/__testfixtures__/extractTextPlugin.input.js
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
packages/migrate/extractTextPlugin/__tests__/__snapshots__/extractTextPlugin.test.ts.snap
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,21 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`extractTextPlugin transforms correctly 1`] = ` | ||
"const ExtractTextPlugin = require(\\"extract-text-webpack-plugin\\"); | ||
module.exports = { | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\\\\.css$/, | ||
use: ExtractTextPlugin.extract({ | ||
fallback: 'style-loader', | ||
use: 'css-loader' | ||
}) | ||
} | ||
] | ||
}, | ||
plugins: [new ExtractTextPlugin(\\"styles.css\\")] | ||
}; | ||
" | ||
`; |
13 changes: 13 additions & 0 deletions
13
packages/migrate/extractTextPlugin/__tests__/__testfixtures__/extractTextPlugin.input.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,13 @@ | ||
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | ||
|
||
module.exports = { | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.css$/, | ||
use: ExtractTextPlugin.extract("style-loader", "css-loader") | ||
} | ||
] | ||
}, | ||
plugins: [new ExtractTextPlugin("styles.css")] | ||
}; |
4 changes: 4 additions & 0 deletions
4
packages/migrate/extractTextPlugin/__tests__/extractTextPlugin.test.ts
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,4 @@ | ||
import defineTest from "@webpack-cli/utils/defineTest"; | ||
import { join } from "path"; | ||
|
||
defineTest(join(__dirname, ".."), "extractTextPlugin"); |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
packages/migrate/loaderOptionsPlugin/__tests__/loaderOptionsPlugin.test.ts
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,22 @@ | ||
import defineTest from "@webpack-cli/utils/defineTest"; | ||
import { join } from "path"; | ||
defineTest( | ||
join(__dirname, ".."), | ||
"loaderOptionsPlugin", | ||
"loaderOptionsPlugin-0", | ||
); | ||
defineTest( | ||
join(__dirname, ".."), | ||
"loaderOptionsPlugin", | ||
"loaderOptionsPlugin-1", | ||
); | ||
defineTest( | ||
join(__dirname, ".."), | ||
"loaderOptionsPlugin", | ||
"loaderOptionsPlugin-2", | ||
); | ||
defineTest( | ||
join(__dirname, ".."), | ||
"loaderOptionsPlugin", | ||
"loaderOptionsPlugin-3", | ||
); |
8 changes: 0 additions & 8 deletions
8
packages/migrate/loaderOptionsPlugin/loaderOptionsPlugin.test.js
This file was deleted.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
...sts__/__testfixtures__/loaders-0.input.ts → ...sts__/__testfixtures__/loaders-0.input.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default [ | ||
module.exports = [ | ||
{ | ||
module: { | ||
loaders: [ | ||
|
2 changes: 1 addition & 1 deletion
2
...sts__/__testfixtures__/loaders-1.input.ts → ...sts__/__testfixtures__/loaders-1.input.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
module.exports = { | ||
module: { | ||
loaders: [ | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...sts__/__testfixtures__/loaders-2.input.ts → ...sts__/__testfixtures__/loaders-2.input.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
module.exports = { | ||
module: { | ||
loaders: [ | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...sts__/__testfixtures__/loaders-3.input.ts → ...sts__/__testfixtures__/loaders-3.input.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
module.exports = { | ||
module: { | ||
preLoaders: [ | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...sts__/__testfixtures__/loaders-4.input.ts → ...sts__/__testfixtures__/loaders-4.input.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
module.exports = { | ||
module: { | ||
postLoaders: [ | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...sts__/__testfixtures__/loaders-5.input.ts → ...sts__/__testfixtures__/loaders-5.input.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
module.exports = { | ||
module: { | ||
loaders: [ | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...sts__/__testfixtures__/loaders-6.input.ts → ...sts__/__testfixtures__/loaders-6.input.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
module.exports = { | ||
module: { | ||
loaders: [ | ||
{ | ||
|
Oops, something went wrong.