wontlost-ltd / vaadin-litelement-ckeditor

Vaadin14+LitElement+CKEditor5
Other
17 stars 13 forks source link

Vite requires correct directive import of class-map #36

Closed stefanuebe closed 1 year ago

stefanuebe commented 1 year ago

The javascript file "vaadin-ckeditor" imports the class map from the lit directives without the file ending ".js". Using vite in Vaadin 23 this leads to an issue.

Attaching the .js fixes the issue and lets vite start correctly.

vaadin-ckeditor.js

import {classMap} from 'lit/directives/class-map.js';