fisker Cheung
0d04d78367
Replace cosmiconfig with lilconfig ( #15232 )
2023-09-02 01:02:22 +08:00
renovate[bot] and fisker
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 Sosuke and fisker 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 Suzuki and fisker 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 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
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
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
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 Cheung and Georgii 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] and Georgii 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