@fastly/compute-js-static-publish 2.0.0-alpha.1 → 2.0.0-alpha.2

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.
@@ -104,7 +104,7 @@ export async function buildStaticLoader() {
104
104
  });
105
105
  const moduleTest = config.moduleTest;
106
106
  const knownAssets = {};
107
- let fileContents = '';
107
+ let fileContents = 'import { Buffer } from "buffer";\n';
108
108
  for (const [index, file] of files.entries()) {
109
109
  const relativeFilePath = path.relative('./src', file);
110
110
  const contentDef = defaultContentTypes.testFileContentType(finalContentTypes, file);
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.1",
4
+ "version": "2.0.0-alpha.2",
5
5
  "description": "Static Publisher for Compute@Edge JavaScript",
6
6
  "main": "./build/index.js",
7
7
  "scripts": {
@@ -129,7 +129,7 @@ export async function buildStaticLoader() {
129
129
 
130
130
  const knownAssets: Record<string, {contentType: string, isStatic: boolean, loadModule: boolean}> = {};
131
131
 
132
- let fileContents = '';
132
+ let fileContents = 'import { Buffer } from "buffer";\n';
133
133
 
134
134
  for (const [index, file] of files.entries()) {
135
135
  const relativeFilePath = path.relative('./src', file);