@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorjs/rspack",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Configuration logic for using Rspack in Meteor projects",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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) || pkg.startsWith('./') || pkg.startsWith('../'))
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) {