@meteorjs/rspack 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -90,11 +90,14 @@ export class RequireExternalsPlugin {
|
|
|
90
90
|
_extractPackageName(name) {
|
|
91
91
|
let pkg = name.slice(this._defaultExternalPrefix.length);
|
|
92
92
|
if (pkg.startsWith('"') && pkg.endsWith('"')) pkg = pkg.slice(1, -1);
|
|
93
|
-
|
|
93
|
+
const depInfo = path.parse(name);
|
|
94
94
|
// If the extracted package name is a path, use the path as is
|
|
95
95
|
if (
|
|
96
96
|
pkg &&
|
|
97
|
-
(path.isAbsolute(pkg) ||
|
|
97
|
+
(path.isAbsolute(pkg) ||
|
|
98
|
+
pkg.startsWith('./') ||
|
|
99
|
+
pkg.startsWith('../') ||
|
|
100
|
+
!!depInfo.ext)
|
|
98
101
|
) {
|
|
99
102
|
const module = this.externalsMeta.get(pkg);
|
|
100
103
|
if (module) {
|