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
|
-
|
|
125
|
-
await
|
|
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);
|