Skip to content

2.0.0 Source map build performance  #5112

Description

@cliedeman

Is this a bug report?

No

Environment

Environment:
OS: macOS High Sierra 10.13.6
Node: 8.12.0
Yarn: 1.9.4
npm: 6.4.1
Watchman: 4.9.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: ^16.5.2 => 16.5.2
react-dom: ^16.5.2 => 16.5.2
react-scripts: ^2.0.0 => 2.0.0

Steps to Reproduce

  1. npx create-react-app test-app # must use react-script@2.0.0
  2. yarn add britecharts-react
  3. Render any graph in App.js
  4. yarn build

Expected Behavior

yarn build runs in a reasonable time

Actual Behavior

Build time jumps to 90 seconds, from 15 seconds

Reproducible Demo

Example Project

react-scripts@2.0.0 14.03s. (without britecharts)
react-scripts@2.0.0 89.04s (with britecharts)

react-scripts@1.1.5: 28.73s. (with britecharts)
react-scripts@1.1.5 : 6.93s. (without britecharts)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions