@jcoreio/toolchain-esnext 5.10.3 → 5.10.4

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": "@jcoreio/toolchain-esnext",
3
- "version": "5.10.3",
3
+ "version": "5.10.4",
4
4
  "description": "ESNext JS build toolchain",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,7 +34,7 @@
34
34
  "resolve": "^1.22.2",
35
35
  "resolve-bin": "^1.0.0",
36
36
  "semver": "^7.5.3",
37
- "@jcoreio/toolchain": "5.10.3"
37
+ "@jcoreio/toolchain": "5.10.4"
38
38
  },
39
39
  "toolchainManaged": {
40
40
  "dependencies": {
@@ -52,7 +52,7 @@ module.exports = function resolveImportSource({
52
52
  return result.startsWith('.') ? result : `./${result}`
53
53
  }
54
54
  const match = /^((?:@[^/]+\/)?[^/]+)(?:\/(.+))?$/.exec(source)
55
- if (!match) return source
55
+ if (!match || process.env.JCOREIO_TOOLCHAIN_CJS) return source
56
56
  const [, pkg, subpath] = match
57
57
  if (!subpath) return source
58
58
  try {