fisker Cheung
d3b777dd7d
Update build script ( #10946 )
2021-05-27 08:54:42 +08:00
fisker Cheung
c286d847d9
Remove more Array#reduce() ( #10907 )
2021-05-24 01:26:00 +03:00
fisker Cheung
f4a6232848
Switch some scripts to ESM ( #10867 )
2021-05-15 20:09:52 +08:00
fisker Cheung
2eb2df6ed2
Update babel config ( #10855 )
2021-05-12 08:11:43 +08:00
fisker Cheung
98abb990cc
Use Object.fromEntries(), Array#flat() and Array#flatMap() ( #10853 )
2021-05-12 01:05:29 +08:00
fisker Cheung
b7983971ce
Drop Node.js 10 support for development "build" ( #10842 )
2021-05-11 08:52:38 +08:00
fisker Cheung
94775e88ef
Build: Fix rollup warning ( #10487 )
2021-03-08 17:08:47 +02:00
fisker Cheung
64a3906571
Enable unicorn/prefer-optional-catch-binding ( #9464 )
2021-02-25 18:28:55 +08:00
fisker Cheung
a1ba8fb812
Build: Add rollup-plugin-polyfill-node ( #10249 )
2021-02-08 09:50:43 +08:00
fisker Cheung
ce26805e84
Enable unicorn/prefer-spread ( #10129 )
2021-01-26 09:46:14 +08:00
Sosuke Suzuki
fbb3c421e5
Remove workaround for rollup/plugin-node-resolve 11 ( #10075 )
2021-01-18 16:51:00 +09:00
Sosuke Suzuki
671fa5ddaf
Move checkCache to Cache class ( #10029 )
...
* Move checkCache to Cache class
* Address reviews
2021-01-11 13:25:34 +09:00
Sosuke Suzuki and fisker Cheung
e70ad5b7fb
Check cache only when purge-cache is off ( #10031 )
...
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-01-11 10:24:24 +08:00
Sosuke Suzuki
e2c84527e7
Use fs.promises in build script ( #10025 )
2021-01-09 02:09:40 +09:00
Sosuke Suzuki
de882505f0
Fix params mistaking at #9900 ( #9912 )
2020-12-16 18:46:56 +09:00
Sosuke Suzuki
cb6a977733
Prints bundle sizes in build script log ( #9900 )
...
* Prints bundle size with flags
* Add "gzipped" to cspell.json
* Print esm bundle size
* Remove gzipped size from log
2020-12-16 08:45:29 +09:00
dependabot[bot] and fisker
bce3500b5e
Build(deps-dev): Bump @rollup/plugin-node-resolve from 10.0.0 to 11.0.0 ( #9804 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-12-02 16:57:15 +08:00
Sosuke Suzuki
083b501663
Refactor: Make Cache modern in build scripts ( #9809 )
...
* Make cache class
* equal -> strictEqual
* Use strict mode assert module
2020-12-02 15:03:32 +09:00
fisker Cheung
11ac80f64e
Build: Fix rollup warning ( #9808 )
2020-12-02 11:10:53 +08:00
Sosuke Suzuki and fisker Cheung
4cc149248a
Support TypeScript 4.1 via typescript-estree ( #9636 )
...
* Update typescript and typescript-estree
* Add AST transformation for TSTemplateLiteralType
* Update tests for template-literal-types
* Fix transformChainExpression
* Update tests for key-remapping-in-mapped-types
* Implement recoverInvalidDecorators
* Update changelog
* Avoid typecheck error
* Add os.platform() shim
* Update config.js
* Update config.js
* Shim os.cpus
* Update `process.versions.node`
* Attempt to fix build
* Update ts parserOptions
* Fix code style
* Remove `errorOnUnknownASTType`, fix code style
* Use `[] ||` instead of `[] //`
* Fix hack
* Add invalid tests
* checkMissingDecorators
* Update tests
* Fix tests
* Add comment
* Revert "Implement recoverInvalidDecorators"
This reverts commit 27e7b46ed41df36fb585791117c85e1b2dab932c.
* Add ref pr link
* Simplify logic
* Don't transform `TSTemplateLiteralType`
* Add `TSTemplateLiteralType` as simple type
* Fix tests
* Update comments
* Add comment
* Fix logic
* Minor tweak
* use multiple parsers
* Update @typescript-eslint/typescript-estree to v4.8.0
* Switch to `parseWithNodeMaps`
* Rename `esNode` -> `esTreeNode`
* Update @typescript-eslint/typescript-estree to 4.8.1-alpha.1
* Use @typescript-eslint/typescript-estree 4.8.1
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2020-11-18 10:59:58 +09:00
fisker Cheung
3d7016e2dc
Add meriyah parser ( #9514 )
2020-11-05 14:08:37 +08:00
Sosuke Suzuki and fisker
f7554c62a2
Revert breaking changes related to adding pure css parser for minor releasing ( #9500 )
...
* revert without tests
* Downgrade postcss-scss and postcss-less
* Fix tests
* Revert "Make `isSCSS*` function stricter (#9093 )"
This reverts commit 01f986bea9 .
* Revert "Remove `css` parser from `isLessParser` check (#9092 )"
This reverts commit c0bca1805d .
* Revert "Add pure css parser (#7933 )"
This reverts commit 589ebf670b .
* Disable `parser-postcss.js` minify
* Try to fix build script
* Update fs.mjs
* Update fs.mjs
* Style
Co-authored-by: fisker <lionkay@gmail.com >
2020-10-31 22:22:35 +09:00
fisker Cheung
fb07399ac5
Playground: only build needed files ( #9480 )
2020-10-26 09:44:09 +08:00
fisker Cheung
e32cd5d284
Fix missing esm files in dist/package.json ( #9491 )
2020-10-26 09:07:44 +08:00
dependabot[bot] and fisker
7f9444eb21
Build(deps): Bump postcss from 8.1.1 to 8.1.2 ( #9443 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-10-23 20:44:04 +08:00
dependabot[bot] and fisker
5af5fa7a66
Build(deps-dev): Bump webpack from 4.44.2 to 5.1.0 ( #9373 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-10-22 13:32:50 +08:00
fisker Cheung and Chris Brody
73e3976c34
Add espree parser ( #9000 )
...
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
2020-10-13 09:14:02 +08:00
dependabot[bot] and fisker
0f595eae07
Build(deps): Bump @glimmer/syntax from 0.61.2 to 0.62.0 ( #9240 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-09-27 08:52:51 +08:00
dependabot[bot] and fisker
b084a84df0
Build(deps-dev): Bump @rollup/plugin-commonjs from 14.0.0 to 15.1.0 ( #9253 )
...
* Build(deps-dev): Bump @rollup/plugin-commonjs from 14.0.0 to 15.1.0
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins ) from 14.0.0 to 15.1.0.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v14.0.0...commonjs-v15.1.0 )
Signed-off-by: dependabot[bot] <support@github.com >
* Try `requireReturnsDefault: "preferred"`
* Size check `.mjs`
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-09-22 13:05:31 +03:00
Yuku Kotani and fisker
549090a5ba
Add ESM distributions for browser ( #8983 )
...
Co-authored-by: fisker <lionkay@gmail.com >
2020-09-17 00:08:44 +08:00
fisker Cheung
e8b299d164
Rename native shims to .mjs ( #9079 )
2020-08-28 10:03:36 +08:00
fisker Cheung
5223b78dcd
Build: Quick fix for #8639 ( #9035 )
...
* Quick fix for #8639
* style
* style (prettier)
2020-08-24 19:19:13 +09:00
fisker Cheung
5a62566cee
Build: parser-flow.js use strict mode ( #8311 )
2020-08-21 09:15:35 +08:00
fisker Cheung
cb231e12bd
Build: remove extra global objects exposed by UMD bundles ( #8989 )
2020-08-18 21:52:56 +08:00
fisker Cheung
038d1642b2
Build: remove --max-old-space-size ( #8994 )
2020-08-18 21:52:02 +08:00
fisker Cheung
b8a3f84c19
Build: Avoid PREFER_NAMED_EXPORTS warning ( #8814 )
2020-07-24 13:01:43 +08:00
fisker Cheung
8c00ad44df
Build: Simplify transform-custom-require plugin ( #8735 )
2020-07-20 18:35:28 +08:00
dependabot[bot] and fisker
446bc53e29
Build(deps): Bump typescript from 3.9.6 to 3.9.7 ( #8779 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-07-17 23:56:36 +08:00
fisker Cheung
f8e6c215ce
Refactor: Move parsers to language index ( #8765 )
2020-07-17 09:06:00 +08:00
fisker Cheung
0c2b918078
ESLint: enable import/order ( #8635 )
2020-06-26 20:30:21 +08:00
fisker Cheung
e8be12a6eb
Build: Auto set parsers as external ( #8639 )
...
* Auto set parsers as external
* Update bundler.js
2020-06-25 00:01:17 +03:00
b3ea679958
Fix encoding in postcss-parser build ( #8534 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
Co-authored-by: fisker <lionkay@gmail.com >
2020-06-12 09:12:42 +08:00
fisker Cheung
786eb2afb3
Build: Fix @rollup/plugin-commonjs warning ( #8406 )
...
* Fix `@rollup/plugin-commonjs` warning
* Fix comment
2020-05-26 16:18:59 +08:00
dependabot-preview[bot] and fisker
9c2e9d5eb3
Bump @rollup/plugin-node-resolve from 7.1.3 to 8.0.0 ( #8370 )
...
* Bump @rollup/plugin-node-resolve from 7.1.3 to 8.0.0
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins ) from 7.1.3 to 8.0.0.
- [Release notes](https://github.com/rollup/plugins/releases )
- [Commits](https://github.com/rollup/plugins/compare/node-resolve-v7.1.3...node-resolve-v8.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Fix import
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com >
2020-05-21 14:01:51 +03:00
fisker Cheung
23567c4e43
Switch rollup-plugin-babel to @rollup/plugin-babel ( #8282 )
...
* Switch `rollup-plugin-babel` to `@rollup/plugin-babel`
* Add `babelHelpers: "bundled"`
* Update cache version
* Remove `babelHelpers` for webpack
* Move `babelHelpers` to rollup only
2020-05-11 21:27:54 +03:00
fisker Cheung
ee46379ce9
Minify standalone.js ( #8270 )
2020-05-11 18:00:22 +08:00
fisker Cheung
c521d20c85
Build: Remove working directory from parser-typescript.js ( #8269 )
2020-05-11 09:23:13 +08:00
fisker Cheung
9686475c80
Test: Remove graceful-fs hack ( #8245 )
2020-05-11 09:05:48 +08:00
fisker Cheung
c768be4dd3
Switch dedent to outdent ( #8240 )
2020-05-11 09:05:06 +08:00
fisker Cheung
01c2015f72
Update CI cache key ( #8236 )
...
* Update CI cache key
* Update build script, expect missing cache
2020-05-07 03:51:25 +08:00