Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !189

Upgrade to webpack v2

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge webpack-v2 into master Jul 25, 2016
  • Overview 21
  • Commits 6
  • Pipelines 0
  • Changes 5

Created by: mxstbr

Ref #183 (closed)

This is a first step towards webpack 2. Everything builds and works just fine.

Build stats:

v1

4.0K    build/84287d09b8053c6fa598893b8910786a.svg
 28K    build/favicon.ico
4.0K    build/index.html
140K    build/main.c7a1d762a452b452a7e7.js
4.0K    build/main.7cbecfc47e1de8546c1a31e27e545145.css
4.0K    build/main.7cbecfc47e1de8546c1a31e27e545145.css.map
1.5M    build/main.c7a1d762a452b452a7e7.js.map

v2

4.0K    build/84287d09b8053c6fa598893b8910786a.svg
 28K    build/favicon.ico
4.0K    build/index.html
140K    build/main.3e41bc8b11563538fb8e.js
4.0K    build/main.5d2cacffab6444a5357d533f016e1b6d.css
4.0K    build/main.5d2cacffab6444a5357d533f016e1b6d.css.map

I think nothing is different because we have to not use babel-plugin-transform-es2015-modules-commonjs, which is what babel-preset-es2015-webpack does so we get the benefits of tree shaking.

Annoyingly we're using babel-preset-es2016, which doesn't have a babel-preset-es2016-webpack with babel-plugin-transform-es2015-modules-commonjs removed!

Would appreciate somebody forking babel-preset-es2016, removing that, publishing it and trying it with this PR!

I'm going to bed now, feel free to continue the work against the webpack-v2 branch!

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: webpack-v2