Commit Graph
382 Commits
Author SHA1 Message Date
fisker Cheung e412b27db9 Fix package.json exports field (#13639) 2022-10-16 12:47:33 +08:00
fisker Cheung 2d0041cad5 Reduce size of index.mjs (#13636) 2022-10-16 12:13:19 +08:00
fisker Cheung 81ad8e9a50 Update yaml-unist-parser to v2 (#13638) 2022-10-16 11:53:24 +08:00
fisker Cheung df28f23429 Fix bundled index.cjs (#13627) 2022-10-13 17:05:20 +08:00
fisker Cheung 3ca842d81c Update @angular/compiler to v14 (#13609) 2022-10-11 11:26:30 +08:00
fisker Cheung 885c3c89ca Reduce size of typescript plugin (#13604) 2022-10-10 20:28:54 +08:00
renovate[bot]andfisker Cheung f4f36b94ec Update dependency angular-estree-parser to v3 (#13603)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-10-10 10:01:13 +08:00
fisker CheungandSosuke Suzuki 31a796d32c Restructure package files, add exports (#13530)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-10-06 15:20:19 +08:00
fisker Cheung 572452acf8 Reduce size of standalone.js (#13543) 2022-10-04 18:09:24 +08:00
fisker Cheung 3f21a973e1 Fix CJS proxy (#13535) 2022-09-27 11:13:44 +08:00
fisker Cheung bb2104dd7c Support optional chaining in .at() transform (#13528) 2022-09-26 22:54:17 +08:00
fisker Cheung 81a4d455f3 Build: Refactor build script (#13513) 2022-09-25 11:50:59 +08:00
fisker Cheung 08620b41eb Use ESM version of parsers in bundles (#13505) 2022-09-23 19:26:13 +08:00
fisker Cheung 1569db783b Rename bin-prettier.js bundle to bin-prettier.cjs (#13511) 2022-09-23 19:25:16 +08:00
fisker Cheung 5465517f4b Bundle third-party.js in ESM (#13509) 2022-09-23 19:24:54 +08:00
fisker Cheung 16c9d8bafe Bundle files in ESM (#13266) 2022-09-23 09:46:18 +08:00
fisker Cheung 77ac062120 Fix 2022-09-22 20:20:16 +08:00
fisker Cheung 7ccc4f55f2 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/modify-typescript-module.mjs
#	yarn.lock
2022-09-22 19:17:55 +08:00
fisker Cheung 8764a3d378 Improve typescript bundle speed (#13433) 2022-09-22 19:11:19 +08:00
fisker Cheung 824690fcc7 Allow parsers initialize asynchronously (#13449) 2022-09-22 15:13:37 +08:00
fisker Cheung 9bacc75772 Use .at() and Object.hasOwn() (#13482) 2022-09-18 17:50:14 +08:00
Sosuke Suzuki 8cfdcaa6b2 Use Object.hasOwn instead of Reflect.has in build script (#13495)
Use `Object.hasOwn` instead of `Reflect.has`
2022-09-18 18:32:17 +09:00
fisker Cheung 6082e3ec9e Remove outdated hack for flow parser (#13442) 2022-09-08 09:43:47 +08:00
Sosuke Suzuki e3ef1e4566 Drop Node.js 14 for development build (#13439)
* Drop Node.js 16 for development

* Fix engine

* Address review
2022-09-08 01:03:45 +09:00
renovate[bot]andfisker Cheung bd5f91545f Update dependency typescript to v4.8.2 (#13381)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-09-07 21:02:51 +08:00
fisker Cheung a6d6c9c3a2 Merge remote-tracking branch 'remotes/upstream/main' into next
# Conflicts:
#	scripts/build/config.mjs
2022-09-06 20:43:52 +08:00
fisker Cheung cd3e530c2e Reduce size of parser-typescript.js (#13431) 2022-09-06 20:38:50 +08:00
Sosuke Suzuki 503045c050 Use import() for postcss parsers (#13277)
* Import core parsers

* Import media parser

* Import selector parser

* Import value parser

* Remove require

* Improve imports

* Fix bundle config
2022-08-15 22:30:46 +09:00
fisker Cheung 2052ce5cb8 Bundle CLI as ES Module (#13091) 2022-08-11 14:08:08 +08:00
fisker Cheung a6661e850c Use import() in parsers (#13261) 2022-08-10 19:32:44 +08:00
fisker CheungandGeorgii Dolzhykov 0b9cb96f58 Remove support for custom parser api (#13250)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-08-08 01:09:10 +08:00
fisker Cheung f7cdd326f8 Minor refactor (#13221) 2022-08-05 19:48:42 +08:00
fisker Cheung 44d246a2a2 Support config file in ESM (#13130) 2022-08-01 10:51:31 +08:00
Sosuke Suzuki 75c8d46ab4 Drop Node.js 12 Support (#13118)
* Drop Node.js 12 Support

* Update CHANGELOG

* Update build target

* Comment out

* Remove node 14 from `exclude`

* Update CI

* Update changelog_unreleased/api/11830.md
2022-07-17 04:26:27 +09:00
Sosuke Suzuki 33fcc6c4dd Update requirements (#13117) 2022-07-17 00:08:47 +09:00
fisker Cheung 29f6bc2c6d Migrate third-party.js to ES Module (#13092) 2022-07-12 10:20:11 +08:00
renovate[bot]andfisker Cheung ba2192a134 Update dependency esbuild to v0.14.46 (#12999)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-06-19 19:12:51 +08:00
fisker Cheung c22ea97e00 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	scripts/build/config.mjs
#	src/language-html/print/tag.js
#	src/main/load-parser.js
#	src/main/parser.js
#	yarn.lock
2022-06-06 22:00:41 +08:00
fisker Cheung 83ec3c36e3 Build: stricter warning check (#12956) 2022-06-01 19:23:13 +08:00
fisker Cheung 567e4d9e79 Test: Use worker to run CLI test (#12705) 2022-05-10 15:42:11 +08:00
fisker Cheung ff98159873 Use named export in doc.js (#12789) 2022-05-07 01:37:40 +08:00
fisker Cheung fcc8c484c3 Use yarn 3 (#12599) 2022-05-06 20:27:33 +08:00
fisker Cheung cabc9e13b5 Fix some esbuild warnings (#12798) 2022-05-06 18:52:40 +08:00
fisker Cheung c1f6d021e5 Use named export instead of default export (#12740) 2022-05-05 15:03:08 +08:00
fisker Cheung fccf19503c Change plugin export style to named export (#12741) 2022-04-29 12:54:33 +08:00
fisker Cheung 3a852871a3 Fix createSandBox 2022-04-06 16:05:22 +08:00
fisker Cheung 6016404f59 Merge branch 'main' into next
# Conflicts:
#	.eslintrc.cjs
#	.github/workflows/prod-test.yml
#	.github/workflows/validate-vendors.yml
#	scripts/build/bundler.mjs
#	scripts/vendors/bundle-vendors.mjs
#	scripts/vendors/utils.mjs
#	scripts/vendors/vendor-meta.json
#	scripts/vendors/vendors.mjs
#	src/cli/logger.js
#	src/cli/options/get-options-for-file.js
#	src/cli/options/parse-cli-arguments.js
#	src/common/util.js
#	src/language-html/utils/html-tag-names.js
#	tests/integration/__tests__/bundle.js
#	tests/integration/__tests__/loglevel.js
#	tests/integration/run-prettier.js
#	vendors/string-width.js
2022-04-06 15:41:50 +08:00
fisker Cheung 687ca4b95d Drop Node.js 12 support for development "build" (#12557) 2022-04-03 01:42:20 +08:00
fisker Cheung caba818940 Bundle vendors from the source package (#12582) 2022-04-03 01:06:32 +08:00
fisker Cheung 3cbee742a7 Add please-upgrade-node back to CLI (#12448) 2022-04-03 00:04:45 +08:00