Skip to content

Commit d748afa

Browse files
committed
feat(create-rstack): use bundleless mode for Svelte templates
1 parent 7342b2b commit d748afa

6 files changed

Lines changed: 238 additions & 62 deletions

File tree

‎packages/create-rstack/template-lib-svelte-ts/package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
".": {
77
"types": "./dist/index.d.ts",
88
"default": "./dist/index.js"
9-
},
10-
"./style.css": "./dist/index.css"
9+
}
1110
},
1211
"types": "./dist/index.d.ts",
1312
"files": [

‎packages/create-rstack/template-lib-svelte-ts/rstack.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { svelteDtsPlugin } from './scripts/rslib-plugin-svelte-dts.ts';
55
define.lib(async () => {
66
const { pluginSvelte } = await import('@rsbuild/plugin-svelte');
77
return {
8+
bundle: false,
89
output: {
910
target: 'web',
1011
},

‎packages/create-rstack/template-lib-svelte/package.json‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"name": "rstack-lib-svelte",
33
"version": "0.0.0",
44
"type": "module",
5-
"exports": {
6-
".": "./dist/index.js",
7-
"./style.css": "./dist/index.css"
8-
},
5+
"exports": "./dist/index.js",
96
"files": [
107
"dist",
118
"README.md"

‎packages/create-rstack/template-lib-svelte/rstack.config.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { define } from 'rstack';
55
define.lib(async () => {
66
const { pluginSvelte } = await import('@rsbuild/plugin-svelte');
77
return {
8+
bundle: false,
89
output: {
910
target: 'web',
1011
},

0 commit comments

Comments
 (0)