mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Appending module identifier extensions should not match directories.
This logic needed to change not only in meteor/tools/isobuild/resolver.js
but also in the runtime module system:
cfcc422725
Fixes #8539.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"install": {
|
||||
"version": "0.8.7",
|
||||
"resolved": "https://registry.npmjs.org/install/-/install-0.8.7.tgz",
|
||||
"from": "install@0.8.7"
|
||||
"version": "0.8.8",
|
||||
"resolved": "https://registry.npmjs.org/install/-/install-0.8.8.tgz",
|
||||
"from": "install@0.8.8"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
Package.describe({
|
||||
name: "modules-runtime",
|
||||
version: "0.7.9",
|
||||
version: "0.7.10",
|
||||
summary: "CommonJS module system",
|
||||
git: "https://github.com/benjamn/install",
|
||||
documentation: "README.md"
|
||||
});
|
||||
|
||||
Npm.depends({
|
||||
install: "0.8.7"
|
||||
install: "0.8.8"
|
||||
});
|
||||
|
||||
Package.onUse(function(api) {
|
||||
|
||||
@@ -176,7 +176,7 @@ export default class Resolver {
|
||||
this.extensions.some(ext => {
|
||||
const pathWithExt = path + ext;
|
||||
const stat = this.statOrNull(pathWithExt);
|
||||
if (stat) {
|
||||
if (stat && ! stat.isDirectory()) {
|
||||
return result = { path: pathWithExt, stat };
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user