test: add shoelace form utility to import map
Temporarily fixes test build error, see FIXME
This commit is contained in:
parent
ac947421c0
commit
a7a5b7fd63
@ -45,6 +45,18 @@ export default {
|
|||||||
"@shoelace-style/shoelace/dist/themes/light.css": fileURLToPath(
|
"@shoelace-style/shoelace/dist/themes/light.css": fileURLToPath(
|
||||||
new URL("./src/__mocks__/css.js", import.meta.url)
|
new URL("./src/__mocks__/css.js", import.meta.url)
|
||||||
),
|
),
|
||||||
|
// FIXME: `@web/dev-server-esbuild` or its dependencies seem to be ignoring .js
|
||||||
|
// extension and shoelace exports and switching it to .ts
|
||||||
|
// Needs a better solution than import mapping individual files.
|
||||||
|
// Maybe related:
|
||||||
|
// - https://github.com/modernweb-dev/web/issues/1929
|
||||||
|
// - https://github.com/modernweb-dev/web/issues/224
|
||||||
|
"@shoelace-style/shoelace/dist/utilities/form.js": fileURLToPath(
|
||||||
|
new URL(
|
||||||
|
"./node_modules/@shoelace-style/shoelace/dist/utilities/form.js",
|
||||||
|
import.meta.url
|
||||||
|
)
|
||||||
|
),
|
||||||
// "@formatjs/intl-displaynames/should-polyfill": new URL(
|
// "@formatjs/intl-displaynames/should-polyfill": new URL(
|
||||||
// "./src/__mocks__/@formatjs/intl-displaynames/should-polyfill.js",
|
// "./src/__mocks__/@formatjs/intl-displaynames/should-polyfill.js",
|
||||||
// import.meta.url
|
// import.meta.url
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user