This commit is contained in:
Adria Navarro 2024-02-06 10:04:54 +01:00
parent 40ae4d1852
commit b28890b401
3 changed files with 7 additions and 5 deletions

View File

@ -1,10 +1,11 @@
import getJsHelperList from '@budibase/string-templates/js-helpers' import {getJsHelperList} from '@budibase/string-templates/js-helpers'
const helpers = getJsHelperList() const helpers = getJsHelperList()
module.exports = { export default {
...helpers, ...helpers,
// pointing stripProtocol to a unexisting function to be able to declare it on isolated-vm // pointing stripProtocol to a unexisting function to be able to declare it on isolated-vm
// @ts-ignore // @ts-ignore
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
stripProtocol: helpersStripProtocol, stripProtocol: helpersStripProtocol,
} }

View File

@ -12,8 +12,7 @@
"import": "./dist/bundle.mjs" "import": "./dist/bundle.mjs"
}, },
"./package.json": "./package.json", "./package.json": "./package.json",
"./js-helpers": "./src/index-helpers.js", "./js-helpers": "./src/helpers/list.js",
"./index-helpers": "./dist/index-helpers.bundled.js",
"./test/utils": "./test/utils.js" "./test/utils": "./test/utils.js"
}, },
"files": [ "files": [

View File

@ -49,6 +49,7 @@ function runBuild(entry, outfile) {
preserveSymlinks: true, preserveSymlinks: true,
loader: { loader: {
".svelte": "copy", ".svelte": "copy",
".ivm.bundle.js.txt": "text",
}, },
metafile: true, metafile: true,
external: [ external: [
@ -60,6 +61,7 @@ function runBuild(entry, outfile) {
"bcrypt", "bcrypt",
"bcryptjs", "bcryptjs",
"graphql/*", "graphql/*",
"bson"
], ],
} }