Skip to content

Conversation

@douglasward
Copy link

If the srcDir in the elder.config.js is set to something other than src, then esbuild no longer works correctly. This pull request aims to fix this.

Everything seems to work fine (including hydration) except that the onMount svelte hook isn't called for the demo clock component and I can't work out why.

Copy link
Contributor

@nickreese nickreese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Sorry for the delay. International moves are a bit of chaos and take a while to unwind.

// abs path first
if (nameFixed.includes(rootDirFixed)) {
const rel = windowsPathFix(path.relative(path.join(rootDirFixed, 'src'), name))
const rel = windowsPathFix(path.relative(path.join(rootDirFixed, srcDir.replace(rootDir, '')), name))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason I'm having a brain fart here. Can you confirm there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants