Closed Poetro closed 8 years ago
Something like
find(`${opts.lib}/${pattern}`, { ignore: opts.exclude }).map(f => {
You need to put **/*.jsx
as an include path as well, for it to be picked up by the optimised-modules.json
generation bit, I think. This bit does have to change to actually hook into babel as opposed to assume just whatever files are included is a module, but that's the workaround for now.
Fixed in #11, released as 0.1.2.
Currently the
optimised-modules.json
is generated from the source files insrc
, but it should generate it from the built files inlib
.This is specially the case for JSX files, where the file name does not match the
**/*.js
glob.