Files
rspade_system/node_modules/loader-runner
root 77b4d10af8 Refactor filename naming system and apply convention-based renames
Standardize settings file naming and relocate documentation files
Fix code quality violations from rsx:check
Reorganize user_management directory into logical subdirectories
Move Quill Bundle to core and align with Tom Select pattern
Simplify Site Settings page to focus on core site information
Complete Phase 5: Multi-tenant authentication with login flow and site selection
Add route query parameter rule and synchronize filename validation logic
Fix critical bug in UpdateNpmCommand causing missing JavaScript stubs
Implement filename convention rule and resolve VS Code auto-rename conflict
Implement js-sanitizer RPC server to eliminate 900+ Node.js process spawns
Implement RPC server architecture for JavaScript parsing
WIP: Add RPC server infrastructure for JS parsing (partial implementation)
Update jqhtml terminology from destroy to stop, fix datagrid DOM preservation
Add JQHTML-CLASS-01 rule and fix redundant class names
Improve code quality rules and resolve violations
Remove legacy fatal error format in favor of unified 'fatal' error type
Filter internal keys from window.rsxapp output
Update button styling and comprehensive form/modal documentation
Add conditional fly-in animation for modals
Fix non-deterministic bundle compilation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-13 19:10:02 +00:00
..

loader-runner

import { runLoaders } from "loader-runner";

runLoaders(
	{
		resource: "/abs/path/to/file.txt?query",
		// String: Absolute path to the resource (optionally including query string)

		loaders: ["/abs/path/to/loader.js?query"],
		// String[]: Absolute paths to the loaders (optionally including query string)
		// {loader, options}[]: Absolute paths to the loaders with options object

		context: { minimize: true },
		// Additional loader context which is used as base context

		processResource: (loaderContext, resourcePath, callback) => {
			// ...
		},
		// Optional: A function to process the resource
		// Must have signature function(context, path, function(err, buffer))
		// By default readResource is used and the resource is added a fileDependency

		readResource: fs.readFile.bind(fs),
		// Optional: A function to read the resource
		// Only used when 'processResource' is not provided
		// Must have signature function(path, function(err, buffer))
		// By default fs.readFile is used
	},
	(err, result) => {
		// err: Error?
		// result.result: Buffer | String
		// The result
		// only available when no error occurred
		// result.resourceBuffer: Buffer
		// The raw resource as Buffer (useful for SourceMaps)
		// only available when no error occurred
		// result.cacheable: Bool
		// Is the result cacheable or do it require reexecution?
		// result.fileDependencies: String[]
		// An array of paths (existing files) on which the result depends on
		// result.missingDependencies: String[]
		// An array of paths (not existing files) on which the result depends on
		// result.contextDependencies: String[]
		// An array of paths (directories) on which the result depends on
	}
);

More documentation following...