PolymerX / polymer-skeleton

:skull: Skeleton for Polymer 3 app with Webpack, PostCSS and Service Workers ready.
https://polymer-skeleton.herokuapp.com
MIT License
177 stars 23 forks source link

Transpile @polymer but not all of node_modules #309

Open leegee opened 5 years ago

leegee commented 5 years ago

https://github.com/PolymerX/polymer-skeleton/blob/0da8b09e20fb994586ed9b474bf2814deaed4257/webpack.config.js#L134

Since we can use a regexp, we can use its less commonly-used negative lookahead operator:

/node_modules\/(?!(@?polymer))/

LasaleFamine commented 5 years ago

Hi @leegee, thank you for reporting this one, would you like to open a PR for this?