44 Commits
Author SHA1 Message Date
fisker Cheung 1997119021 Simplify lone surrogate check for meriyah (#19729) 2026-07-27 01:07:07 +08:00
Sam Zhouandfisker 9c0e48cd25 Switch to oxidized flow parser (#19398)
Co-authored-by: fisker <lionkay@gmail.com>
2026-06-23 08:44:23 +08:00
fisker Cheung c018e68c5e Refactor Object.{groupBy,hasOwn}() transform (#19218) 2026-05-27 15:19:05 +08:00
fisker Cheung 6ec71b6463 Use Object.groupBy() (#19217) 2026-05-27 14:30:27 +08:00
88ee8a5b3e Update babel to v8.0.0-rc.1 (#18822)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-01 08:57:18 +08:00
fisker Cheung 05c6090176 Build: mark polyfills pure (#18601) 2026-01-10 15:07:34 +08:00
renovate[bot]andfisker fad27abf37 chore(deps): update dependency meriyah to v7 (#18332)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-11-27 13:19:42 +08:00
fisker Cheung 7521852351 Refactor syntax transform for packages (#18275) 2025-11-18 20:40:21 +08:00
fisker Cheungandautofix-ci[bot] 011791fd6c Improve method transform (#18135)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-28 02:51:50 +08:00
Nicolò Ribaudoandfisker 6437b6dadf Update Babel to v8 (#15157)
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-24 10:31:22 +08:00
fisker Cheung 67329f4108 Use imports to replace hack in build script (#17953) 2025-09-24 08:24:17 +08:00
fisker Cheungandautofix-ci[bot] 7fb9875413 Allow plugin override builtin parsers when inferring parser (#17549)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-05 17:23:49 +08:00
renovate[bot]andfisker 1a48db46ed chore(deps): update dependency vnopts to v2.0.2 (#17221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-03-08 19:36:56 +08:00
fisker Cheung 6d265ec100 Use Array#findLastIndex (#16384) 2024-06-18 08:00:16 +09:00
fisker Cheung b9d0c993b9 Use Array#findLast() (#15805) 2023-12-28 23:44:13 +09:00
fisker Cheung 0d04d78367 Replace cosmiconfig with lilconfig (#15232) 2023-09-02 01:02:22 +08:00
renovate[bot]andfisker b4082cb647 chore(deps): update babel to v7.22.10 (#15236)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-08-15 18:01:24 +08:00
fisker Cheung f24132eda3 Make chalk/assert shim a Proxy (#15234) 2023-08-15 09:11:53 +08:00
SUZUKI Sosukeandfisker Cheung 00e59ed008 Transform .at to property access to improve performance (#14590)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-03-26 04:14:48 +09:00
fisker Cheung 9eafbf6854 Enable unicorn/prefer-string-replace-all rule (#13788) 2022-11-06 19:55:24 +08:00
fisker Cheung bb2104dd7c Support optional chaining in .at() transform (#13528) 2022-09-26 22:54:17 +08:00
fisker Cheung 9bacc75772 Use .at() and Object.hasOwn() (#13482) 2022-09-18 17:50:14 +08:00
fisker Cheung 21c68e36ae Build: migrate scripts/shims/* to ESM (#12371) 2022-03-25 16:37:34 +08:00
fisker Cheung 541eec5b9c Replace parent-module (#12455) 2022-03-15 08:57:54 +08:00
fisker Cheung e3efd11401 Drop color support for standalone build (#12182) 2022-01-28 18:27:27 +08:00
fisker Cheung d5bf36060f Exclude process shim (#12149) 2022-01-26 19:08:55 +08:00
fisker Cheung 2c5839b4ac Exclude assert shim (#12147) 2022-01-26 08:56:44 +08:00
fisker Cheung cc6856ae20 Build: Switch to esbuild (backport #12052 and #10006) (#12055) 2022-01-14 15:58:13 +08:00
Sosuke Suzukiandfisker Cheung 2664fcb2ba Enable import/no-anonymous-default-export (#11478)
* Enable import/no-anonymous-default-export

* Add names to default exported

* More

* Ignore shims

* Update scripts/build/config.mjs

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* lint  for shims

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-09-10 11:17:09 +09:00
Sosuke Suzukiandfisker 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
Sosuke Suzukiandfisker 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
dependabot[bot]andfisker 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]andfisker 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 e8b299d164 Rename native shims to .mjs (#9079) 2020-08-28 10:03:36 +08:00
fisker Cheung ab1ea713d6 Missing files on lint (#8127) 2020-04-23 19:33:40 +08:00
fisker Cheung e2e534df30 Remove normalize-path package (#7465)
* Remove `normalize-path` module

* Try run all tests on `standalone`

* Restore test

* Add `no-parser-tests`

* Fix issue with shim

* DRY

* Rename tests

* Use `endsWith`
2020-02-03 01:33:19 +02:00
fisker CheungandGeorgii Dolzhykov 0e17ba0fe1 Update chalk to v3 (#7259)
* Update `chalk` to v3

* Shim `tty`

* add tty to EXTERNALS in bundler.js

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-01-22 15:36:07 +02:00
dependabot-preview[bot]andGeorgii Dolzhykov c6c4523cb7 Bump @typescript-eslint/typescript-estree from 2.11.0 to 2.16.0 (#7317)
* Bump @typescript-eslint/typescript-estree from 2.11.0 to 2.16.0

Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.11.0 to 2.16.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/typescript-estree/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.16.0/packages/typescript-estree)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* stub path.isAbsolute

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-01-15 15:11:38 +03:00
dependabot-preview[bot] 5458fb5f17 Bump @typescript-eslint/typescript-estree from 2.6.0 to 2.6.1 (#6805)
* Bump @typescript-eslint/typescript-estree from 2.6.0 to 2.6.1

Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/typescript-estree/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.6.1/packages/typescript-estree)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* add shim for path.extname
2019-11-06 20:45:09 +01:00
Ika 13147facc5 feat(html): switch to htmlparser2 (#5127)
- switch to [`htmlparser2`](https://github.com/fb55/htmlparser2)
  - no need to fork
  - won't generate pseudo nodes ([`parse5` will](https://github.com/prettier/prettier/issues/5098#issuecomment-423055181))
  - should be [faster](https://github.com/fb55/htmlparser2#performance)
- support custom self-closing tags
- support HTML entities
- remove extra trailing newline for `<template>`
- distinguish empty/empty-string attributes (`<tag x>`/`<tag x="">`)
- rename `--parser parse5` with `--parser html`
- enable `html` since 1.15, which means it's enabled by default if you install the dev version from GitHub after this PR merged.
2018-09-22 21:53:38 +08:00
Ika dcf44ffbdc feat: support YAML (#4563)
* feat: support YAML

* fix: do not indent sequence in mappingValue

* docs: add yaml to index.md

* fix: reduce `SyntaxError: Node#parse consumed no characters`

* chore: remove old-build and new-worker.js

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* fix: no space after `<<`

* fix: add yaml to standalone test

* test: add tests

* fix: next empty line in flow collection

* fix: tabs are not allowed
http://yaml.org/spec/1.2/spec.html#space/indentation/

* fix: update parser

* feat: rewrite the mappingItem logic
* feat: indent sequence in mapping
* feat(doc): add ifBreak#groupId and group#id

* chore: fix node 4

* chore: add tools_yaml.svg

* chore: remove resolved TODO

* refactor: remove unnecessary workaround

* chore(worker): importScriptOnce

* chore(build): rename with babelPlugins

* make it rollup compatible

* feat: support singleQuote

* refactor
2018-06-21 10:29:42 +08:00
Lucas Duailibe f0907a049d chore(rollup): Refactor native shims plugin 2018-06-13 12:49:35 -03:00
Lucas Duailibe 889b7dab79 Run tests using the standalone build in an empty context (#4668)
Validate that our build is stripping all the "native" dependencies (native modules and env vars).
2018-06-12 15:05:40 -03:00
Lucas Duailibe 52a2a46b3c New build system (#4449) 2018-05-24 15:30:45 -03:00