Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storefront): bctheme-1145 enable using external lib for templates under organization #954

Merged
merged 2 commits into from
Jul 14, 2022

Conversation

bc-alexsaiannyi
Copy link
Contributor

What?

While working on themes-ui-components library with UI components we've found that it will prevent from successful running stencil bundle since we use it under bigcommerce organization name. This PR addresses this issue and enables to work with external libs within different organization.

Tickets / Documentation

Screenshots (if appropriate)

cc @bigcommerce/storefront-team

@@ -168,7 +168,11 @@ class Bundle {

if (!externalTemplatesImports) return [];

return externalTemplatesImports.map((templateImport) => templateImport.split('/')[1]);
return externalTemplatesImports.map((templateImport) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think if it's possible to get some test coverage on this function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@jairo-bc jairo-bc merged commit 49576c9 into bigcommerce:master Jul 14, 2022
@jairo-bc jairo-bc mentioned this pull request Jul 14, 2022
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.

3 participants