Skip to content

Commit

Permalink
chore(build): cover lit in babel coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
m4olivei committed Dec 24, 2024
1 parent f8cd8fe commit e2a8f5a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/web-components/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ module.exports = {
]
);
// Uses `@babel/plugin-proposal-decorators` configuration in our `.babelrc`
// @todo Wonder if this block interferes with decorators changes in Lit 3.x?
config.module.rules = deepReplace(
config.module.rules,
(value, key, parent, parents) =>
Expand Down Expand Up @@ -153,7 +154,12 @@ module.exports = {
if (babelLoaderRule) {
config.module.rules.unshift({
use: babelLoaderRule.use,
include: [path.dirname(require.resolve('lit'))],
include: [
path.dirname(require.resolve('lit')),
path.dirname(path.dirname(require.resolve('@lit/reactive-element'))),
path.dirname(require.resolve('lit-element')),
path.dirname(path.dirname(require.resolve('lit-html'))),
],
});
}

Expand Down

0 comments on commit e2a8f5a

Please sign in to comment.