111 Commits

Author SHA1 Message Date
Andre Wiggins
00872218d6 Add debug output format 2025-10-23 18:29:37 -07:00
Luke Edwards
4b11285f27
chore: add licenses badge (#1074)
this service recursively checks/lists all licenses within a package's dependency graph. I remember there being a fair number of pieces involved here so was happy to see that all 400+ licenses involved are green!
2024-01-23 23:23:07 -06:00
Jude Agboola
4724a77991
remove brazillian-utils from readme (#1062) 2023-12-05 10:49:01 -06:00
Philipp Daun
3aca5a0a8f
Add swup to example projects (#1061) 2023-09-18 12:22:19 -05:00
Diego Tonini
ef8376ee90
chore: add eta js to readme (#1051) 2023-06-29 17:19:18 -05:00
Don McCurdy
105a09b9aa
Add glTF Transform to "Built with Microbundle" list (#1040) 2023-04-26 17:28:40 -05:00
Franco Arza
124c9c607c
Update README.md (#993) 2022-08-25 18:20:17 -05:00
Jeff Posnick
60b5edcf5d
Add example of exports.types field (#992)
* Add example of exports.types field

* Update README.md

Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
2022-08-23 16:00:40 -05:00
Nick Babcock
555088d17c
Remove mention of UMD support for web workers (#962)
* Remove mention of UMD support for web workers

OMT only supports amd or esm as output, so the readme should not
mention umd as supported.

When executing microbundle with umd format and `--workers`, the web
worker will fail to be detected or bundled.

* Update README.md

Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
2022-05-18 19:22:34 -05:00
DaviDevMod
d16a322db7
Fix typo in readme (#957) 2022-05-04 19:40:15 -04:00
Mohammed Anas
6c59174aad
Remove git.io usages (#952)
See https://github.blog/changelog/2022-04-25-git-io-deprecation/.
2022-04-28 13:48:21 -04:00
Ryan Christian
6f6e080f3b
refactor: Output ESM files w/ .mjs when appropriate (#950)
* fix: Output ESM w/ .mjs ext when pkg type is cjs

* docs: Adding changeset

* Update README.md

* Update README.md

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

* chore: Add warning for new ESM output extension behavior

* Update src/index.js

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2022-04-25 14:17:55 -05:00
Ryan Christian
242754f43c
feature: bundle visualizer (#949)
* feat: Add --visualizer flag to generate build output stats

Co-authored-by: Alex Hayton <alex.hayton@gmail.com>

* docs: Adding changeset

* chore: Removing & git ignoring stats.html

Co-authored-by: Alex Hayton <alex.hayton@gmail.com>
2022-04-25 14:16:17 -05:00
Ryan Christian
c4532cc9cc
docs: compress flag (#940)
* docs: Add info on --compress default value

* docs: Update CLI help menu --compress info

* docs: Adding changeset
2022-04-20 15:14:58 -05:00
Ryan Christian
fb0a43780a
chore: Adding flag & docs for jsxFragment (#930) 2022-03-03 18:09:14 +01:00
Aral Roca Gomez
75525a31dd
Add Teaful as "Built with Microbundle" in README (#910) 2021-11-17 18:39:55 +01:00
Ryan Christian
dd0bdde9c6
fix: Ensuring CLI & docs match up with each other (#904) 2021-11-17 18:38:19 +01:00
Jason Miller
afa74ca46b
[docs] Fix incorrect package exports recommendation (#903)
Fixes #902.
2021-10-21 11:06:48 -05:00
Ryan Christian
76272fdf03
docs: Adding comment about file inclusion in TS section (#888) 2021-10-06 10:05:51 -04:00
Marc Bouchenoire
1b61029664
Rebase: Add worker-loader (#867)
* Add worker-loader

Targets enhancement: https://github.com/developit/microbundle/issues/170
Enable usage of `microbundle --worker-loader` to apply rollup-plugin-web-worker-loader.

Allow bundling web workers automatically

- Add flag `--worker-loader`
- For format `es` and `modern`, a Worker `type: module` is automatically
bundled

* Update README.md

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

* Update src/index.js

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

* Update src/prog.js

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

* Update test/__snapshots__/index.test.js.snap

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

* Update test/fixtures/worker-loader/package.json

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

* Update README.md

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

* Remove node_modules from snapshot

* Upgrade rollup-plugin-off-main-thread

* Add changeset

Co-authored-by: Tim Daubenschütz <tim@daubenschuetz.de>
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2021-10-06 09:09:49 -04:00
Abdussamet Koçak
81088002d3
Fix typo (#856) 2021-06-16 16:34:24 +02:00
Ryan Christian
89ab03da09
docs: Swapping out references of ES format to ESM (#778) 2021-05-26 04:13:55 +02:00
Simon Legner
a415645ef4
README: syntax highlighting (#839) 2021-05-26 03:58:03 +02:00
Andreas Heissenberger
a7f7265727
wenn package.json "type":"module" switch default type to ".cjs" for CommonJS build (#802)
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2021-05-05 15:47:31 -04:00
Hyeseong Kim
25b73d22ca
feat: enabled config overriding by publishConfig (#834)
* feat: enabled config overriding by publishConfig

* add changesets

* update README

* Update odd-pets-type.md

Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2021-05-05 11:36:39 -04:00
Ludovico Fischer
2c9eaa1796
docs: use "exports" key in all examples (#794)
* docs: use "exports" key in all examples

Replace a leftover 'esmodule' key with the current recommendation.

* docs: add CommonJS bundle to exports

Co-authored-by: Jason Miller <developit@users.noreply.github.com>

* docs: consolidate `package.json` samples

Merge the two microbundle build examples and refer
to Node.js docs for more information on the different fields.

Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2021-05-05 11:07:37 -04:00
JounQin
54402ac43c
fix: add generateTypes cli option, check false value correctly (#830)
* fix: add generateTypes cli option, check false value correctly

* chore: add changeset file

* docs: cli option should be generateTypes

* chore: remove unnecessary comment
2021-05-05 10:51:54 -04:00
Ryan Christian
edcd777cfa
Fix/css module types (#823)
* fix: Ensures ambient types are included in publish

* docs: Adds note on TS + CSS Module usage

* docs: Adding changeset
2021-03-28 14:51:39 -04:00
David Wells
fa3eac6f49
Add missing ./ (#803)
Without this package imports fail on linux debian for some reason. ¯\_(ツ)_/¯

"SyntaxError: Cannot use import statement outside a module"
2021-02-08 19:11:12 -05:00
Jason Miller
94bd8ed904
Add link to inlining guide 2020-12-18 16:18:38 -05:00
Jason Miller
967f8d5327
Add --css inline option (#769)
* Add --css inline option

Fixes #744

* Add CLI option

* Add docs for --css and update --css-modules docs

* Create rude-keys-eat.md

* update snapshot
2020-12-18 14:55:00 -05:00
Ward Peeters
bd5d15e17c
chore: upgrade all dependencies (#738)
* chore: update dev dependencies

* chore: update non rollup deps

* upgrade rollup

* update rollup-plugin dependencies

* add changeset
2020-12-18 12:22:33 -05:00
Gregory
e2eabaef73
Document @ for the --define option (#692)
* Document @ for the --define option

I had to dig through the code in order to figure out how to replace an expression.
I was initially trying to do `microbundle --define global=window` which should actually be `microbundle --define @global=window`

* Add --define section to readme

Co-authored-by: Jason Miller <developit@users.noreply.github.com>
2020-12-17 20:22:56 -05:00
Jason Miller
360511bcfd
Update the readme to recommend package exports (#749)
* Update the readme to recommend package exports

* Update README.md

* Update README.md

* Update README.md
2020-12-17 10:20:29 -05:00
Cam Sloan
a6eb6e75b0
Update examples to reference preact/compat instead of preact (#750)
aliasing react=preact doesn't work because the main preact package actually doesn't contain any default exports. So the more likely example would be to reference preact/compat.
2020-11-09 15:10:42 +01:00
Colin van Eenige
d33a7ba2f5
Add jsxImportSource flag for new JSX runtime (#731)
Co-authored-by: Leah <github.leah@hrmny.sh>
2020-09-24 11:35:14 +02:00
Michel Weststrate
dfa25e082b
chore: documented the --no-compress option (#317)
Co-authored-by: Ward Peeters <ward@coding-tech.com>
2020-08-16 22:40:56 +02:00
Adrien Poly
58813871f4
[DOC] umd module default name is in camelCase not snake_case (#689)
unless I am mistaken the default export name for the module is in camelCase not snake
2020-07-29 11:52:20 -04:00
mukund
0317afd789
Clarify typescript declarations directory doc (#678)
See #673 

It's not possible to actually specify where to place the declarations file. This PR attempts to clarify the docs.
2020-07-08 12:31:29 +02:00
Tom Sherman
e0c368166d
Add TypeScript target and module settings explainer (#676) 2020-07-04 16:44:11 +02:00
Katja Lutz
f4ab33d3c7
feat: add --pkg-main option (#658) 2020-06-14 13:26:49 +02:00
Leah
68087fd627
Revert "Fix a mistake in the readme (#649)" (#651)
This reverts commit 9e41e740814df3bacbc89bec6e5305264f150751.
2020-06-05 22:00:29 +02:00
Alex Hayton
9e41e74081
Fix a mistake in the readme (#649) 2020-06-05 09:21:18 +02:00
Gareth Trufitt
a71918b452
Update option docs for --externals (default peerDependencies & dependencies) (#636) 2020-06-01 13:09:52 +02:00
Jason Miller
083297733d
Readme Tweaks (#628) 2020-05-22 18:29:59 +02:00
Jason Miller
a0525231a1
Clarify modern mode in the readme (#625) 2020-05-22 10:51:33 -04:00
Sean Bannister
cd207969ad
Documenting that --name also affects IIFE builds 2020-05-13 20:27:14 +10:00
Adrien Poly
0ae071973f
fix typo 2020-05-09 22:18:03 +02:00
Matt Hinchliffe
9cbc020305
Replace Bublé references in readme with Babel
Changed because this project no longer utilises Bublé, it was replaced with Babel in https://github.com/developit/microbundle/pull/362.
2020-05-09 11:12:05 +01:00
Jason Miller
4cd4275209
Document iife format (#601) 2020-05-06 11:13:26 +02:00