zambezi / ez-build

Zambezi build tool
MIT License
2 stars 1 forks source link

Generate `optimised-modules.json` from the compiled files #10

Closed Poetro closed 8 years ago

Poetro commented 8 years ago

Currently the optimised-modules.json is generated from the source files in src, but it should generate it from the built files in lib.

This is specially the case for JSX files, where the file name does not match the **/*.js glob.

Poetro commented 8 years ago

Something like

        find(`${opts.lib}/${pattern}`, { ignore: opts.exclude }).map(f => {
mstade commented 8 years ago

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.

mstade commented 8 years ago

Fixed in #11, released as 0.1.2.