@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.
- 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
|
@@ -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
package/src/build-static.ts
CHANGED
|
@@ -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);
|