Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Where to intercept the dev env warnings? #2

@kobe-ra

Description

@kobe-ra

hi, i believe we all are receiving these warnings:

image

i've been trying to catch them at some places in this package so we could create a setting at createInertiaApp function, where user would list their specific warnings and they would've been disabled for dev env. well, they are not present in prod env anyway.

if you have idea where could these be intercepted, please let me know and i'd make a pr.

i did something similar with ziggy's routes which svelte compiler doesnt like, because they are undefined. solved in vite.config.js like this:

svelte({
    onwarn: (warning, handler) => {
        if (warning.message.includes("'route' is not defined")) return;
        handler(warning);
    },
}),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions