Skip to content

Conversation

@st3iny
Copy link
Contributor

@st3iny st3iny commented Apr 4, 2025

Ref #600

Migrate from Babel + Terser (+ ts-loader) to just esbuild via esbuild-loader.

@st3iny st3iny added the enhancement New feature or request label Apr 4, 2025
@st3iny st3iny self-assigned this Apr 4, 2025
@st3iny st3iny changed the title fix: Adjust dependencies for vue 3 feat: migrate to esbuild via esbuild-loader Apr 4, 2025
Copy link
Collaborator

@ShGKme ShGKme left a 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'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const esbuildTarget = 'es2015'
const esbuildTarget = 'es2020'

Or even newer.

Comment on lines +50 to +52
options: {
target: esbuildTarget,
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
options: {
target: esbuildTarget,
},
options: {
loader: 'ts', // Fix loading Vue SFCs
target: esbuildTarget,
},

},
extractComments: true,
}),
new EsbuildPlugin(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
new EsbuildPlugin(),
new EsbuildPlugin({
target: 'es2020'
}),

@ShGKme ShGKme added the 💥 breaking PR that requires a new major version label Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💥 breaking PR that requires a new major version enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants