- Enhanced build system to generate ESM, UMD, and minified formats - Fixed test extraction script to properly parse OxJS inline tests - Added comprehensive test infrastructure with Vitest - Successfully extracted 22 test files from inline documentation - Verified builds work in browser and Node.js environments - Maintained full backward compatibility with Ox.load() pattern - Updated .gitignore to exclude build artifacts (dev/, min/, dist/, test/extracted/) Generated with AI assistance
16 lines
No EOL
378 B
JavaScript
16 lines
No EOL
378 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
globals: true,
|
|
environment: 'node', // Use node for now to avoid jsdom issues
|
|
setupFiles: './test/test-setup.js'
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, './source'),
|
|
'Ox': resolve(__dirname, './source/Ox'),
|
|
}
|
|
}
|
|
}); |