From 71b849c65f370b9b407962cc72d4674e1ddd0144 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:10:32 -0500 Subject: [PATCH] It works format Parse errors from content-tag and display them to the user as blocking errors before they can get more diagnostics transform-manager.ts, remove unneeded change rewrite-module: cleanup formatting Upgrade content-tag to 1.2.2 Use type provided by content-tag Acknowledge that content-tag works in bytes, not characters prettier --- packages/core/src/common/transform-manager.ts | 8 ++ .../src/transform/template/rewrite-module.ts | 113 +++++++++++++++++- .../-private/environment/preprocess.ts | 87 ++++++++++---- .../globals/index.d.ts | 3 +- .../package.json | 3 +- yarn.lock | 7 +- 6 files changed, 187 insertions(+), 34 deletions(-) diff --git a/packages/core/src/common/transform-manager.ts b/packages/core/src/common/transform-manager.ts index fd849f0e3..e9cd47886 100644 --- a/packages/core/src/common/transform-manager.ts +++ b/packages/core/src/common/transform-manager.ts @@ -85,6 +85,14 @@ export default class TransformManager { ); } + // When we have syntax errors we get _too many errors_ + // if we have an issue with