Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

[optimize] JS bundle so big when add bindingx . #191

@PerseveranceZ

Description

@PerseveranceZ
1.Your development environment(weex、weex-toolkit、system and more).
  • webpack 3.2.0
  • .babelrc
//   babelrc
{
  "presets": [
      ["env", {
          "targets": {
              "modules": false,
              "loose": true,
              "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
          }
      }],
      "stage-0"
  ],
  "plugins": [
    ["component",{
        "libraryName": "weex-ui",
        "libDir": "packages",
        "style": false
    }],
    ["transform-runtime", {
      "polyfill": false,
      "helpers": false
    }]
  ],
  "env": {
      "test": {
          "presets": ["env", "stage-0"],
          "plugins": ["istanbul"]
      }
  }
}
2.Expected behavior and actual behavior.

I want to know why my js bundles so big and how to optimize. Thanks.

3.Steps to reproduce the problem.

when i use weex-ui without bindingx , compiled js bundle info:
image

when i use weex-ui@0.5.4beta with weex-bindingx , compiled js bundle info:
image

docs it work in weex-ui without weex-bindingx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions