dimkir / ssce-libs-not-transpiled

SSCE example of webpack not transpiling _selected_ libraries in node_modules
0 stars 0 forks source link

without babel-loader as expected no-transpilation for index.js or auto-bind/index.js #1

Open dimkir opened 5 years ago

dimkir commented 5 years ago

Just setting baseline for our future comparisons:

As expected arrow function not transpiled in index.js image

As expected arrow function not transpiled in auto-bind/index.js

image

dimkir commented 5 years ago

Adds babel-loader with simple settings b57975a603651b7d85c19eb2dec75931981de893

Looks like with default transpilation settings, auto-bind is transpiled (and so is index.js)

image


image


image

dimkir commented 5 years ago

Looks like exclude has precedence over include/test:

Once I added exclude option, it now skips transpiling the whole of the node_modules folder. image


But it still transpiled the index.js

image

dimkir commented 5 years ago

Just by adding exclude, we get problems with the non-ES5 libraries.

image