electron-userland / electron-compilers

DEPRECATED: Compiler implementations for electron-compile
35 stars 52 forks source link

Canonicalize all paths passed to x-require #4

Closed anaisbetts closed 9 years ago

anaisbetts commented 9 years ago

This PR works alongside the PR added to electron-compile to take any relative paths found on the 'src' attribute of an x-require tag, and make that path relative to the parent's page.

This means that when you attempt to include files that are inside an HTML Import (i.e. a Polymer component), require paths will be relative to that HTML file and not relative to the hosting index page.