Skip to content

Commit e31f9b6

Browse files
fix: compatibility with the filesystem cache (#896)
1 parent b378046 commit e31f9b6

15 files changed

+1749
-2349
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ Thumbs.db
1717
*.sublime-project
1818
*.sublime-workspace
1919
.nyc_output
20-
test/output
20+
test/outputs

package-lock.json

Lines changed: 1020 additions & 2221 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,30 @@
6363
"semver": "^7.3.2"
6464
},
6565
"devDependencies": {
66-
"@babel/cli": "^7.11.6",
67-
"@babel/core": "^7.11.6",
68-
"@babel/preset-env": "^7.11.5",
66+
"@babel/cli": "^7.12.1",
67+
"@babel/core": "^7.12.3",
68+
"@babel/preset-env": "^7.12.1",
6969
"@commitlint/cli": "^11.0.0",
7070
"@commitlint/config-conventional": "^11.0.0",
7171
"@webpack-contrib/defaults": "^6.3.0",
7272
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
73-
"babel-jest": "^26.5.2",
74-
"bootstrap": "^4.5.2",
73+
"babel-jest": "^26.6.0",
74+
"bootstrap": "^4.5.3",
7575
"bootstrap-sass": "^3.4.1",
7676
"cross-env": "^7.0.2",
77-
"css-loader": "^4.3.0",
77+
"css-loader": "^5.0.0",
7878
"del": "^6.0.0",
7979
"del-cli": "^3.0.1",
80-
"enhanced-resolve": "^5.2.0",
80+
"enhanced-resolve": "^5.3.0",
8181
"eslint": "^7.10.0",
82-
"eslint-config-prettier": "^6.12.0",
82+
"eslint-config-prettier": "^6.14.0",
8383
"eslint-plugin-import": "^2.22.1",
8484
"fibers": "^5.0.0",
8585
"file-loader": "^6.1.0",
8686
"foundation-sites": "^6.6.3",
8787
"husky": "^4.3.0",
88-
"jest": "^26.5.2",
89-
"lint-staged": "^10.4.0",
88+
"jest": "^26.6.0",
89+
"lint-staged": "^10.4.2",
9090
"material-components-web": "^7.0.0",
9191
"memfs": "^3.2.0",
9292
"node-sass": "^4.14.1",
@@ -95,7 +95,7 @@
9595
"sass": "^1.27.0",
9696
"standard-version": "^9.0.0",
9797
"style-loader": "^2.0.0",
98-
"webpack": "^4.44.2"
98+
"webpack": "^5.2.0"
9999
},
100100
"keywords": [
101101
"sass",

src/utils.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,13 @@ function getWebpackResolver(
312312
return Promise.reject();
313313
}
314314

315-
const [{ resolve, context, possibleRequests }] = resolutionMap;
315+
const [{ possibleRequests }] = resolutionMap;
316+
317+
if (possibleRequests.length === 0) {
318+
return Promise.reject();
319+
}
320+
321+
const [{ resolve, context }] = resolutionMap;
316322

317323
try {
318324
return await resolve(context, possibleRequests[0]);

0 commit comments

Comments
 (0)