New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Remove dependency on Polymer library #63
Milestone
Comments
This was referenced Feb 28, 2019
t2ym
added a commit
that referenced
this issue
Mar 4, 2019
…e.2, i18n-format@4.0.0-pre.9, and i18n-number@4.0.0-pre.4
t2ym
added a commit
that referenced
this issue
Mar 4, 2019
t2ym
added a commit
that referenced
this issue
Mar 4, 2019
t2ym
added a commit
that referenced
this issue
Mar 4, 2019
t2ym
added a commit
that referenced
this issue
Mar 4, 2019
…-binding-element tests (the issue still persists and is under investigation)
t2ym
added a commit
that referenced
this issue
Mar 4, 2019
t2ym
added a commit
that referenced
this issue
Mar 5, 2019
t2ym
added a commit
that referenced
this issue
Mar 6, 2019
t2ym
added a commit
that referenced
this issue
Mar 6, 2019
t2ym
added a commit
that referenced
this issue
Mar 7, 2019
t2ym
added a commit
that referenced
this issue
Mar 8, 2019
t2ym
added a commit
that referenced
this issue
Mar 8, 2019
t2ym
added a commit
that referenced
this issue
Mar 9, 2019
t2ym
added a commit
that referenced
this issue
Mar 9, 2019
Log from
|
|
t2ym
added a commit
that referenced
this issue
Mar 10, 2019
…ollup-plugin-babel-minify instead of rollup-plugin-terser
|
t2ym
added a commit
that referenced
this issue
Mar 13, 2019
t2ym
added a commit
that referenced
this issue
Mar 13, 2019
…nerate test/lit-bundled/test-name-test-imports.js
t2ym
added a commit
that referenced
this issue
Mar 14, 2019
t2ym
added a commit
that referenced
this issue
Mar 15, 2019
|
t2ym
added a commit
that referenced
this issue
Mar 15, 2019
t2ym
added a commit
that referenced
this issue
Mar 15, 2019
t2ym
added a commit
that referenced
this issue
Mar 15, 2019
t2ym
added a commit
that referenced
this issue
Mar 16, 2019
t2ym
added a commit
that referenced
this issue
Mar 18, 2019
t2ym
added a commit
that referenced
this issue
Mar 18, 2019
t2ym
added a commit
that referenced
this issue
Mar 19, 2019
t2ym
added a commit
that referenced
this issue
Mar 20, 2019
t2ym
added a commit
that referenced
this issue
Mar 20, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[4.0] Remove dependency on Polymer library
Links to BundlePhobia
i18n-element@4.0.0
fori18n.js
i18n-element@4.0.0-core
fori18n-core.js
Gzipped Bundled
i18n-core.js
- 15.26 kB includinglit-html
polymer-build
minify: true
polymer-build
minify: true
rollup
babel-preset-minify
rollup
babel-preset-minify
i18n-core.js
is only for preprocessed sourcesi18n-behavior/i18n-controller-core.js
, which omits the preprocessor codedemo/gulpfile.js
withconst useI18nCoreJs = true
can convert imports toi18n-core.js
"i18n-element"
->"i18n-element/i18n-core.js"
"i18n-element/i18n.js"
->"i18n-element/i18n-core.js"
"/node_modules/i18n-element/i18n.js"
->"/node_modules/i18n-element/i18n-core.js"
Gzipped Bundled
i18n.js
- 18.82 kB includinglit-html
polymer-build
minify: true
polymer-build
minify: true
rollup
babel-preset-minify
rollup
babel-preset-minify
rollup
rollup-plugin-babel-minify
106.43 kBrollup
rollup-plugin-terser
82.44 kBwebpack
babel-minify-webpack-plugin
webpack
babel-minify-webpack-plugin
webpack.config.js
is just a trial and may not be optimaldemo/preprocess/webpack.config.js
seems to work but not tested well./node_modules/node-libs-browser/node_modules/buffer/index.js
47.7 KiB(webpack)/buildin/global.js
475 bytes./node_modules/base64-js/index.js
3.41 KiB./node_modules/ieee754/index.js
2.03 KiB./node_modules/node-libs-browser/node_modules/isarray/index.js
131 bytes@open-wc/webpack-import-meta-loader
is appliedstatic get is()
getters are explicitly declared to survive UglifyJS mangling for class names@vaadin/*
elements, which depend on Polymer library, but the webpack configurations should be compatible even after they are removed from the approllup-plugin-babel
can be configured with a presetbabel-preset-minify
bundled-import-meta
babel plugin can be configured withrollup-plugin-babel
to convertimport.meta
meta properties to maintain their original values on bundlingrollup.config.js
withbundled-import-meta
is attached to this GitHub issuerollup-plugin-babel-minify
minified version has limitationslocales/
paths (not forbundle.*.json
) cannot be found sinceimport.meta
meta-properties for the elements are left as they are in the bundlepolymer-build
,import.meta
for each element is crafted to maintain the original intended value for the element so thatimportMeta()
method can return the same expected value as that for the unbundled original versioni18n.js
withrollup-plugin-babel-minify
whose options followingpolymer-build
itself is intact as it does not contain anyimport.meta
forlocales/
pathsrollup.config.js
with the options is attached to this GitHub issuerollup-plugin-terser
fori18n.js
demo/preprocess/clock.js
, unexpected fetching ofhtml-element.ja.json
is observed, which indicates critical mal-minification byrollup-plugin-terser
rollup-plugin-terser
usesterser
as a mangling engine, terser-mangled code should not have the issue with babel shown belowrollup
is internally used inpolymer build
with calibrated options for Polymer 3Polymer/tools/issues/261
[build] Name mangling mismangles names when emitting ES6, which can be tracked tobabel/minify/issues#943
For loops declaration sometimes shadows loop condition variablesBundled Modules and Packages
Dependencies
Notes
i18n-element 4.x
, the elements themselves must have@polymer/polymer
as their NPM dependencies sincei18n-element@4.x
andi18n-behavior@4.x
do NOT have@polymer/polymer
as their own NPM package dependencies.i18n-element@4.x
but have no dependencies on@polymer/polymer
, the missing explicit NPM package dependencies on@polymer/polymer
ini18n-element@4.x
andi18n-behavior@4.x
NPM packages should not become issues.Status
npm install i18n-element@next
ornpm install i18n-element@4.0.0-pre.17
i18n.js
is independent of Polymer libraryi18n-core.js
for preprocessed sourcesi18n-behavior@4.0.0-pre.19
i18n-behavior/i18n-controller-core.js
omits the preprocessor codei18n-format@4.0.0-pre.13
andi18n-number@4.0.0-pre.6
render withlit-html
Tasks
i18n-number
lit-html
instead of Polymer librarywc-putty
fori18n-element/polyfill.js
, which will be shared amongi18n-number
,i18n-format
, andi18n-element
wc-putty
i18n-format
lit-html
instead of Polymer libraryi18n-behavior
<i18n-attr-repo>
to a vanilla web component<i18n-preference>
to a vanilla web component<iron-ajax>
fromI18nBehavior
I18nBehavior
interface compatible with 3.xpolyfill.js
and usewc-putty/polyfill.js
mixin
,base-element
,legacy
syntax tests passthin
syntax tests failurei18n-format@4.0.0-pre.10
, which puts off assignment of DEFAULT_LANG untilconnectedCallback()
lit-html
i18n-behavior@4.0.0-pre.3
- still dependent on Polymer library3.0.0 with dependency on Polymer Library
i18n.js
≈ 67.9KB4.0.0 plan # 1 with no production dependency on Polymer Library
i18n.js
≈ 23.5KBRoughly Estimated Tasks on Plan # 1
i18n-number
renders withlit-html
, but has the same interfaces as 3.0.0i18n-format
renders withlit-html
, but has the same interfaces as 3.0.0i18n-attr-repo
is a vanilla web component, but has the same interfaces as 3.0.0i18n-preference
is a vanilla web component, but has the same interfaces as 3.0.0, usinglocalStorage
API directlyi18n-controller.js
is introduced for non-Polymer part ofi18n-behavior.js
, usingXHR
(orfetch
with the help ofwhatwg-fetch
on IE 11) directlyi18n-behavior.js
contains only Polymer dependent part, depending oni18n-controller.js
, but providing the same interfaces as 3.0.0i18n-element.js
andi18n-behavior.js
are still supported ifpolymer
is loadedpolymer
is adevDependency
ofi18n-element
andi18n-behavior
npm packagesi18n-element.js
depend onpolymer
andi18n-element
andi18n-behaviro
themselves do not have to depend onpolymer
as npm packageslive-localizer
is still a Polymer element, but is required only in development phases and not required in productionLitElement
has to be supported as wellDesign Issues on Plan # 1
i18n-number
,i18n-format
,i18n-attr-repo
,i18n-preference
: Property/attribute management should be easier withLitElement
LitElement
footprint overheads?i18n-number
,i18n-format
can be implemented as vanilla web components but rendering with ShadyDOM may be more compatible and easier withlit-html
intl
dependency can be dropped ifSafari 9
support is droppedlit-html
other thanLitElement
be officially supported?fetch
API be used instead ofXHR
?fetch
API can be polyfilled bywhatwg-fetch
on IE 11The text was updated successfully, but these errors were encountered: