Skip to content

dotty scalajs: @JSImport has no effect #9762

@aappddeevv

Description

@aappddeevv

Problem

I have the working project here: https://github.com/aappddeevv/dotty-scalajs

The import of a node package is in https://github.com/aappddeevv/dotty-scalajs/blob/master/src/main/scala/fetch.scala.

The issue is that @jsimport does not seem to cause the js import (require for a node application) to be issued into the linked file.

Expectation

@JSImport should generate the equivalent js import in the link file.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions