We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0331322 commit 7714953Copy full SHA for 7714953
test/configCases/resolving/issue-12386/index.js
@@ -0,0 +1,3 @@
1
+it("should be possible to import an absolute path", () => {
2
+ require(__filename);
3
+});
test/configCases/resolving/issue-12386/webpack.config.js
@@ -0,0 +1,14 @@
+module.exports = {
+ resolve: {
+ plugins: [
4
+ {
5
+ apply(resolver) {
6
+ resolver.hooks.file.tap("Test", (request, resolverContext) => {
7
+ if (/test.configCases.*test.configCases/.test(request.path))
8
+ throw new Error("Trying to resolve outside of test cases");
9
+ });
10
+ }
11
12
+ ]
13
14
+};
0 commit comments