jgoz / esbuild-plugins Goto Github PK
View Code? Open in Web Editor NEWMy esbuild plugins monorepo
License: MIT License
My esbuild plugins monorepo
License: MIT License
This took me a while to pin down, but I have discovered that sometimes (specific types of error) messageText
from TS diagnostics is not a string, it is actually an object with nesting:
{
// ...stuff
"start": 335,
"length": 15,
"code": 2322,
"category": 1,
"messageText": {
"messageText": "Type '(thing: ThingInput) => Promise<{ thingName: string; thingId: string; }>' is not assignable to type 'EntityCreator<ThingInput>'.",
"category": 1,
"code": 2322,
"next": [
{
"messageText": "Type 'Promise<{ thingName: string; thingId: string; }>' is not assignable to type 'Promise<NameAndId>'.",
"category": 1,
"code": 2322,
"next": [
{
"messageText": "Type '{ thingName: string; thingId: string; }' is missing the following properties from type 'NameAndId': name, id",
"category": 1,
"code": 2739
}
]
}
]
}
}
Because of this, this check in the worker means those diagnostics are not output in the errors array.
if (typeof messageText !== "string")
continue;
Notably the output
key does have the error in since its not subject to these checks and the errorCount
is correct.
I believe this could be fixed by using flattenDiagnosticMessageText
I just don't like empty lines in output.
Can you please check if msg.output
is empty and skip console.error call if it is?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
Dockerfile
mcr.microsoft.com/playwright v1.41.2-focal
.github/workflows/build.yml
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
actions/cache v3
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
changesets/action v1
package.json
@awesome-code-style/eslint-config ^5.0.0
@awesome-code-style/prettier-config ^5.0.0
@changesets/cli ^2.27.1
@tsconfig/node16 ^16.1.1
@typescript-eslint/eslint-plugin ^6.15.0
@typescript-eslint/parser ^6.15.0
esbuild ^0.20.0
eslint ^8.56.0
eslint-config-prettier ^9.1.0
eslint-plugin-import ^2.29.1
eslint-plugin-simple-import-sort ^10.0.0
eslint-plugin-unused-imports ^3.1.0
execa ^5.0.0
prettier ^3.2.5
tslib ^2.6.2
typedoc ~0.22.0
typescript ^5.3.3
node 20.11.0
packages/esbd/package.json
@playwright/test ^1.41.2
@types/js-beautify ^1.14.3
@types/pretty-time ^1.1.5
@types/serve-static 1.15.5
@types/wait-on ^5.3.4
cleye ^1.3.2
esbuild ^0.20.0
execa ^5.0.0
get-port ^5.0.0
io-spin ^0.4.1
js-beautify ^1.14.11
memfs ^3.5.3
node-graceful ^3.1.0
parse5 ^7.1.2
picocolors ^1.0.0
pretty-bytes ^5.6.0
pretty-time ^1.1.0
react ^18.2.0
react-dom ^18.2.0
serve-static ^1.15.0
tslib ^2.6.2
typescript ^5.3.3
vite ^5.1.1
vitest ^1.2.2
wait-on ^7.2.0
esbuild 0.17.x || 0.18.x || 0.19.x || 0.20.x
packages/esbuild-overlay/package.json
@tsconfig/svelte ^5.0.2
esbuild ^0.20.0
esbuild-svelte ^0.8.0
prettier ^3.2.5
svelte ^3.58.0
svelte-check ^3.6.4
svelte-preprocess ^5.1.3
tslib ^2.6.2
typescript ^5.3.3
esbuild >= 0.13.0
packages/esbuild-plugin-html/package.json
@types/js-beautify ^1.14.3
@types/node ^20.11.17
esbuild ^0.20.0
js-beautify ^1.14.11
parse5 ^7.1.2
typescript ^5.3.3
vite ^5.1.1
vitest ^1.2.2
esbuild >= 0.13.0
packages/esbuild-plugin-livereload/package.json
@playwright/test ^1.41.2
@types/node ^20.11.17
esbuild ^0.20.0
esbuild-svelte ^0.8.0
get-port ^5.0.0
open-editor ^4.1.1
prettier ^3.2.5
svelte ^3.58.0
svelte-check ^3.6.4
svelte-preprocess ^5.1.3
tslib ^2.6.2
typescript ^5.3.3
esbuild >= 0.13.0
packages/esbuild-plugin-sass/package.json
@types/js-beautify ^1.14.3
@types/node-sass ^4.11.7
autoprefixer ^10.4.17
enhanced-resolve ^5.15.0
esbuild ^0.20.0
js-beautify ^1.14.11
postcss ^8.4.35
postcss-preset-env ^9.3.0
sass ^1.70.0
typescript ^5.3.3
vite ^5.1.1
vitest ^1.2.2
esbuild >= 0.13.0
sass >= 1.x
packages/esbuild-plugin-typecheck/package.json
@types/node ^20.11.17
esbuild ^0.20.0
execa ^5.0.0
memfs ^3.5.3
picocolors ^1.0.0
prettier ^3.2.5
tslib ^2.6.2
typescript ^5.3.3
unionfs ^4.5.1
vite ^5.1.1
vitest ^1.2.2
@jgoz/esbuild-plugin-livereload >=2.0.4
esbuild 0.17.x || 0.18.x || 0.19.x || 0.20.x
typescript >= 3.5
packages/jest-esbuild/package.json
babel-plugin-jest-hoist ^29.6.3
jest-util ^29.7.0
@babel/core ^7.23.9
@jest/transform ^29.7.0
@types/babel__core ^7.20.5
@types/jest ^29.5.12
@types/node ^20.11.17
esbuild ^0.20.0
jest ^29.7.0
prettier ^3.2.5
tslib ^2.6.2
typescript ^5.3.3
@babel/core >= 7.0.0
esbuild >= 0.14.51
jest 28 || 29
Should be enough just to bump the version:
The error overlay does not seem to appear, so far I haven't seen it any circumstance even when esbuild encounters an error. Is there any configuration that needs to be set for it to work?
I found that there's this package, but it seems that's only intended for using within esbuild-plugin-livereload
.
Do you think there's something I'm doing wrong or could there be a bug that causes the error overlay not to appear?
The plugin '@jgoz/esbuild-plugin-html' reads the template file only once during plugin initialization. If the file changes, outdated data is processed in the OnEnd. I'm using esbuild in watch mode. It would be good if the template is always read from the disk in the OnEnd
First off, I'm loving the plugin, really nice job, but there's a problem, my build is always completed successfully even with type errors, I'd like to be able to catch the exception inside of catch
so I can exit the build unsuccessfully.
well, no sure what happen, but I'm talking about esbuild-plugin-typecheck
.
Edit: Another bug I just found is that is checking for files I didn't even include in the bundle... like it'd a normal cli tsc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.