Skip to content

Commit d6cb301

Browse files
committed
Add typescript-plugin-css-modules reproduction
1 parent e82fb44 commit d6cb301

File tree

7 files changed

+330
-55
lines changed

7 files changed

+330
-55
lines changed

README.md

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,4 @@
1-
# create-svelte
1+
## Reproduction of typescript-plugin-css-modules not working
22

3-
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
4-
5-
## Creating a project
6-
7-
If you're seeing this, you've probably already done this step. Congrats!
8-
9-
```bash
10-
# create a new project in the current directory
11-
npm create svelte@latest
12-
13-
# create a new project in my-app
14-
npm create svelte@latest my-app
15-
```
16-
17-
## Developing
18-
19-
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
20-
21-
```bash
22-
npm run dev
23-
24-
# or start the server and open the app in a new browser tab
25-
npm run dev -- --open
26-
```
27-
28-
## Building
29-
30-
To create a production version of your app:
31-
32-
```bash
33-
npm run build
34-
```
35-
36-
You can preview the production build with `npm run preview`.
37-
38-
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
3+
There is no typescript autocomplete in either `src/lib/routes/+page.svelte` or
4+
`src/lib/test.ts`.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"svelte-check": "^3.6.0",
2424
"tslib": "^2.4.1",
2525
"typescript": "^5.0.0",
26+
"typescript-plugin-css-modules": "^5.1.0",
2627
"vite": "^5.0.3"
2728
},
2829
"type": "module"

0 commit comments

Comments
 (0)