Remove the playground. [skip build]
This commit is contained in:
@@ -10,7 +10,6 @@ import { VitePWA } from 'vite-plugin-pwa';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import buildConfig from './build.config';
|
||||
import { liveTsxPlugin, readDefaultLiveSource } from './playground-liveTsxPlugin';
|
||||
import {
|
||||
createReadableVanillaExtractIdentifiers,
|
||||
vanillaExtractDebugIdsPlugin,
|
||||
@@ -272,15 +271,6 @@ export default defineConfig(() => ({
|
||||
dedupe: ['react', 'react-dom'],
|
||||
alias: [
|
||||
{ find: '@cinny', replacement: path.resolve(projectRoot, 'src') },
|
||||
{
|
||||
find: '@playground/mocks',
|
||||
replacement: path.resolve(projectRoot, 'src/playground/mocks/index.ts'),
|
||||
},
|
||||
// Exact match only — do not rewrite loglevel/lib/...
|
||||
{
|
||||
find: /^loglevel$/,
|
||||
replacement: path.resolve(projectRoot, 'src/playground/shims/loglevel.js'),
|
||||
},
|
||||
{
|
||||
find: /^react$/,
|
||||
replacement: path.resolve(projectRoot, 'node_modules/react'),
|
||||
@@ -306,7 +296,6 @@ export default defineConfig(() => ({
|
||||
serverMatrixSdkCryptoWasm('/node_modules/.vite/deps/pkg/matrix_sdk_crypto_wasm_bg.wasm'),
|
||||
serveGifWorker(),
|
||||
servePublicAssets(),
|
||||
liveTsxPlugin(projectRoot, readDefaultLiveSource(projectRoot)),
|
||||
topLevelAwait({
|
||||
// The export name of top-level await promise for each chunk module
|
||||
promiseExportName: '__tla',
|
||||
@@ -374,7 +363,6 @@ export default defineConfig(() => ({
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: path.resolve(projectRoot, 'index.html'),
|
||||
playground: path.resolve(projectRoot, 'playground.html'),
|
||||
},
|
||||
plugins: [inject({ Buffer: ['buffer', 'Buffer'] })],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user