Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enable oxc_resolver in webpack tests #4374

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions webpack-test/ConfigTestCases.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ const describeCases = config => {
// path.resolve(__dirname, "../node_modules")
// ];
// }
if (!options.experiments) options.experiments = {};
if (!options.experiments.rspackFuture) options.experiments.rspackFuture = {};
options.experiments.rspackFuture.newResolver = true;
});
testConfig = {
findBundle: function(i, options) {
Expand Down
5 changes: 4 additions & 1 deletion webpack-test/TestCases.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ const describeCases = config => {
// RSPACK exclusive: Rspack enables `css` by default.
// Turning off here to fallback to webpack's default css processing logic.
css: false,
...(config.module ? { outputModule: true } : {})
...(config.module ? { outputModule: true } : {}),
rspackFuture: {
newResolver: true
}
},
infrastructureLogging: config.cache && {
debug: true,
Expand Down
3 changes: 0 additions & 3 deletions webpack-test/cases/resolving/browser-field/test.filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

module.exports = () => {return false}


Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

module.exports = () => {return false}


3 changes: 0 additions & 3 deletions webpack-test/cases/resolving/context/test.filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

module.exports = () => {return false}


3 changes: 0 additions & 3 deletions webpack-test/cases/resolving/data-uri/test.filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

module.exports = () => {return false}


3 changes: 0 additions & 3 deletions webpack-test/cases/resolving/issue-11555/test.filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

module.exports = () => {return false}


3 changes: 0 additions & 3 deletions webpack-test/cases/resolving/issue-2986/test.filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

module.exports = () => {return false}


5 changes: 1 addition & 4 deletions webpack-test/cases/resolving/query/test.filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

module.exports = () => {return false}


module.exports = () => {return true}
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

module.exports = () => {return false}


Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return false}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return false}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return false}
2 changes: 1 addition & 1 deletion webpack-test/configCases/resolve/fallback/test.filter.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return true}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return false}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return false}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return true}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return false}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return true}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return false}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = () => {return false}
module.exports = () => {return false}
Loading