Skip to content

Commit

Permalink
fix: use enableImportInjection
Browse files Browse the repository at this point in the history
  • Loading branch information
rjborba committed Aug 26, 2024
1 parent d219185 commit 73ae3b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/ui-stencil-react/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ export default defineConfig((options): Options => {
outDir: "dist",
external: ["react", "react-dom"],
injectStyle: true,
noExternal: ["@orama/wc-components"],
};
});
4 changes: 4 additions & 0 deletions packages/ui-stencil/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const componentCorePackage = '@orama/wc-components'

export const config: Config = {
namespace,
extras: {
// Otherwise we would need to import each coomponent in applications with bunlders like vite.
enableImportInjection: true,
},
globalStyle: 'src/styles/globals.scss',
outputTargets: [
{
Expand Down

0 comments on commit 73ae3b3

Please sign in to comment.