"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEP_VERSION_RE = exports.DEFAULT_ASSETS_RE = exports.CLIENT_DIR = exports.CLIENT_ENTRY = exports.CLIENT_PUBLIC_PATH = exports.VALID_ID_PREFIX = exports.FS_PREFIX = exports.DEP_CACHE_DIR = exports.SUPPORTED_EXTS = void 0;
const path_1 = __importDefault(require("path"));
exports.SUPPORTED_EXTS = ['.mjs', '.js', '.ts', '.jsx', '.tsx'];
exports.DEP_CACHE_DIR = `.vite`;
/**
 * Prefix for resolved fs paths, since windows paths may not be valid as URLs.
 */
exports.FS_PREFIX = `/@fs/`;
/**
 * Prefix for resolved Ids that are not valid browser import specifiers
 */
exports.VALID_ID_PREFIX = `/@id/`;
exports.CLIENT_PUBLIC_PATH = `/@vite/client`;
// eslint-disable-next-line
exports.CLIENT_ENTRY = require.resolve('vite/dist/client/client.js');
exports.CLIENT_DIR = path_1.default.dirname(exports.CLIENT_ENTRY);
const knownAssetTypes = [
    // images
    'png',
    'jpe?g',
    'gif',
    'svg',
    'ico',
    'webp',
    'avif',
    // media
    'mp4',
    'webm',
    'ogg',
    'mp3',
    'wav',
    'flac',
    'aac',
    // fonts
    'woff2?',
    'eot',
    'ttf',
    'otf',
    // other
    'wasm'
];
exports.DEFAULT_ASSETS_RE = new RegExp(`\\.(` + knownAssetTypes.join('|') + `)(\\?.*)?$`);
exports.DEP_VERSION_RE = /[\?&](v=[\w\.-]+)\b/;
//# sourceMappingURL=constants.js.map