Keep institutional contact test independent of CSS module loading in Node CI
tests / ci (push) Waiting to run
tests / ci (push) Waiting to run
This commit is contained in:
@@ -18,6 +18,7 @@ function load(file, page) {
|
||||
const module = { exports: {} };
|
||||
const aliases = new Proxy({ default: Empty }, { get: (target, name) => name in target ? target[name] : Empty });
|
||||
compileFunction(code, ['require', 'module', 'exports'])((name) => {
|
||||
if (name.endsWith('.css')) return {};
|
||||
if (name === 'lucide-react') return aliases;
|
||||
if (name === '@inertiajs/react') return {
|
||||
Link: 'a', Head: Empty, usePage: () => page,
|
||||
|
||||
Reference in New Issue
Block a user