wirejs-deploy-amplify-basic 0.0.16-alpha → 0.0.18-alpha

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.
@@ -121,8 +121,9 @@ async function trySSRPath(req, res) {
121
121
 
122
122
  try {
123
123
  useJSDOM(JSDOM);
124
- global.self = global.window;
125
- await import(srcPath);
124
+ const self = {};
125
+ const moduleData = await fs.promises.readFile(srcPath);
126
+ eval(`${moduleData}`);
126
127
  const module = self.exports;
127
128
  if (typeof module.generate === 'function') {
128
129
  const doc = await module.generate(context);
@@ -3,6 +3,6 @@
3
3
  "dependencies": {
4
4
  "jsdom": "^25.0.0",
5
5
  "wirejs-dom": "^1.0.34",
6
- "wirejs-resources": "^0.1.6-alpha"
6
+ "wirejs-resources": "^0.1.8-alpha"
7
7
  }
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.16-alpha",
3
+ "version": "0.0.18-alpha",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",