├── .editorconfig ├── .github ├── FUNDING.yml └── workflows │ └── ci.yml ├── .gitignore ├── index.js ├── license ├── logo.png ├── package.json ├── readme.md └── test ├── fixtures ├── basic │ ├── expects.json │ ├── package.json │ └── src │ │ └── index.js ├── browser │ ├── expects.json │ ├── package.json │ └── src │ │ └── index.js ├── custom-entry │ ├── expects.json │ ├── lib │ │ └── entry.js │ └── package.json ├── custom-name │ ├── expects.json │ ├── package.json │ └── src │ │ └── index.js ├── custom-output │ ├── expects.json │ ├── package.json │ └── src │ │ └── index.js ├── exports-default-named │ ├── expects.json │ ├── output.cjs.js │ ├── package.json │ └── src │ │ └── index.js ├── exports-default │ ├── expects.json │ ├── output.cjs.js │ ├── package.json │ └── src │ │ └── index.js ├── exports-named-list │ ├── expects.json │ ├── output.cjs.js │ ├── package.json │ └── src │ │ └── index.js ├── exports-named │ ├── expects.json │ ├── output.cjs.js │ ├── package.json │ └── src │ │ └── index.js ├── exports-strings │ ├── expects.json │ ├── output.cjs.js │ ├── package.json │ └── src │ │ └── index.js ├── limits │ ├── expects.json │ ├── package.json │ └── src │ │ └── index.js ├── minify │ ├── expects.json │ ├── package.json │ └── src │ │ └── index.js ├── modes-1 │ ├── expects.json │ ├── package.json │ └── src │ │ ├── bar.js │ │ └── foo.js ├── modes-2 │ ├── expects.json │ ├── package.json │ └── src │ │ ├── bar.js │ │ └── foo.js ├── modes-entry-1 │ ├── expects.json │ ├── package.json │ └── src │ │ ├── bar.js │ │ └── foo.js ├── modes-entry-2 │ ├── expects.json │ ├── package.json │ └── src │ │ ├── bar.js │ │ └── foo.js ├── modes-limits-1 │ ├── expects.json │ ├── package.json │ └── src │ │ ├── bar.js │ │ └── foo.js ├── modes-limits-2 │ ├── expects.json │ ├── package.json │ └── src │ │ ├── bar.js │ │ └── foo.js ├── modes-types-1 │ ├── expects.json │ ├── package.json │ └── src │ │ ├── bar.d.ts │ │ ├── bar.js │ │ ├── foo.d.ts │ │ └── foo.js ├── modes-types-2 │ ├── expects.json │ ├── package.json │ └── src │ │ ├── bar.d.ts │ │ ├── bar.js │ │ ├── foo.d.ts │ │ └── foo.js ├── module │ ├── expects.json │ ├── package.json │ └── src │ │ └── index.js ├── umdmain │ ├── expects.json │ ├── package.json │ └── src │ │ └── index.js └── unpkg │ ├── expects.json │ ├── package.json │ └── src │ └── index.js └── index.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: lukeed 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/.gitignore -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/index.js -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/license -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/logo.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/readme.md -------------------------------------------------------------------------------- /test/fixtures/basic/expects.json: -------------------------------------------------------------------------------- 1 | { 2 | "cjs": "dist/basic.js" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/basic/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "basic" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/basic/src/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello world'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/browser/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/browser/expects.json -------------------------------------------------------------------------------- /test/fixtures/browser/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/browser/package.json -------------------------------------------------------------------------------- /test/fixtures/browser/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/browser/src/index.js -------------------------------------------------------------------------------- /test/fixtures/custom-entry/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/custom-entry/expects.json -------------------------------------------------------------------------------- /test/fixtures/custom-entry/lib/entry.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello world'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/custom-entry/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/custom-entry/package.json -------------------------------------------------------------------------------- /test/fixtures/custom-name/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/custom-name/expects.json -------------------------------------------------------------------------------- /test/fixtures/custom-name/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/custom-name/package.json -------------------------------------------------------------------------------- /test/fixtures/custom-name/src/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello world'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/custom-output/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/custom-output/expects.json -------------------------------------------------------------------------------- /test/fixtures/custom-output/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/custom-output/package.json -------------------------------------------------------------------------------- /test/fixtures/custom-output/src/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello world'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/exports-default-named/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-default-named/expects.json -------------------------------------------------------------------------------- /test/fixtures/exports-default-named/output.cjs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-default-named/output.cjs.js -------------------------------------------------------------------------------- /test/fixtures/exports-default-named/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-default-named/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-default-named/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-default-named/src/index.js -------------------------------------------------------------------------------- /test/fixtures/exports-default/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-default/expects.json -------------------------------------------------------------------------------- /test/fixtures/exports-default/output.cjs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-default/output.cjs.js -------------------------------------------------------------------------------- /test/fixtures/exports-default/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-default/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-default/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-default/src/index.js -------------------------------------------------------------------------------- /test/fixtures/exports-named-list/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-named-list/expects.json -------------------------------------------------------------------------------- /test/fixtures/exports-named-list/output.cjs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-named-list/output.cjs.js -------------------------------------------------------------------------------- /test/fixtures/exports-named-list/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-named-list/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-named-list/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-named-list/src/index.js -------------------------------------------------------------------------------- /test/fixtures/exports-named/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-named/expects.json -------------------------------------------------------------------------------- /test/fixtures/exports-named/output.cjs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-named/output.cjs.js -------------------------------------------------------------------------------- /test/fixtures/exports-named/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-named/package.json -------------------------------------------------------------------------------- /test/fixtures/exports-named/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-named/src/index.js -------------------------------------------------------------------------------- /test/fixtures/exports-strings/expects.json: -------------------------------------------------------------------------------- 1 | { 2 | "cjs": "dist/basic.js" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/exports-strings/output.cjs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-strings/output.cjs.js -------------------------------------------------------------------------------- /test/fixtures/exports-strings/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "basic" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/exports-strings/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/exports-strings/src/index.js -------------------------------------------------------------------------------- /test/fixtures/limits/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/limits/expects.json -------------------------------------------------------------------------------- /test/fixtures/limits/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/limits/package.json -------------------------------------------------------------------------------- /test/fixtures/limits/src/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello world'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/minify/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/minify/expects.json -------------------------------------------------------------------------------- /test/fixtures/minify/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/minify/package.json -------------------------------------------------------------------------------- /test/fixtures/minify/src/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello world'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-1/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-1/expects.json -------------------------------------------------------------------------------- /test/fixtures/modes-1/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-1/package.json -------------------------------------------------------------------------------- /test/fixtures/modes-1/src/bar.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello bar'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-1/src/foo.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello foo'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-2/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-2/expects.json -------------------------------------------------------------------------------- /test/fixtures/modes-2/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-2/package.json -------------------------------------------------------------------------------- /test/fixtures/modes-2/src/bar.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello bar'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-2/src/foo.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello foo'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-entry-1/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-entry-1/expects.json -------------------------------------------------------------------------------- /test/fixtures/modes-entry-1/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-entry-1/package.json -------------------------------------------------------------------------------- /test/fixtures/modes-entry-1/src/bar.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello bar'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-entry-1/src/foo.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello foo'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-entry-2/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-entry-2/expects.json -------------------------------------------------------------------------------- /test/fixtures/modes-entry-2/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-entry-2/package.json -------------------------------------------------------------------------------- /test/fixtures/modes-entry-2/src/bar.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello bar'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-entry-2/src/foo.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello foo'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-limits-1/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-limits-1/expects.json -------------------------------------------------------------------------------- /test/fixtures/modes-limits-1/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-limits-1/package.json -------------------------------------------------------------------------------- /test/fixtures/modes-limits-1/src/bar.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello bar'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-limits-1/src/foo.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello foo'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-limits-2/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-limits-2/expects.json -------------------------------------------------------------------------------- /test/fixtures/modes-limits-2/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-limits-2/package.json -------------------------------------------------------------------------------- /test/fixtures/modes-limits-2/src/bar.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello bar'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-limits-2/src/foo.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello foo'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-types-1/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-types-1/expects.json -------------------------------------------------------------------------------- /test/fixtures/modes-types-1/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-types-1/package.json -------------------------------------------------------------------------------- /test/fixtures/modes-types-1/src/bar.d.ts: -------------------------------------------------------------------------------- 1 | export default function (): string; 2 | -------------------------------------------------------------------------------- /test/fixtures/modes-types-1/src/bar.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello bar'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-types-1/src/foo.d.ts: -------------------------------------------------------------------------------- 1 | export default function (): string; 2 | -------------------------------------------------------------------------------- /test/fixtures/modes-types-1/src/foo.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello foo'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-types-2/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-types-2/expects.json -------------------------------------------------------------------------------- /test/fixtures/modes-types-2/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/modes-types-2/package.json -------------------------------------------------------------------------------- /test/fixtures/modes-types-2/src/bar.d.ts: -------------------------------------------------------------------------------- 1 | export default function (): string; 2 | -------------------------------------------------------------------------------- /test/fixtures/modes-types-2/src/bar.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello bar'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/modes-types-2/src/foo.d.ts: -------------------------------------------------------------------------------- 1 | export default function (): string; 2 | -------------------------------------------------------------------------------- /test/fixtures/modes-types-2/src/foo.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello foo'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/module/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/module/expects.json -------------------------------------------------------------------------------- /test/fixtures/module/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/module/package.json -------------------------------------------------------------------------------- /test/fixtures/module/src/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello world'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/umdmain/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/umdmain/expects.json -------------------------------------------------------------------------------- /test/fixtures/umdmain/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/umdmain/package.json -------------------------------------------------------------------------------- /test/fixtures/umdmain/src/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello world'; 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/unpkg/expects.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/unpkg/expects.json -------------------------------------------------------------------------------- /test/fixtures/unpkg/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/fixtures/unpkg/package.json -------------------------------------------------------------------------------- /test/fixtures/unpkg/src/index.js: -------------------------------------------------------------------------------- 1 | export default function () { 2 | return 'hello world'; 3 | } 4 | -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukeed/bundt/HEAD/test/index.js --------------------------------------------------------------------------------