update
This commit is contained in:
parent
715820b812
commit
0090aeec24
15
.vscode/launch.json
vendored
Normal file
15
.vscode/launch.json
vendored
Normal 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/"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -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 (
|
||||
|
||||
@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user