microbundle
microbundle copied to clipboard
📦 Zero-configuration bundler for tiny modules.
How to reproduce: 1. Clone https://github.com/daangn/urlpack 2. `cd urlpack/packages/msgpack` (https://github.com/daangn/urlpack/tree/main/packages/msgpack) 3. `yarn install` 4. `yarn _build` (`microbundle --format esm,cjs`) This always fails with an out-of-memory issue. on Node v14, v16,...
Packages that don't use the `output` flag or have a `"main"` in their `package.json` have their preferred filename output ignored. For example, say I have the following package: ``` {...
Microbundle supports providing a custom hash generator name for `CSS modules` by providing `--css-modules insertHashPatternHere` (eg.: `--css-modules _[hash:base64:5]`. ### The Bug But then Microbundle will also treat all CSS files...
Hey everyone! I am having the following issue, if I export like this: ```javascript import GoogleMap from './google_map'; export default GoogleMap; ``` It will build: ```javascript module.exports = GoogleMap; ```...
package.json: ``` "source": "src/index.tsx", "main": "dist/index.umd.js", "module": "dist/index.modern.module.js", "types": "dist/index.d.ts", ``` Upon importing this package in another package, our build only includes certain types, for others they are 'any'. Our...
[os]: - macOS Catalina 10.15.4 - nodejs v14.4.0 - microbundle 0.13.0 [error log]: ``` $ microbundle (babel plugin) SyntaxError: /Users/chudong/workBench/xxxxx/src/tracks/microphone_audio_track.ts: Unable to handle nested super.prop usage 42 | return new...
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...
This is re-open of #514. Unfortunately the issue takes place in version 0.13. See [gamtiq/microbundle-issue-514](https://github.com/gamtiq/microbundle-issue-514) to reproduce. Related pull request: #592
I have some code that imports a named export of a dependency as follows: ```js import { _fn } from '@x/y'; ... _fn(...); // calling _fn ``` With mangle configured...
Hi, I'm having trouble when building components that use Emotion's template literal syntax. ```js export const Component = styled.div` background-color: 'blue'; &:hover { background-color: 'red'; } ` ``` I get...