Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[polymer-build] Polymer build so longgg #3417

Open
RoXuS opened this issue May 17, 2019 · 5 comments
Open

[polymer-build] Polymer build so longgg #3417

RoXuS opened this issue May 17, 2019 · 5 comments
Labels

Comments

@RoXuS
Copy link
Contributor

RoXuS commented May 17, 2019

hi team !

For some unknown reasons our polymer build takes a very long time (70 min on my macbook, 190 minutes on gitlab ci!), We have the standard esm-bundled + es6-bundled + es5-bundled, someone have the same issue?

{
  "builds": [
    {
      "name": "esm-bundled",
      "browserCapabilities": [
        "es2015",
        "modules"
      ],
      "js": {
        "minify": true
      },
      "css": {
        "minify": true
      },
      "html": {
        "minify": true
      },
      "bundle": true,
      "addServiceWorker": true
    },
    {
      "name": "es6-bundled",
      "browserCapabilities": [
        "es2015"
      ],
      "js": {
        "compile": "es2015",
        "minify": true,
        "transformModulesToAmd": true
      },
      "css": {
        "minify": true
      },
      "html": {
        "minify": true
      },
      "bundle": true,
      "addServiceWorker": true
    },
    {
      "name": "es5-bundled",
      "js": {
        "compile": "es5",
        "minify": true,
        "transformModulesToAmd": true
      },
      "css": {
        "minify": true
      },
      "html": {
        "minify": true
      },
      "bundle": true,
      "addServiceWorker": true
    }
  ]
}
@RoXuS RoXuS changed the title Polymer build so longgg [polymer-build] Polymer build so longgg May 17, 2019
@dejan9393
Copy link

I'm also experiencing slow build times when building esm, es6 and es5 builds. Not 70 minutes long, usually ~12 minutes for some of our larger projects, decreased slightly by upping the amount of CPU power the machine we're building on has.

Stumbled upon this while while googling for an answer to whether or not polymer build builds in parallel by default or if I'd have to use the polymer-build package to manually handle having the builds running in parallel

@matthiasabele
Copy link

Same problem here... as soon as the build is bundled, it gets really slow. Did anyone find a solution for this? Our application is growing, and build time is skyrocketing (3h47min at the moment)

@dejan9393
Copy link

dejan9393 commented Sep 26, 2019

Personally, we've moved away from Polymer Build and are instead using rollup directly to bundle our application into "modern" and "legacy" builds. We're using packages from the @open-wc recommendations site - they provide you a base setup for building WebComponents for the web (https://open-wc.org/building/building-rollup.html#configuration) and other tools for building, developing & testing.
Build times are many times quicker, but it is a bit more setup than simply running polymer-build

@jogibear9988
Copy link

#3458

@stale
Copy link

stale bot commented Sep 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants