You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of project's files uses web standard when importing dependencies (e.g. import { dedupingMixin } from '../utils/mixin.js';. However lib/elements/custom-style.js and lib/legacy/legacy-element-mixin.js uses Polymer's import syntax for files located in @webcomponents library.
This makes it difficult to use the library without using polyserve. When developing apps that are not running in the web (Electron, Chrome app) it is required to take additional steps in order to make it run in dev environment (compilation on source file change, some other measures).
I would like to see the @webcomponents imports to comply with web standards so the library can be used directly in the web browser without using Polymer tooling.
The text was updated successfully, but these errors were encountered:
Closing as duplicate of #5238 (comment) and #5431 (comment). Please see those threads/comments and a blog post on the topic for more details on the reasoning that went into the decision-making for package names being the only non-standard convention used in published Polymer Project source.
Thanks for the links. I was asking on Polymer Slack channel some time ago about reasoning behind this decision but didn't get the answer. Reading this comments I think everything has been said already about that. My humble opinion is that the platform should be first, not tooling. Although, I do understand the reasons behind that decision now.
Description
Most of project's files uses web standard when importing dependencies (e.g.
import { dedupingMixin } from '../utils/mixin.js';
. Howeverlib/elements/custom-style.js
andlib/legacy/legacy-element-mixin.js
uses Polymer's import syntax for files located in@webcomponents
library.This makes it difficult to use the library without using polyserve. When developing apps that are not running in the web (Electron, Chrome app) it is required to take additional steps in order to make it run in dev environment (compilation on source file change, some other measures).
I would like to see the
@webcomponents
imports to comply with web standards so the library can be used directly in the web browser without using Polymer tooling.The text was updated successfully, but these errors were encountered: