[Webkit-unassigned] [Bug 176227] New: Speedometer: Reduce duplication in react-redux test

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 1 09:28:43 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=176227

            Bug ID: 176227
           Summary: Speedometer: Reduce duplication in react-redux test
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mathias at qiwi.be

The generated bundle includes the same `Object.assign` polyfill five or six times.

In the source code, we’re using object spread in six different places:

    $ grep -r '{\.\.\.' src
    src/components/Footer.spec.js:  renderer.render(<Footer {...props} />)
    src/components/Header.spec.js:  renderer.render(<Header {...props} />)
    src/components/MainSection.js:            <TodoItem key={todo.id} todo={todo} {...actions} />
    src/components/MainSection.spec.js:  renderer.render(<MainSection {...props} />)
    src/components/TodoItem.spec.js:    <TodoItem {...props} />
    src/components/TodoTextInput.spec.js:    <TodoTextInput {...props} />

At build time, Babel transpiles this down to `Object.assign`, relying on the polyfill.

We should find out why the polyfill is not deduplicated correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170901/d6edfde7/attachment-0001.html>


More information about the webkit-unassigned mailing list