@fastly/compute-js-static-publish 2.0.0-alpha.0 → 2.0.0-alpha.1
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/build/build-static.js +1 -1
- package/package.json +1 -1
- package/src/build-static.ts +1 -1
package/build/build-static.js
CHANGED
|
@@ -122,7 +122,7 @@ export async function buildStaticLoader() {
|
|
|
122
122
|
let loadModule = false;
|
|
123
123
|
if (moduleTest != null && moduleTest(filePath)) {
|
|
124
124
|
loadModule = true;
|
|
125
|
-
fileContents += `import fileModule${index} from "${relativeFilePath}";\n`;
|
|
125
|
+
fileContents += `import * as fileModule${index} from "${relativeFilePath}";\n`;
|
|
126
126
|
}
|
|
127
127
|
knownAssets[filePath] = { contentType: type, isStatic, loadModule, };
|
|
128
128
|
}
|
package/package.json
CHANGED
package/src/build-static.ts
CHANGED
|
@@ -148,7 +148,7 @@ export async function buildStaticLoader() {
|
|
|
148
148
|
let loadModule = false;
|
|
149
149
|
if (moduleTest != null && moduleTest(filePath)) {
|
|
150
150
|
loadModule = true;
|
|
151
|
-
fileContents += `import fileModule${index} from "${relativeFilePath}";\n`;
|
|
151
|
+
fileContents += `import * as fileModule${index} from "${relativeFilePath}";\n`;
|
|
152
152
|
}
|
|
153
153
|
knownAssets[filePath] = { contentType: type, isStatic, loadModule, };
|
|
154
154
|
}
|