Skip to content

Commit

Permalink
Merge pull request #137 from podium-lib/fix/hydrate-define-element
Browse files Browse the repository at this point in the history
fix: include defineElement in client bundle
  • Loading branch information
wkillerud authored Dec 15, 2023
2 parents 7fd8914 + 8ac19c7 commit e9ee7ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ export async function build({ state, config, cwd = process.cwd() }) {
setup(buildInstance) {
buildInstance.onResolve(
{
filter: /(content|fallback|lazy|scripts|src|server).*.(ts|js)$/,
filter:
/(content|fallback|content-entrypoint|fallback-entrypoint|lazy|scripts|src|server).*.(ts|js)$/,
namespace: 'file',
},
async (args) => {
Expand Down Expand Up @@ -202,7 +203,7 @@ export async function build({ state, config, cwd = process.cwd() }) {
async function buildRollupConfig(options) {
const rollupConfig = [];
for (const filepath of options) {
const input = filepath.replace('-entrypoint', '');
const input = filepath;

let outfile;
if (filepath === CONTENT_ENTRY) {
Expand Down

0 comments on commit e9ee7ee

Please sign in to comment.