File tree Expand file tree Collapse file tree 4 files changed +37
-0
lines changed Expand file tree Collapse file tree 4 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ node_modules
8
8
/compiler.d.ts
9
9
/compiler. * js
10
10
/index. * js
11
+ /ssr. * js
11
12
/internal
12
13
/store
13
14
/easing
Original file line number Diff line number Diff line change 54
54
"./transition" : {
55
55
"import" : " ./transition/index.mjs" ,
56
56
"require" : " ./transition/index.js"
57
+ },
58
+ "./ssr" : {
59
+ "import" : " ./ssr.mjs" ,
60
+ "require" : " ./ssr.js"
57
61
}
58
62
},
59
63
"engines" : {
Original file line number Diff line number Diff line change @@ -42,6 +42,24 @@ export default [
42
42
plugins : [ ts_plugin ]
43
43
} ,
44
44
45
+ {
46
+ input : `src/runtime/ssr.ts` ,
47
+ output : [
48
+ {
49
+ file : `ssr.mjs` ,
50
+ format : 'esm' ,
51
+ paths : id => id . startsWith ( 'svelte/' ) && `${ id . replace ( 'svelte' , '.' ) } /index.mjs`
52
+ } ,
53
+ {
54
+ file : `ssr.js` ,
55
+ format : 'cjs' ,
56
+ paths : id => id . startsWith ( 'svelte/' ) && `${ id . replace ( 'svelte' , '.' ) } /index.js`
57
+ }
58
+ ] ,
59
+ external,
60
+ plugins : [ ts_plugin ]
61
+ } ,
62
+
45
63
...fs . readdirSync ( 'src/runtime' )
46
64
. filter ( dir => fs . statSync ( `src/runtime/${ dir } ` ) . isDirectory ( ) )
47
65
. map ( dir => ( {
Original file line number Diff line number Diff line change
1
+ export {
2
+ setContext ,
3
+ getContext ,
4
+ hasContext ,
5
+ tick ,
6
+ createEventDispatcher ,
7
+ SvelteComponent ,
8
+ SvelteComponentTyped
9
+ } from './index' ;
10
+
11
+ export function onMount ( ) { }
12
+ export function onDestroy ( ) { }
13
+ export function beforeUpdate ( ) { }
14
+ export function afterUpdate ( ) { }
You can’t perform that action at this time.
0 commit comments