Skip to content

fix: export DEFAULT_MODE from host-config to use it in platform-server and to prevent undefined as a bundle id.#1366

Merged
adamdbradley merged 1 commit intostenciljs:masterfrom
ChBernat:fix/prerendering-undefined-as-bundle-name
Feb 12, 2019
Merged

fix: export DEFAULT_MODE from host-config to use it in platform-server and to prevent undefined as a bundle id.#1366
adamdbradley merged 1 commit intostenciljs:masterfrom
ChBernat:fix/prerendering-undefined-as-bundle-name

Conversation

@ChBernat
Copy link
Copy Markdown
Contributor

@ChBernat ChBernat commented Feb 8, 2019

This should fix

ENOENT: no such file or directory, open
'/Users/.../www/build/app/undefined.es5.entry.js' at

of issue https://github.com/ionic-team/stencil/issues/1144. It is uses the very similar logic you've already used when getting bundleIds as array in a different place of an application thus I thought it will be a good idea to stick to this logic.

One more thing - when I was debugging I've noticed that ionic's components are giving me bundleIds for ios and md; Would it be a good idea to take that into notice at some point in time?

@ChBernat
Copy link
Copy Markdown
Contributor Author

ChBernat commented Feb 8, 2019

@adamdbradley Hey, could you take a look at those tests? I scrolled through them a few times and honestly it does not seem like a proper behaviour to me. Additionally all other Pull Requests are failing on those 3 as well which does not seem to be a coincidence.

Also, this fix is sort of a hot topic for me as we are using Stencil to build our first product at what.digital and we need prerendering to satisfy our SEO needs. 🙏

@ChBernat ChBernat changed the title Exported DEFAULT_MODE and used it in platform-server. Fix: export DEFAULT_MODE from host-config to use it in platform-server and to prevent undefined as a bundle id. Feb 8, 2019
@ChBernat ChBernat changed the title Fix: export DEFAULT_MODE from host-config to use it in platform-server and to prevent undefined as a bundle id. fix: export DEFAULT_MODE from host-config to use it in platform-server and to prevent undefined as a bundle id. Feb 8, 2019
@adamdbradley adamdbradley merged commit 678b19d into stenciljs:master Feb 12, 2019
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