Skip to content

Support entry file name build output other than ${entryName}.js #821

@hi-ogawa

Description

@hi-ogawa

Currently preview server and import.meta.viteRsc.loadModule excepts exact file name e.g. index.js, but this is not the case when customizing entry file names.

const entryFile = path.join(
manager.config.environments[options.environmentName]!.build.outDir,
`${options.entryName}.js`,
)

path.join(
config.environments[toEnv!]!.build.outDir,
// TODO: this breaks when custom entyFileNames
`${entryName}.js`,
),

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions