思维导图备注
Babel 7.7.0 Document
首页 AI助手 白天 夜间 BookChat 小程序 小程序 阅读
  • 书签 我的书签
  • 添加书签 添加书签 移除书签 移除书签

minify-numeric-literals

 Donate  来源:Babel 浏览 714 扫码 2020-01-15 20:35:17
  • babel-plugin-minify-numeric-literals
    • Example
    • Installation
    • Usage
      • Via .babelrc (Recommended)
      • Via CLI
      • Via Node API

    babel-plugin-minify-numeric-literals

    Example

    In

    1. [1000, -20000]

    Out

    1. [1e3, -2e4]

    Installation

    1. npm install babel-plugin-minify-numeric-literals --save-dev

    Usage

    Via .babelrc (Recommended)

    .babelrc

    1. {
    2. "plugins": ["minify-numeric-literals"]
    3. }

    Via CLI

    1. babel --plugins minify-numeric-literals script.js

    Via Node API

    1. require("@babel/core").transform("code", {
    2. plugins: ["minify-numeric-literals"]
    3. });
    当前内容版权归 Babel 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Babel .
    上一篇:
    下一篇:
    • 书签
    • 添加书签 移除书签
    • Babel v7.25 Documentation
    • Babel 7.17 Documentation
    • Babel 7.11.0 Document
    • Babel 7.10.0 Document
    • Babel 7.9.0 Documentation
    • Babel 7.8.0 Documentation
    • Babel 7.7.0 Document
    • Babel 7.6.0 Documentation
    • Babel 7.5.0 Documentation
    • Babel v7.4.0 Document
    • Guides
      • What is Babel?
        • Usage Guide
          • Configure Babel
            • Learn ES2015
              • Upgrade to Babel 7
                • Upgrade to Babel 7 (API)
                • General
                  • Editors
                    • Plugins
                      • ES3
                        • reserved-words
                        • ES5 - property-mutators
                          • ES2015
                            • arrow-functions
                              • block-scoped-functions
                                • block-scoping
                                  • classes
                                    • computed-properties
                                      • destructuring
                                        • duplicate-keys
                                          • for-of
                                            • function-name
                                              • instanceof
                                                • literals
                                                  • new-target
                                                    • object-super
                                                      • parameters
                                                        • shorthand-properties
                                                          • spread
                                                            • sticky-regex
                                                              • template-literals
                                                                • typeof-symbol
                                                                  • unicode-regex
                                                                  • ES2016 - exponentiation-operator
                                                                    • ES2017 - async-to-generator
                                                                      • ES2018
                                                                        • async-generator-functions
                                                                          • dotall-regex
                                                                            • named-capturing-groups-regex
                                                                              • object-rest-spread
                                                                                • optional-catch-binding
                                                                                  • unicode-property-regex
                                                                                  • Modules
                                                                                    • modules-amd
                                                                                      • modules-commonjs
                                                                                        • modules-systemjs
                                                                                          • modules-umd
                                                                                          • Experimental
                                                                                            • class-properties
                                                                                              • decorators
                                                                                                • do-expressions
                                                                                                  • export-default-from
                                                                                                    • export-namespace-from
                                                                                                      • function-bind
                                                                                                        • function-sent
                                                                                                          • logical-assignment-operators
                                                                                                            • nullish-coalescing-operator
                                                                                                              • numeric-separator
                                                                                                                • optional-chaining
                                                                                                                  • partial-application
                                                                                                                    • pipeline-operator
                                                                                                                      • private-methods
                                                                                                                        • throw-expressions
                                                                                                                        • Minification
                                                                                                                          • inline-consecutive-adds
                                                                                                                            • inline-environment-variables
                                                                                                                              • member-expression-literals
                                                                                                                                • merge-sibling-variables
                                                                                                                                  • minify-booleans
                                                                                                                                    • minify-builtins
                                                                                                                                      • minify-constant-folding
                                                                                                                                        • minify-dead-code-elimination
                                                                                                                                          • minify-flip-comparisons
                                                                                                                                            • minify-guarded-expressions
                                                                                                                                              • minify-infinity
                                                                                                                                                • minify-mangle-names
                                                                                                                                                  • minify-numeric-literals
                                                                                                                                                    • minify-replace
                                                                                                                                                      • minify-simplify
                                                                                                                                                        • minify-type-constructors
                                                                                                                                                          • node-env-inline
                                                                                                                                                            • property-literals
                                                                                                                                                              • regexp-constructors
                                                                                                                                                                • remove-console
                                                                                                                                                                  • remove-debugger
                                                                                                                                                                    • remove-undefined
                                                                                                                                                                      • simplify-comparison-operators
                                                                                                                                                                        • undefined-to-void
                                                                                                                                                                        • React
                                                                                                                                                                          • react-constant-elements
                                                                                                                                                                            • react-display-name
                                                                                                                                                                              • react-inline-elements
                                                                                                                                                                                • react-jsx
                                                                                                                                                                                  • react-jsx-compat
                                                                                                                                                                                    • react-jsx-self
                                                                                                                                                                                      • react-jsx-source
                                                                                                                                                                                      • Other
                                                                                                                                                                                        • external-helpers
                                                                                                                                                                                          • flow-strip-types
                                                                                                                                                                                            • jscript
                                                                                                                                                                                              • object-assign
                                                                                                                                                                                                • object-set-prototype-of-to-assign
                                                                                                                                                                                                  • proto-to-assign
                                                                                                                                                                                                    • regenerator
                                                                                                                                                                                                      • strict-mode
                                                                                                                                                                                                        • typescript
                                                                                                                                                                                                      • Presets
                                                                                                                                                                                                        • Caveats
                                                                                                                                                                                                          • FAQ
                                                                                                                                                                                                            • Roadmap
                                                                                                                                                                                                            • Usage
                                                                                                                                                                                                              • Options
                                                                                                                                                                                                                • Config Files
                                                                                                                                                                                                                  • cli
                                                                                                                                                                                                                    • polyfill
                                                                                                                                                                                                                      • transform-runtime
                                                                                                                                                                                                                        • register
                                                                                                                                                                                                                        • Presets
                                                                                                                                                                                                                          • env
                                                                                                                                                                                                                            • stage-0
                                                                                                                                                                                                                              • stage-1
                                                                                                                                                                                                                                • stage-2
                                                                                                                                                                                                                                  • stage-3
                                                                                                                                                                                                                                    • flow
                                                                                                                                                                                                                                      • react
                                                                                                                                                                                                                                        • minify
                                                                                                                                                                                                                                          • typescript
                                                                                                                                                                                                                                          • Tooling
                                                                                                                                                                                                                                            • parser
                                                                                                                                                                                                                                              • core
                                                                                                                                                                                                                                                • generator
                                                                                                                                                                                                                                                  • code-frame
                                                                                                                                                                                                                                                    • helpers
                                                                                                                                                                                                                                                      • runtime
                                                                                                                                                                                                                                                        • template
                                                                                                                                                                                                                                                          • traverse
                                                                                                                                                                                                                                                            • types
                                                                                                                                                                                                                                                            暂无相关搜索结果!

                                                                                                                                                                                                                                                              本文档使用 BookStack 构建

                                                                                                                                                                                                                                                              文章二维码

                                                                                                                                                                                                                                                              手机扫一扫,轻松掌上读

                                                                                                                                                                                                                                                              文档下载

                                                                                                                                                                                                                                                              • 普通下载
                                                                                                                                                                                                                                                              • 下载码下载(免登录无限下载)
                                                                                                                                                                                                                                                              你与大神的距离,只差一个APP
                                                                                                                                                                                                                                                              APP下载
                                                                                                                                                                                                                                                              请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
                                                                                                                                                                                                                                                              PDF文档 EPUB文档 MOBI文档
                                                                                                                                                                                                                                                              温馨提示 每天每在网站阅读学习一分钟时长可下载一本电子书,每天连续签到可增加阅读时长
                                                                                                                                                                                                                                                              下载码方式下载:免费、免登录、无限制。 免费获取下载码

                                                                                                                                                                                                                                                              微信小程序阅读

                                                                                                                                                                                                                                                              BookChat 微信小程序阅读
                                                                                                                                                                                                                                                              您与他人的薪资差距,只差一个随时随地学习的小程序

                                                                                                                                                                                                                                                              书签列表

                                                                                                                                                                                                                                                                阅读记录

                                                                                                                                                                                                                                                                阅读进度: 0.00% ( 0/0 ) 重置阅读进度

                                                                                                                                                                                                                                                                  欢迎使用AI助手 AI助手
                                                                                                                                                                                                                                                                  全屏 缩小 隐藏 清空