Skip to content

with { type: 'pointer' } #1500

@brillout

Description

@brillout
// /pages/+config.js
// Environment: config

import ssr from './ssr' with { type: 'pointer' }
console.log(ssr) // Prints 'import:./ssr:default'

Until this is implemented, a workaround is to rename ssr.js to ssr.jsx.

Let's implement this once:

  • Vite uses Rolldown
  • Rolldown supports import attributes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions