Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Fails to transform one line in Lit #7

Open
ZMYaro opened this issue Jan 13, 2023 · 0 comments
Open

Fails to transform one line in Lit #7

ZMYaro opened this issue Jan 13, 2023 · 0 comments

Comments

@ZMYaro
Copy link

ZMYaro commented Jan 13, 2023

The current version of lit/index.js is:

import"@lit/reactive-element";import"lit-html";export*from"lit-element/lit-element.js";export*from"lit-html/is-server.js";

The output with this middleware enabled is:

import "/node_modules/@lit/reactive-element/reactive-element.js";
import "/node_modules/lit-html/lit-html.js";
export * from "lit-element/lit-element.js";
export * from "/node_modules/lit-html/is-server.js";

For some reason, it fails to transform one of the lines.


Edit: Apparently if I npm install lit-element (even though that is no longer necessary), it works. It seems to be an issue with the middleware not transforming paths it cannot locate in the node_modules directory.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant