192 Commits

Author SHA1 Message Date
Ward Peeters
800be4c1d6 fix: allow disabling minification from cli (#395) 2019-05-29 00:46:58 +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
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
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
40bd4f1de6
Merge branch 'master' into config-file-off 2019-05-23 21:59:09 -04: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
Travis Fischer
061b972d3d fix node-resolve warnings 2019-04-17 00:52:36 -04: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
Joachim Viide
f3db566ef7 Set configFile: false for the Babel plugin handling node_modules 2019-03-19 16:15:20 +02:00
Jason Miller
e7d31ac9a3
Merge branch 'master' into replace-expressions-plugin 2019-03-19 10:07:59 -04:00
Jason Miller
898d6793e2
Merge branch 'master' into config-file-off 2019-03-19 10:00:16 -04:00
Joachim Viide
84276fbf71 Implement --define with babel-plugin-transform-replace-expressions 2019-03-12 01:31:36 +02:00
Jason Miller
ee9213ff17
Merge branch 'master' into patch-1 2019-03-08 22:29:07 -05:00
Joachim Viide
1e4e09b6a8 Set the Babel plugin option "configFile" to false 2019-03-05 01:37:24 +02:00
Jason Miller
cf00d7dad1 fix mangle.json always being generated 2019-03-04 18:29:37 -05:00
Andy Mockler
3061190751 Correct default --target option 2019-03-04 10:49:17 -05:00
Jason Miller
69b51655c5 lint fixes 2019-03-04 09:26:10 -05:00
Jason Miller
d94a50e0c2
Fix crasher 2019-03-04 09:20:51 -05:00
Jason Miller
8842f3eee1
Implement new minify config format 2019-03-04 09:07:25 -05:00
Jason Miller
9f9672a524
Add compressor options
This allows specifying Terser options in mangle.json or package.json's "mangle" field.
2019-03-03 23:10:05 -05:00
Joachim Viide
b1f16b3376 Fix rollup options - 'treeshake' should be a part of inputOptions 2019-02-23 19:33:06 +02:00
Joachim Viide
9e04a3d80a Set the number of terser passes to 10 2019-02-22 20:28:52 +02:00
Jason Miller
3d21c043c1 Make --define preserve boolean and integer literals by default instead of making everything a string. 2019-02-22 13:21:12 -05:00
Jason Miller
39dad8e724 Fix broken --alias option 2019-02-22 13:20:09 -05:00
Jason Miller
47a2e8661f
parseGlobals -> parseMappingArgument 2019-02-20 10:59:00 -05:00
Jason Miller
b270ab5b02
Merge branch 'master' into define-option 2019-02-20 10:58:07 -05:00
Jason Miller
cf0d53cd12 lint fixes 2019-02-13 19:53:11 -05:00
Jason Miller
1a9828e454 Add support for --alias 2019-02-13 16:01:53 -05:00
Jason Miller
3f6ba4c366
Don't inline NODE_ENV by default. 2019-02-13 14:23:11 -05:00
Jason Miller
58705aa582
Add proper parsing logic 2019-01-30 16:31:37 -05:00
Jason Miller
74fd71b6fc
Add --define option and usage 2019-01-30 16:28:47 -05:00
Jason Miller
b9d853eb50
Add define option
Same as Terser's `--define`
2019-01-30 16:26:26 -05:00
Matías Olivera
45e79ace3e Set package name when not exists
* Before pkgName was equal to undefined
* Allow passing no-pkg and no-pkg-name tests
2019-01-04 01:05:31 -03:00
Matías Olivera
64b08e853b Create getEntries function 2019-01-03 15:26:22 -03:00
Matías Olivera
b3ec030bb7 Create getOutput function 2019-01-03 15:18:40 -03:00
Matías Olivera
617c75acfa Create getInput function 2019-01-03 15:12:16 -03:00
Matías Olivera
3acca423bc Refactor the jsOrTs function
* Calc the extension and save it in a const to make the code simpler
2019-01-03 14:47:28 -03:00
Matías Olivera
3fc623a6b6 Move safeVariableName near getName
It is only called in getName
2018-12-25 20:54:51 -03:00
Matías Olivera
b696954a15 Create getName function 2018-12-25 20:46:39 -03:00
Matías Olivera
fd7b890cb8 Create getConfigFromPkgJson function 2018-12-25 20:01:41 -03:00
Matías Olivera
e9ee0c934d Create cwd constant and avoid multi assign
Avoid use of chained assignment expressions
https://eslint.org/docs/rules/no-multi-assign
2018-12-25 19:32:42 -03:00
Matías Olivera
49a96e52d7 Create an internal variable called options
Avoid mutate the options parameter. https://eslint.org/docs/rules/no-param-reassign.html
2018-12-25 19:24:56 -03:00
Leah
2dd10e5a1f
Merge branch 'master' into remove_import_pruning 2018-12-18 23:42:21 +01:00
Federico Zivolo
a474f417dc
Merge branch 'master' into fix/hoisted-packages 2018-12-11 15:31:20 +01:00