Add example of crazy long snippet for performance testing

This commit is contained in:
Andrew Kingston 2024-03-01 15:48:39 +00:00
parent 2189e3ee0f
commit 483fcbe30a
3 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,8 @@
},
"./package.json": "./package.json",
"./test/utils": "./test/utils.js",
"./iife": "./src/iife.js"
"./iife": "./src/iife.js",
"./snippet": "./src/helpers/snippet.js"
},
"files": [
"dist",

View File

@ -3,7 +3,6 @@ const cloneDeep = require("lodash.clonedeep")
const { LITERAL_MARKER } = require("../helpers/constants")
const { getJsHelperList } = require("./list")
const { iifeWrapper } = require("../iife")
const { CrazyLongSnippet } = require("./snippet")
// The method of executing JS scripts depends on the bundle being built.
// This setter is used in the entrypoint (either index.js or index.mjs).
@ -51,7 +50,6 @@ const snippets = {
HelloWorld: `
return "Hello, world!"
`,
CrazyLongSnippet: atob(CrazyLongSnippet),
}
// Evaluates JS code against a certain context

File diff suppressed because one or more lines are too long