* update svelte versions * temporarilly disable svelte warnings * change bbap version pointed to * remove sub module specifying svelte version * point at updated account-portal * add type declaration for svelte in the server * add svelte transformer for server jest tests * remove svelte from bbui package.json * get builder tests working * linting fixes * prettier fixes * fix server test * fix another server test * fix server serverlog test * account-portal-version * pin master version of pro * revert hbs doc file in server to use triple braces, ensures nothing gets escaped
11 lines
314 B
JavaScript
11 lines
314 B
JavaScript
const { compile } = require("svelte/compiler")
|
|
const { transformSync } = require("@babel/core")
|
|
|
|
module.exports = {
|
|
process(sourceText) {
|
|
const { js } = compile(sourceText, { css: "injected", generate: "ssr" })
|
|
const { code } = transformSync(js.code, { babelrc: true })
|
|
|
|
return { code: code }
|
|
},
|
|
}
|