Open baocang opened 7 years ago
npm WARN deprecated babel-preset-babili@0.0.10
This has been resolved in #847
npm WARN deprecated @0.0.29
This is @types/assert
which has to be fixed in Polyserve: https://github.com/Polymer/polyserve/blob/8b97cd4646b5cf527f693a0d35aa45c5e91035a3/package.json#L25
npm WARN deprecated babel-preset-es2015@6.24.1
Has to be fixed in the CLI
I am definitely in favor of using env
instead of es2015. It provides a much more configurable transpilation step.
We don't really want a configurable compilation step. We don't want to support any features that would require building on evergreen browsers.
If I understand the docs correctly, the only change would be to modify
const babelPresetES2015 = require('babel-preset-es2015');
const minifyPreset = require('babel-preset-minify');
const babelPresetES2015NoModules =
babelPresetES2015.buildPreset({}, {modules: false});
to
const babelPresetEnv = require('babel-preset-env');
const babelPresetEnvModules =
babelPresetEnv.buildPreset({}, {modules: false});
That sounds right to me.
The big the for me about using env
is that it only polyfills what you need based on what features you are using and if the browsers specified support those features or not.
For instance, if you are using strictly ES2015 features and below:
We use this for our applications at my company. When we drop IE11 from our supported browsers, it will automatically reduce the amount of polyfilling that is being added.
I also get:
npm WARN deprecated bower@1.8.2: ...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
@evanp That's because bower is deprecated. This is one of the reasons we're moving to npm. You can learn more here: https://www.polymer-project.org/blog/2017-08-22-npm-modules.html
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
While install
polymer-cli
, I get some warnings:Versions & Environment
Steps to Reproduce
install polymer-cli:
npm install -g polymer-cli
Expected Results
No warning is throw
Actual Results
Warning is throw