A lightning-fast frontend build tool designed to leverage JavaScript's native ESM system for unbundled development with instant browser updates.
82
Create a tool that validates and processes build configuration files for frontend projects. The tool should load configuration from various sources, apply defaults, merge overrides, and validate the final configuration.
Your implementation should handle configuration loading with the following features:
The configuration should support:
@generates
/**
* Load and validate configuration from file system
* @param {Object} overrides - Optional configuration overrides to merge
* @param {string} configPath - Optional path to specific config file
* @returns {Promise<Object>} Promise resolving to validated complete configuration
*/
async function loadConfiguration(overrides, configPath) {
// IMPLEMENTATION HERE
}
/**
* Create a configuration object with defaults
* @param {Object} config - Optional partial configuration to merge with defaults
* @returns {Object} Complete configuration object with all defaults applied
*/
function createConfiguration(config) {
// IMPLEMENTATION HERE
}
module.exports = {
loadConfiguration,
createConfiguration
};Provides configuration management capabilities for frontend build tools. @satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-snowpackevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10