diff --git a/packages/wallet-sdk/compile-assets.js b/packages/wallet-sdk/compile-assets.js index b2ef1256ae..2622c52ef4 100644 --- a/packages/wallet-sdk/compile-assets.js +++ b/packages/wallet-sdk/compile-assets.js @@ -13,7 +13,7 @@ async function main() { for (const filePath of scssFiles) { console.info(`Compiling ${filePath}...`); const css = sass.renderSync({ file: filePath, outputStyle: 'compressed' }).css.toString('utf8'); - const ts = `export default \`${css}\``; + const ts = `export default (() => \`${css}\`)();`; fs.writeFileSync(filePath.replace(/\.scss$/, '-css.ts'), ts, { mode: 0o644, });