Skip to content

Commit 1136c30

Browse files
committed
switch to tsx-like templates
1 parent ba75074 commit 1136c30

11 files changed

Lines changed: 1152 additions & 1086 deletions

File tree

build/vite.standalone.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
import { defineConfig } from 'vite'
22
import { viteSingleFile } from 'vite-plugin-singlefile'
3-
import { rename } from 'fs/promises'
4-
import { join } from 'path'
53

64
export default defineConfig({
75
root: 'src/ui',
86
plugins: [
97
viteSingleFile({removeViteModuleLoader: true}),
108
],
9+
esbuild: {
10+
// Turn off template literals, so `\n` won't become a multiline backtick;
11+
// This keeps the whole inlined script on one line, making it easier to
12+
// see where to customize the actually boot params below it.
13+
supported: { 'template-literal': false },
14+
},
1115
build: {
1216
outDir: '../../dist',
1317
emptyOutDir: true,
18+
1419
rollupOptions: {
1520
input: 'src/ui/index.html'
1621
},

0 commit comments

Comments
 (0)