Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Render main.js to same directory, so it can use relative imports #40

Closed
Rich-Harris opened this issue Dec 21, 2017 · 0 comments · Fixed by #42
Closed

Render main.js to same directory, so it can use relative imports #40

Rich-Harris opened this issue Dec 21, 2017 · 0 comments · Fixed by #42

Comments

@Rich-Harris
Copy link
Member

At present, main.js is written to the destination directory (usually .sapper). That was so that we could write it to /tmp in Now, back before building was separated out from serving.

Writing it back to the same folder (as .main.rendered.js or something) would allow it to use relative imports, when necessary.

Might then be a bit weird that you can't do that with service-worker.js. Need to think about that, maybe in a separate issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant