define CSS exports in package.json

Created on 8 September 2024, 7 months ago

Problem/Motivation

In working on #3472824: Add support for a11y_autocomplete widget β†’ I have created πŸ› Import CSS in .mjs file Postponed which now needs a small change here.

When I try to import the css from this package in the widget module this error occurs:

[commonjs--resolver] Missing "./src/a11y.autocomplete.css" specifier in "@drupal/autocomplete" package

Proposed resolution

Define css exports as per the example at the end of this discussion: https://github.com/vitejs/vite/discussions/2657

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia darvanen Sydney, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024