1import { defineConfig } from 'vite'
2import GlobalPolyFill from "@esbuild-plugins/node-globals-polyfill";
3import nodePolyfills from 'rollup-plugin-node-polyfills';
4import inject from '@rollup/plugin-inject'
5import react from '@vitejs/plugin-react'
6import svgr from 'vite-plugin-svgr';
7import { comlink } from 'vite-plugin-comlink'
8import { resolve } from 'path';
9import basicSsl from '@vitejs/plugin-basic-ssl'
11// https://vitejs.dev/config/
12export default defineConfig(({ mode }) => {
18 plugins: [comlink(), basicSsl(), svgr(), react(),],
21 { find: 'process', replacement: 'process/browser' },
22 { find: 'stream', replacement: 'stream-browserify' },
23 { find: 'https', replacement: 'agent-base' },
34 ].map(a => ({ find: a, replacement: resolve(__dirname, `src/${a}`)})),
46 plugins: [nodePolyfills()],
49 mode === 'development' ? { global: {} } : {}
52 include: ['urbit-key-generation'],
65 define: Object.assign({
66 // https://github.com/origamitower/folktale/issues/229
67 "process.env.FOLKTALE_DOCS": false,
68 "process.env.FOLKTALE_ASSERTIONS": false,
70 mode === 'production' ? {
72 plugins: [inject({ Buffer: ['buffer', 'Buffer'] })],
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list