Skip to content

Compatibility with Vite #92

@neckaros

Description

@neckaros

When using vite & EXIFR we get the following warning
node_modules/.vite/deps/exifr.js

        return "function" == typeof __require ? Promise.resolve(t2(__require(e2))) : import(
         /* webpackIgnore: true */
         e2
         ^
       ).then(t2);      } catch (t3) {
The above dynamic import cannot be analyzed by vite.
See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.

Adding the /* @vite-ignore */ solve the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions