Commit 3f2f37f 1 parent b58c558 commit 3f2f37f Copy full SHA for 3f2f37f
File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,17 @@ import resolve from '@rollup/plugin-node-resolve'
3
3
import preprocess from 'svelte-preprocess'
4
4
import svelteDts from 'rollup-plugin-svelte-types' ;
5
5
6
- const globals = {
7
- '@uppy/dashboard' : 'Dashboard' ,
8
- '@uppy/drag-drop' : 'DragDrop' ,
9
- '@uppy/progress-bar' : 'ProgressBar' ,
10
- '@uppy/status-bar' : 'StatusBar' ,
11
- }
12
-
13
6
export default {
7
+ external : [
8
+ / ^ @ u p p y \/ / ,
9
+ / n o d e _ m o d u l e s / ,
10
+ ] ,
14
11
input : 'src/index.ts' ,
15
12
output : [
16
13
{
17
14
file : 'lib/index.js' ,
18
15
format : 'es' ,
19
- globals ,
16
+ sourcemap : 'inline' ,
20
17
} ,
21
18
] ,
22
19
plugins : [
@@ -25,7 +22,9 @@ export default {
25
22
preprocess : preprocess ( ) ,
26
23
} ) ,
27
24
resolve ( {
28
- resolveOnly : [ 'svelte' ] ,
25
+ browser : true ,
26
+ exportConditions : [ 'svelte' ] ,
27
+ extensions : [ '.svelte' ]
29
28
} ) ,
30
29
svelteDts . default ( {
31
30
declarationDir : './lib/'
You can’t perform that action at this time.
0 commit comments