1
0
Fork 0
mirror of synced 2024-09-28 07:11:40 +12:00
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()
module.exports = {
export default {
...helpers,
// pointing stripProtocol to a unexisting function to be able to declare it on isolated-vm
// @ts-ignore
// eslint-disable-next-line no-undef
// eslint-disable-next-line no-undef
stripProtocol: helpersStripProtocol,
}

View file

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

View file

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