We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab9a992 commit 2ad4abaCopy full SHA for 2ad4aba
examples/workers/script-upload.ts
@@ -65,16 +65,16 @@ async function main() {
65
},
66
],
67
68
- files: {
+ files: [
69
// Add main_module file
70
- [scriptFileName]: await toFile(Buffer.from(scriptContent), scriptFileName, {
+ await toFile(Buffer.from(scriptContent), scriptFileName, {
71
type: 'application/javascript+module',
72
}),
73
// Can add other files, such as more modules or source maps
74
- // [sourceMapFileName]: await toFile(Buffer.from(sourceMapContent), sourceMapFileName, {
+ // await toFile(Buffer.from(sourceMapContent), sourceMapFileName, {
75
// type: 'application/source-map',
76
// }),
77
- },
+ ],
78
});
79
console.log('Script Upload success!');
80
console.log(JSON.stringify(script, null, 2));
0 commit comments