Closed e111077 closed 6 years ago
CC @justinfagnani
Tests seem to generally be failing due to test-fixture not being defined correctly
Tests seem to fail the same way on master, but I can confirm that tests pass locally. Ready for second review pass
ping for third pass @justinfagnani
Description: baseURI was failing in Polymer 3-modulized. This is because our
currentScript
polyfill was returning thescript[type="module]
that imported this module, and then calling.baseURI
on that returned undefined. I was able to find a fix that passedimportPath
to these scripts which should return a path related toimport.meta.url
.This
importPath
fix will run if it is defined and will fallback todocument.currentScript.baseURI
if not (which should only be in Polymer 1)For reviewing: I would recommend following the data flow of
importPath
which is:app-indexeddb-mirror.html
->app-indexeddb-mirror-client.html
->common-worker.html
I have tested this in polymer 3.0 with a manual fix of
importPath
and it passed our test suite with flying colors. ✈️🌈NOTE: Currently
importPath
is broken in 3.0 see Polymer/polymer-modulizer#361 and Polymer/polymer-modulizer#363