Skip to content

Support the vite build system #27

@mjarkk

Description

@mjarkk

Wanted to add this plugin to a vite project but got this error:
Note vite outputs javascript modules by default (this should also be possible directly in rollup but as vite uses that under the hood but this is an easier example)

[prepack] Syntax error: 'import' and 'export' may appear only with 'sourceType: "module"' (1:0)

How to copy:
Setup a fresh vite project and add this plugin and try to build the project

Env:
Package version: 1.1.1

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