root: resolve()

in packages/example/config/vite.config.ts [8:23]


  root: resolve(__dirname, '../src'),
  envDir: resolve(__dirname, '../../../config'),
  // why: Use relative URL's since this gets published to GitLab pages
  base: './',
  build: {
    target: 'es2022',
    // why: The Makefile puts the web-ide self-hosted assets into this directory
    emptyOutDir: false,
    outDir: resolve(__dirname, '../dist'),
    rollupOptions: {
      input: [
        resolve(__dirname, '../src/index.html'),
        resolve(__dirname, '../src/oauth_callback.html'),
      ],
    },
  },