We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5b9fae commit a2bea83Copy full SHA for a2bea83
src/build-resources.js
@@ -146,6 +146,13 @@ function getRealModulePath(fromPath) {
146
let fromPathSplit = fromPath.split('/');
147
let moduleName = fromPathSplit.shift();
148
let modulePathIndex = moduleNames.indexOf(moduleName);
149
+
150
+ if (modulePathIndex === -1 && fromPathSplit.length > 0) {
151
+ // the module might be scoped, let's see:
152
+ moduleName += `/${fromPathSplit.shift()}`;
153
+ modulePathIndex = moduleNames.indexOf(moduleName);
154
+ }
155
156
let modulePath;
157
if (modulePathIndex !== -1) {
158
modulePath = modulePaths[modulePathIndex];
0 commit comments