502 Commits

Author SHA1 Message Date
Leah
89bcdffcd3 v0.12.0-next.2 v0.12.0-next.2 2019-06-15 02:49:32 +02:00
Leah
e6baa69ebb fix: preset-env should be in dependencies 2019-06-15 01:36:55 +02:00
Leah
afa2c9aad5 chore: add pure so we keep it in mind when the bug gets fixed 2019-06-15 01:31:15 +02:00
Jason Miller
8142733c75 Modern JS (#413) 2019-06-15 01:20:10 +02:00
Sebastián Lorenzo
6cc801c48f Fixed ES Modules bundle path (#310) 2019-06-14 00:07:21 +02:00
Jason Miller
1779edf4cd Fix shebang preservation (#417) 2019-06-13 23:46:57 +02:00
Leah
700d9549ac
Dev Branch (#400) 2019-06-12 22:59:51 +02:00
Leah
d32a50fb87 v0.12.0-next.1 0.12.0-next.1 2019-06-12 01:10:13 +02:00
Leah
905f62e6ab
feat: add support for Babel macros (#268) 2019-06-12 00:59:16 +02:00
Leah
042a80e34a fix: make the macro work 2019-06-12 00:54:19 +02:00
Leah
89d44cd051 fix: babel-custom was slightly to very broken 2019-06-12 00:54:15 +02:00
Federico Zivolo
8390705582 test: sample macro test 2019-06-12 00:25:08 +02:00
Federico Zivolo
2a92191698 feat: add support for Babel macros 2019-06-12 00:25:07 +02:00
Leah
c0a20dbe9c updates, fixes a useless Promise.resolve 2019-06-12 00:22:43 +02:00
Leah
f0e56e2cba fix typescript async 2019-06-07 19:23:05 +02:00
Leah
1066af7942 fix --no-compress and update snapshots until terser is fixed 2019-06-07 19:22:40 +02:00
Ward Peeters
0eadcd9bce feat(babel): merges babelrc with microbunde babel config (#396)
* feat(babel): merges babelrc with microbunde babel config

* update tests

* Fix README.md

Fix examples description

* remove unused rollup-plugin-flow dependency (#379)
2019-05-29 00:46:59 +02:00
Mateusz Burzyński
445fde2ff0 Preserve #__PURE__ annotations (#347) 2019-05-29 00:46:58 +02:00
Leah
22ec94a4c9 0.12.0-next.0 0.12.0-next.0 2019-05-29 00:46:58 +02:00
Ward Peeters
800be4c1d6 fix: allow disabling minification from cli (#395) 2019-05-29 00:46:58 +02:00
Leah
abdd87e804 fix: breaking updates 2019-05-29 00:46:57 +02:00
Jason Miller
f6dc730d6f
Merge pull request #399 from bautrukevich/patch-1
Fix README.md
2019-05-28 09:07:43 -04:00
Jason Miller
6786596d76 remove unused rollup-plugin-flow dependency (#379) 2019-05-28 08:24:10 -04:00
Siarhei Bautrukevich
093366cc3f
Fix README.md
Fix examples description
2019-05-28 08:29:41 +08:00
bors[bot]
ca64d122f3 Merge #362
362: chore: convert bublé to babel for es2015 compilation r=ForsakenHarmony a=wardpeet

Remove bublé and use babel instead. This gives us the opportunity to easily move to modern builds. The file sizes are all kept almost the same. The sizes are raw bytes which means gzip and brotli isn't used so the diff is going to be minimal.

I also added 2 scripts so we can generate these tables easier

Latest size report from travis:
https://travis-ci.org/developit/microbundle/builds/537119810#L330-L380

<details>
<summary>File sizes</summary>

| file                                           | bublé   | babel    |
|------------------------------------------------|---------|----------|
| alias/alias-mapping.js                         | 42      | 42       |
| alias/alias-mapping.mjs                        | 42      | 42       |
| alias/alias-mapping.umd.js                     | 121     | 121      |
| async-iife-ts/async-iife-ts.js                 | 116     | 116      |
| async-iife-ts/async-iife-ts.mjs                | 117     | 117      |
| async-iife-ts/async-iife-ts.umd.js             | 199     | 199      |
| async-iife-ts/index.d.ts                       | 0       | 0        |
| async-ts/async-ts.js                           | **104** | 120      |
| async-ts/async-ts.mjs                          | **108** | 132      |
| async-ts/async-ts.umd.js                       | **287** | 303      |
| async-ts/index.d.ts                            | 62      | 62       |
| basic/basic-lib.js                             | **468** | 502      |
| basic/basic-lib.mjs                            | **468** | 502      |
| basic/basic-lib.umd.js                         | **643** | 677      |
| basic-css/basic-css.css                        | 48      | 48       |
| basic-css/basic-css.js                         | 133     | 133      |
| basic-css/basic-css.mjs                        | 133     | 133      |
| basic-css/basic-css.umd.js                     | 308     | 308      |
| basic-json/basic-json.js                       | 168     | **113**  |
| basic-json/basic-json.mjs                      | 168     | **113**  |
| basic-json/basic-json.umd.js                   | 344     | **289**  |
| basic-multi-source/a.js                        | 53      | 53       |
| basic-multi-source/a.mjs                       | 54      | 54       |
| basic-multi-source/a.umd.js                    | 136     | 136      |
| basic-multi-source/b.js                        | 53      | 53       |
| basic-multi-source/b.mjs                       | 54      | 54       |
| basic-multi-source/b.umd.js                    | 136     | 136      |
| basic-ts/basic-lib-ts.js                       | **130** | 147      |
| basic-ts/basic-lib-ts.mjs                      | **123** | 140      |
| basic-ts/basic-lib-ts.umd.js                   | **299** | 316      |
| basic-ts/car.d.ts                              | 163     | 163      |
| basic-ts/index.d.ts                            | 78      | 78       |
| basic-tsx/basic-lib-tsx.js                     | **304** | 344      |
| basic-tsx/basic-lib-tsx.mjs                    | **305** | 346      |
| basic-tsx/basic-lib-tsx.umd.js                 | **482** | 522      |
| basic-tsx/index.d.ts                           | 51      | 51       |
| basic-with-cwd/basic.js                        | **464** | 498      |
| basic-with-cwd/basic.mjs                       | **464** | 498      |
| basic-with-cwd/basic.umd.js                    | **636** | 670      |
| class-decorators-ts/class-decorators-ts.js     | 591     | 591      |
| class-decorators-ts/class-decorators-ts.mjs    | 588     | 588      |
| class-decorators-ts/class-decorators-ts.umd.js | 771     | 771      |
| class-decorators-ts/index.d.ts                 | 168     | 168      |
| class-properties/class-properties.js           | 127     | 127      |
| class-properties/class-properties.mjs          | 122     | 122      |
| class-properties/class-properties.umd.js       | 312     | 312      |
| custom-source/custom-source.js                 | **472** | 506      |
| custom-source/custom-source.mjs                | **472** | 506      |
| custom-source/custom-source.umd.js             | **651** | 685      |
| custom-source-with-cwd/custom-src.js           | **469** | 503      |
| custom-source-with-cwd/custom-src.mjs          | **469** | 503      |
| custom-source-with-cwd/custom-src.umd.js       | **645** | 679      |
| default-named/default-named.js                 | 87      | 87       |
| default-named/default-named.mjs                | 97      | 97       |
| default-named/default-named.umd.js             | 269     | 269      |
| define/define.js                               | 35      | 35       |
| define/define.mjs                              | 35      | 35       |
| define/define.umd.js                           | 114     | 114      |
| esnext-ts/esnext-ts.js                         | 2095    | **1997** |
| esnext-ts/esnext-ts.mjs                        | 2096    | **1998** |
| esnext-ts/esnext-ts.umd.js                     | 2270    | **2172** |
| esnext-ts/index.d.ts                           | 48      | 48       |
| jsx/jsx.js                                     | **365** | 405      |
| jsx/jsx.mjs                                    | **366** | 407      |
| jsx/jsx.umd.js                                 | **535** | 575      |
| name-custom-amd/name-custom-amd.js             | **474** | 508      |
| name-custom-amd/name-custom-amd.mjs            | **474** | 508      |
| name-custom-amd/name-custom-amd.umd.js         | **654** | 688      |
| name-custom-cli/name-custom.js                 | **470** | 504      |
| name-custom-cli/name-custom.mjs                | **470** | 504      |
| name-custom-cli/name-custom.umd.js             | **650** | 684      |
| no-pkg/no-pkg.js                               | **465** | 499      |
| no-pkg/no-pkg.mjs                              | **465** | 499      |
| no-pkg/no-pkg.umd.js                           | **637** | 671      |
| no-pkg-name/no-pkg-name.js                     | **470** | 504      |
| no-pkg-name/no-pkg-name.mjs                    | **470** | 504      |
| no-pkg-name/no-pkg-name.umd.js                 | **646** | 680      |
| pretty/pretty.js                               | 12522   | 12522    |
| pretty/pretty.mjs                              | 12534   | 12534    |
| pretty/pretty.umd.js                           | 12704   | 12704    |
| raw/raw.js                                     | 2960    | 2960     |
| raw/raw.mjs                                    | 2972    | 2972     |
| raw/raw.umd.js                                 | 3139    | 3139     |
| shebang/shebang.js                             | 101     | 101      |
| shebang/shebang.mjs                            | 108     | 108      |
| shebang/shebang.umd.js                         | 284     | 284      |
| ts-mixed-exports/car.d.ts                      | 163     | 163      |
| ts-mixed-exports/index.d.ts                    | 95      | 95       |
| ts-mixed-exports/ts-mixed-exports.js           | **149** | 169      |
| ts-mixed-exports/ts-mixed-exports.mjs          | **144** | 168      |
| ts-mixed-exports/ts-mixed-exports.umd.js       | **333** | 353      |
</details>

Co-authored-by: Ward Peeters <ward@coding-tech.com>
2019-05-25 16:47:06 +00:00
Ward Peeters
3483790b01 add unit test for babelrc 2019-05-25 12:09:55 +02:00
Ward Peeters
34717de4d7 fix jsx pragmaFrag 2019-05-25 10:55:06 +02:00
Ward Peeters
25e5be728c cleanup comments 2019-05-25 10:55:05 +02:00
Ward Peeters
21a6c51a08 add esm to package;json 2019-05-25 10:55:03 +02:00
Ward Peeters
8f72b14fb0 fix snapshots 2019-05-25 10:55:02 +02:00
Ward Peeters
0633b7f6e8 default jsx to h 2019-05-25 10:55:01 +02:00
Ward Peeters
ad59f1a895 add script to generate csv output 2019-05-25 10:55:00 +02:00
Ward Peeters
27d1a8a689 update plugins with babel 2019-05-25 10:53:45 +02:00
Ward Peeters
a77ca66c1c remove debug 2019-05-25 10:53:43 +02:00
Ward Peeters
1cf6864116 remove bublé and run transpilation on babel 2019-05-25 10:53:42 +02:00
Jason Miller
f8e8cc8e67
Merge pull request #339 from jviide/config-file-off
Set the Babel plugin option "configFile" to false
2019-05-23 21:59:19 -04:00
Jason Miller
40bd4f1de6
Merge branch 'master' into config-file-off 2019-05-23 21:59:09 -04:00
Marvin Hagemeister
64086d1ef5
chore: add travis-size-report (#392)
chore: add travis-size-report
2019-05-17 15:41:18 +02:00
Ward Peeters
7882e48faf upgrade glob pattern 2019-05-16 13:10:13 +02:00
Ward Peeters
6995092144 copy correct command XD 2019-05-15 18:44:29 +02:00
Ward Peeters
a346c403c0 chore: add travis-size-report 2019-05-15 18:33:21 +02:00
Leah
d0e66da957
Rollup 1.0 + other updates (#361)
* Rollup fixes + other updates

* Move typescript cache to `node_modules/.cache`
2019-05-07 19:27:50 +02:00
Ward Peeters
8c4f5c2f85 refactor(jest): use it.each & remove sourcemaps from snapshots (#386) 2019-05-05 13:20:00 +02:00
Marvin Hagemeister
3f1d6b5b70
Merge pull request #377 from transitive-bullshit/master
Fix node-resolve warnings
2019-04-17 07:32:42 +02:00
Travis Fischer
061b972d3d fix node-resolve warnings 2019-04-17 00:52:36 -04:00
bors[bot]
16fcf6817c Merge #372
372: Support package.json source array r=ForsakenHarmony a=maraisr

With this PR, I am to solve issue #364, however I believe this shouldn't also need to support `source` that could be either a directory, or a file, or a glob. To keep things simple.

fixes #364

Co-authored-by: Marais Rossouw <me@maraisr.com>
2019-04-04 12:45:57 +00:00
Joachim Viide
c0a08b11c2
Merge branch 'master' into config-file-off 2019-04-03 20:02:15 +03:00
Marais Rossouw
5d8bee9ed0
chore: Iterate the array result, not the single 2019-04-03 08:02:11 +10:00
Marais Rossouw
076ce041c4
feat: Support source array 2019-04-03 07:59:21 +10:00
bors[bot]
71407a932e Merge #371
371: Snapshots need updating due to new build dependants r=ForsakenHarmony a=maraisr

With this PR I aim to fix issues that are caused by potentially merging #368 and #369.

Looks like with TypeScript 3.4, the output it produces is a little smarter in the way it's doing things. 

fixes #369, #369

Co-authored-by: Marais Rossouw <me@maraisr.com>
2019-04-02 13:37:16 +00:00