@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.
@@ -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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fastly/compute-js-static-publish",
3
3
  "type": "module",
4
- "version": "2.0.0-alpha.0",
4
+ "version": "2.0.0-alpha.1",
5
5
  "description": "Static Publisher for Compute@Edge JavaScript",
6
6
  "main": "./build/index.js",
7
7
  "scripts": {
@@ -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
  }