Skip to content

Remove .js imports from src dir#1941

Closed
iantrich wants to merge 2 commits intohome-assistant:devfrom
iantrich:remove-create-js
Closed

Remove .js imports from src dir#1941
iantrich wants to merge 2 commits intohome-assistant:devfrom
iantrich:remove-create-js

Conversation

@iantrich
Copy link
Copy Markdown
Member

@iantrich iantrich commented Nov 1, 2018

No description provided.

workbox.routing.registerRoute(
new RegExp(
`${location.host}/(service_worker.js|service_worker_es5.js|manifest.json)`
`${location.host}/(service_worker|service_worker_es5|manifest.json)`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not sure about this one

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah we should only remove the extension from imports.

</div>
<% if (!latestBuild) { %>
<script src="/static/custom-elements-es5-adapter.js"></script>
<script src="/static/custom-elements-es5-adapter"></script>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm not sure about these .template file modifications I made either. Things seem to run fine in my testing...?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yeah revert them.

When you tested locally, did you navigate to the es5 version of authorize ?

@@ -1,5 +1,5 @@
const serviceWorkerUrl =
__BUILD__ === "latest" ? "/service_worker.js" : "/service_worker_es5.js";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These should be reverted. Only ones that are used in either import or import(…), as those are resolved by webpack. Others are resolved by the browser and that won't work.

@iantrich
Copy link
Copy Markdown
Member Author

iantrich commented Nov 2, 2018

Going to scale this back to just lovelace to start in a new PR

@iantrich iantrich closed this Nov 2, 2018
@ghost ghost removed the in progress label Nov 2, 2018
@iantrich iantrich deleted the remove-create-js branch November 16, 2018 19:18
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants