Skip to content

Package now compiles Typescript files to CJS instead of ESM #4764

@jacob-8

Description

@jacob-8

Describe the bug

Upgrading from @sveltejs/[email protected] to @sveltejs/[email protected] will change the output of svelte-kit package as follows:

image

image

My package is now broken when trying to install in another app (ReferenceError: exports is not defined in reference to an action defined in a .js file) if I upgrade SvelteKit and I'm forced to stay .314.

Reproduction

Logs

No response

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
    Memory: 1.14 GB / 11.77 GB
  Binaries:
    Node: 16.13.2 - C:\Program Files\nodejs\node.EXE
    npm: 8.1.4 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (100.0.1185.50)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    @sveltejs/adapter-auto: 1.0.0-next.40 => 1.0.0-next.40
    @sveltejs/kit: 1.0.0-next.314 => 1.0.0-next.315
    @sveltejs/vite-plugin-svelte: ^1.0.0-next.41 => 1.0.0-next.41
    svelte: ^3.47.0 => 3.47.0

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions