Open markerikson opened 3 years ago
Hi @markerikson - what is your build script like? I believe we infer from filenames passed as --input / position arts, but use the configured names when compiling from "source"
.
Right now all I'm doing is npm run microbundle
, where that's a run script that is also literally just "microbundle"
. So, something isn't adding up here.
Visual diff vs current RTK master
:
I am also facing the same issue using microbundle@0.13.0
. I have created repository with bare minimum code to reproduce this issue https://github.com/ppiyush13/microbundle-issue_825.
Simply execute npm run build
or yarn build
script to generate bundles in dist
directory.
I've got a similar issue - even though I have specified a filename with .mjs extension in exports
field, microbundle build
(0.13) seems to ignore it and still generates the standard set of files, i.e.
my-lib.js
my-lib.modern.js
my-lib.module.js
my-lib.umd.js
Any update ?
Customizing the file name with pkg.exports should be doable with #784, though that doesn't cover the full width of this issue.
I'm trying out Microbundle with https://github.com/reduxjs/redux-toolkit . For some reason, Microbundle seems to be ignoring the names that I've specified in the various
main/module/exports
fields, and is trying to reuse the the name frommain
for all output files.Here's what I'm seeing. Currently, I've got
package.json
configured with these file names:Microbundle reports this output:
And the output files are:
Those are clearly not the file names I specified. Is there something obvious I'm missing here?