UNPKG

@farmfe/core

Version:

Farm is a extremely fast web build tool written in Rust. Farm can start a project in milliseconds and perform HMR within 10ms, making it much faster than similar tools like webpack and vite.

49 lines 843 B
export const VITE_DEFAULT_ASSETS = [ // images 'apng', 'png', 'jpe?g', 'jfif', 'pjpeg', 'pjp', 'gif', 'svg', 'ico', 'webp', 'avif', // media 'mp4', 'webm', 'ogg', 'mp3', 'wav', 'flac', 'aac', 'opus', 'mov', 'm4a', 'vtt', // fonts 'woff2?', 'eot', 'ttf', 'otf', // other 'webmanifest', 'pdf', 'txt' ]; // the name of the virtual module internal the adapter export const VITE_ADAPTER_VIRTUAL_MODULE = 'vite-adapter-virtual:'; export const VITE_EXTERNAL_KEYS = ['esbuild']; export const RESERVED_OBJECT_PROPERTIES = [ 'then', 'length', 'constructor', 'prototype' ]; export const EXTERNAL_KEYS = [ ...VITE_EXTERNAL_KEYS, ...RESERVED_OBJECT_PROPERTIES ]; //# sourceMappingURL=constants.js.map