File tree 5 files changed +42
-18
lines changed
5 files changed +42
-18
lines changed Original file line number Diff line number Diff line change 3
3
node_modules
4
4
* .map
5
5
/cli /
6
- /compiler /
7
- /ssr /
8
- /internal.js
9
6
/compiler.js
7
+ /index.js
8
+ /internal. *
9
+ /store.js
10
10
/scratch /
11
11
/coverage /
12
12
/coverage.lcov /
@@ -15,7 +15,6 @@ node_modules
15
15
/test /sourcemaps /samples /* /output.js.map
16
16
/test /sourcemaps /samples /* /output.css
17
17
/test /sourcemaps /samples /* /output.css.map
18
- /store.umd.js
19
18
/yarn-error.log
20
19
_actual * . *
21
- _ * /
20
+ _ * /
Original file line number Diff line number Diff line change 4
4
beforeUpdate ,
5
5
afterUpdate ,
6
6
createEventDispatcher
7
- } from './internal.js ' ;
7
+ } from './internal' ;
Original file line number Diff line number Diff line change 2
2
"name" : " svelte" ,
3
3
"version" : " 3.0.0-alpha6" ,
4
4
"description" : " The magical disappearing UI framework" ,
5
+ "module" : " index.mjs" ,
5
6
"main" : " index.js" ,
6
7
"bin" : {
7
8
"svelte" : " svelte"
10
11
" cli" ,
11
12
" compiler.js" ,
12
13
" register.js" ,
13
- " index.js " ,
14
- " internal.js " ,
15
- " store.js " ,
14
+ " index.* " ,
15
+ " internal.* " ,
16
+ " store.* " ,
16
17
" svelte" ,
17
18
" README.md"
18
19
],
Original file line number Diff line number Diff line change 1
- import path from 'path' ;
2
1
import replace from 'rollup-plugin-replace' ;
3
2
import resolve from 'rollup-plugin-node-resolve' ;
4
3
import commonjs from 'rollup-plugin-commonjs' ;
5
4
import json from 'rollup-plugin-json' ;
6
5
import typescript from 'rollup-plugin-typescript' ;
7
- import buble from 'rollup-plugin-buble' ;
8
6
import pkg from './package.json' ;
9
7
10
8
export default [
11
- /* compiler/svelte .js */
9
+ /* compiler.js */
12
10
{
13
11
input : 'src/index.ts' ,
14
12
plugins : [
@@ -54,12 +52,38 @@ export default [
54
52
experimentalCodeSplitting : true
55
53
} ,
56
54
57
- /* internal.js */
55
+ /* index.js */
56
+ {
57
+ input : 'index.mjs' ,
58
+ output : {
59
+ file : 'index.js' ,
60
+ format : 'cjs'
61
+ } ,
62
+ external : name => name !== 'index.mjs'
63
+ } ,
64
+
65
+ /* internal.[m]js */
58
66
{
59
67
input : 'src/internal/index.js' ,
68
+ output : [
69
+ {
70
+ file : 'internal.mjs' ,
71
+ format : 'esm'
72
+ } ,
73
+ {
74
+ file : 'internal.js' ,
75
+ format : 'cjs'
76
+ }
77
+ ]
78
+ } ,
79
+
80
+ /* store.js */
81
+ {
82
+ input : 'store.mjs' ,
60
83
output : {
61
- file : 'internal.js' ,
62
- format : 'es'
63
- }
64
- }
84
+ file : 'store.js' ,
85
+ format : 'cjs'
86
+ } ,
87
+ external : name => name !== 'store.mjs'
88
+ } ,
65
89
] ;
Original file line number Diff line number Diff line change 1
- import { run_all , noop } from './internal.js ' ;
1
+ import { run_all , noop } from './internal' ;
2
2
3
3
export function readable ( start , value ) {
4
4
const subscribers = [ ] ;
You can’t perform that action at this time.
0 commit comments