This commit is contained in:
miqlangelo 2025-05-06 13:16:42 +02:00
parent 715820b812
commit 0090aeec24
3 changed files with 27 additions and 4 deletions

15
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}/src/06-compiler/my-react-app/"
}
]
}

View File

@ -5,8 +5,12 @@ function App() {
const handleClick = () => {
const a = 1;
const b = 2;
const obj = {
a,
b,
};
const c = a + b;
console.log(c);
console.log(c, obj);
};
return (

View File

@ -1,7 +1,11 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
})
build: {
sourcemap: true,
},
});