Skip to content

resolve svelte/shared.js #65

@Rich-Harris

Description

@Rich-Harris

it's possible for a third party component to try and import the wrong version of Svelte.
Changing this line should fix it:

+const relative = require('relative-require');

// later...

-if (!('shared' in options)) options.shared = options.format === 'es' && 'svelte/shared.js';
+if (!('shared' in options)) options.shared = options.format === 'es' && relative.resolve('svelte/shared.js', process.cwd());

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