@netlify/edge-bundler 1.2.0 → 1.2.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/deno/bundle.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { writeStage2 } from 'https://628282fb528ce20008ed7664--edge-bootstrap.netlify.app/bundler/mod.ts'
1
+ import { writeStage2 } from 'https://62a718350450bd00093e1841--edge-bootstrap.netlify.app/bundler/mod.ts'
2
2
 
3
3
  const [payload] = Deno.args
4
4
  const { basePath, destPath, functions } = JSON.parse(payload)
@@ -5,7 +5,7 @@ import { pathToFileURL } from 'url';
5
5
  import del from 'del';
6
6
  import { wrapBundleError } from '../bundle_error.js';
7
7
  import { getFileHash } from '../utils/sha256.js';
8
- const BOOTSTRAP_LATEST = 'https://628282fb528ce20008ed7664--edge-bootstrap.netlify.app/bootstrap/index-combined.ts';
8
+ const BOOTSTRAP_LATEST = 'https://62a718350450bd00093e1841--edge-bootstrap.netlify.app/bootstrap/index-combined.ts';
9
9
  const bundle = async (options) => {
10
10
  try {
11
11
  return await bundleJS(options);
@@ -54,7 +54,12 @@ const serve = async ({ certificatePath, debug, distImportMapPath, inspectSetting
54
54
  // Creating an ImportMap instance with any import maps supplied by the user,
55
55
  // if any.
56
56
  const importMap = new ImportMap(importMaps);
57
- const flags = ['--allow-all', '--unstable', `--import-map=${importMap.toDataURL()}`];
57
+ const flags = [
58
+ '--allow-all',
59
+ '--unstable',
60
+ `--import-map=${importMap.toDataURL()}`,
61
+ '--v8-flags=--disallow-code-generation-from-strings',
62
+ ];
58
63
  if (certificatePath) {
59
64
  flags.push(`--cert=${certificatePath}`);
60
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/edge-bundler",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Intelligently prepare Netlify Edge Functions for deployment",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",