title: How should I make my Lit elements consumable to other projects?
body: <p>I'm trying to use <a href="https://lit.dev/" rel="nofollow noreferrer">Lit.dev</a> to create reusable web components across my organization, and I'm trying to import one of those components into a new React project using <code>create-react-app</code></p>
  <p>I started by creating a local Storybook project to make sure my components rendered correctly, which they do (see screenshot)</p>
  <p><a href="https://i.stack.imgur.com/lzU8n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lzU8n.png" alt="Web component example screeshot" /></a>
  I pushed library of test components to my GitHub account, then I installed to a boilerplate <code>create-react-app</code> project using <code>npm i https://github.com/my-user/my-design-system/</code>, which added my library of components to <code>/node_modules</code>, which I can import into a React app using</p>
  <pre><code>import `my-design-system/MyCustomComponent`
  </code></pre>
  <p>For simple components, this is straightforward, and I can successfully render my Lit-created web component in my React project, but for components that use things such as @decorators or importing Sass styles, I get errors. For example:</p>
  <pre><code>Module Error (from ./node_modules/sass-loader/dist/cjs.js):
  Cannot find module 'sass'
  etc...
  </code></pre>
  <p>I feel like I could solve this problem by configuring my React project to use the appropriate loaders and TypeScript configs, etc., but I feel like this is defeating the purpose of creating an external web component library to be framework agnostic. I feel like I am most likely missing a step that converts or builds my Lit project into a JavaScript bundle that other projects can use without much fuss (right now, in my React project, I'm just importing my web component straight from the source file in <code>node_modules/my-design-system/MyCustomComponent</code></p>
  <p>I'm completely new to creating my own packages, so I feel like I lack the vocabulary to accurately describe what I'm trying to accomplish. Can anyone point me in the right direction?</p>