Load
This commit is contained in:
parent
40ae4d1852
commit
b28890b401
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
|
@ -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"
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue