spoint 0.1.675 → 0.1.676

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.
@@ -20,9 +20,13 @@ export function createAppModuleSystem(client, uiRoot) {
20
20
  return engineCtx
21
21
  }
22
22
 
23
- // Rewrites relative imports in app code to blob URLs since app code has no base URL to resolve against.
23
+ // Rewrites relative AND root-absolute imports in app code to blob URLs since app code has no base
24
+ // URL to resolve against. Root-absolute ('/spoint/src/...') specifiers show up here because the
25
+ // gh-pages deploy's path-patch step absolutizes deep relative '../../src/...' imports in apps/**/*.js
26
+ // at build time (see .github/workflows/gh-pages.yml "Patch paths for gh-pages") -- a shipped app's
27
+ // source can carry either form depending on how many directories deep it lives.
24
28
  async function _resolveDepsToBlobs(source, baseUrl, revokes, seen = new Map()) {
25
- const re = /((?:from|import)\s*)(['"])(\.[^'"]+)\2/g
29
+ const re = /((?:from|import)\s*)(['"])(\.[^'"]+|\/[^'"]+)\2/g
26
30
  const specs = new Set()
27
31
  let m
28
32
  while ((m = re.exec(source)) !== null) specs.add(m[3])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoint",
3
- "version": "0.1.675",
3
+ "version": "0.1.676",
4
4
  "description": "Physics and netcode SDK for multiplayer game servers",
5
5
  "type": "module",
6
6
  "workspaces": [