Skip to content

Compiled JS failing when ran with Bunjs #8

@ronhombre

Description

@ronhombre

image

Reproduction Steps:

  1. Run gradle browserWebpack
  2. Copy files in build/compileSync/js/main/productionExecutable/kotlin into a NodeJS project.
  3. Use the Kotlin/JS compiled files that use secure-random.
  4. Run Bunjs (Fails here).

Note: Additionally, using the compiled Webpack also causes the same bug when running on NodeJS.

Work around: Delete the first if-statement and leave whatever was in the else statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions