-
Notifications
You must be signed in to change notification settings - Fork 2
feat: migrate to esbuild via esbuild-loader #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: vue3
Are you sure you want to change the base?
Conversation
Signed-off-by: Richard Steinmetz <[email protected]>
ShGKme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is no tsconfig.json in the app using this config, ESBuild will search for it. And for apps cloned to the server/apps, it will find server's tsconfig.
| */ | ||
|
|
||
| module.exports = { | ||
| const esbuildTarget = 'es2015' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const esbuildTarget = 'es2015' | |
| const esbuildTarget = 'es2020' |
Or even newer.
| options: { | ||
| target: esbuildTarget, | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| options: { | |
| target: esbuildTarget, | |
| }, | |
| options: { | |
| loader: 'ts', // Fix loading Vue SFCs | |
| target: esbuildTarget, | |
| }, |
| }, | ||
| extractComments: true, | ||
| }), | ||
| new EsbuildPlugin(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| new EsbuildPlugin(), | |
| new EsbuildPlugin({ | |
| target: 'es2020' | |
| }), |
Ref #600
Migrate from Babel + Terser (+ ts-loader) to just esbuild via esbuild-loader.