Skip to content

Commit b57d51b

Browse files
committed
Refactor: Moved to render directory
1 parent 44f4973 commit b57d51b

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

build/esbuild.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const copyConfig : esbuild.BuildOptions = {
1919
outdir: './dist',
2020
outbase: './src/client',
2121
entryPoints: [
22+
'./src/render/**/assets/*',
2223
'./src/components/**/assets/*'
2324
],
2425
plugins: [
@@ -41,10 +42,10 @@ const buildConfig : esbuild.BuildOptions = {
4142
sourcemap: args.develop ? 'linked' : false,
4243
sourcesContent: true,
4344
outdir: './dist',
44-
outbase: './src/components',
45+
outbase: './src/render',
4546
entryPoints: [
46-
'./src/components/**/index.html',
47-
'./src/components/index.tsx'
47+
'./src/render/**/index.html',
48+
'./src/render/index.tsx'
4849
],
4950
plugins: [
5051
esbuildPluginTransformScriptTags(),
File renamed without changes.
File renamed without changes.

src/components/index.tsx renamed to src/render/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { render } from '@solid-js/web';
22
import { HashRouter, Route } from '@solid-js/router'
3-
import { Button, buttonTypes } from './button/index.ts';
3+
import { Button } from '../components/button/index.ts';
44
import './index.css'
55

66

0 commit comments

Comments
 (0)