When we moved to npm we needed a way for modules to reference each other, and unlike with Bower where all packages are siblings of each other, there's no stable relative URL that we could use for this. The overwhelming community pattern on npm is to use package names for cross-package references and a tool (or Node) to resolve them. So we went with the community standard and used package names, knowing that there are a plethora of tools that can resolve ment, and that future browser standards like import maps will support package name resolution directly in the browser.
Until import-maps land, you can use a number of tools: * `polymer serve` will automatically resolve bare specifiers on the fly. * open-wc.org tooling will as well * Bundlers like Rollup, Parcel, and Webpack will resolve names. Rollup with the rollup-node-resolve plugin. Hope that helps! On Tue, Sep 10, 2019 at 10:51 PM Max Waterman <davidmaxwater...@gmail.com> wrote: > Hi, > > Is there a way to use a polymer element in a project without having a > build step - neither one I run manually (eg polymer build), or > automatically (eg polymer serve)? > > I recently attempted this, but it seemed like I needed to have some import > paths converted, and so I needed to use 'polymer serve'. > > I don't recall needing any such step with the older versions of polymer - > I just added an html import, and used the element. Perhaps I'm > mis-remembering. > > Is there a way to avoid any build step? > > Regards, > > Max. > > Follow Polymer on Google+: plus.google.com/107187849809354688692 > --- > You received this message because you are subscribed to the Google Groups > "Polymer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to polymer-dev+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/polymer-dev/d725e36a-04b7-4d0a-8974-571d8336bff1%40googlegroups.com > <https://groups.google.com/d/msgid/polymer-dev/d725e36a-04b7-4d0a-8974-571d8336bff1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to polymer-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CAEKsHmDmFf-qLtgnhawbCtuCtkGWe%2BsgHTYC1i68UMxZTL0-yA%40mail.gmail.com.