@@ -57,69 +57,69 @@ export function getConfig({ isReleaseBuild }) {
57
57
output : [ { dir : 'dist/esm5' , format : 'esm' , sourcemap : true } ] ,
58
58
plugins : es5BuildPlugins ,
59
59
external : id => deps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) )
60
- }
60
+ } ,
61
61
/**
62
62
* Web Worker Build (compiled without DOM)
63
63
*/
64
- // {
65
- // input: 'index.webworker.ts',
66
- // output: [{ file: pkg.webworker, format: 'es', sourcemap: true }],
67
- // plugins: [
68
- // ...commonPlugins,
69
- // getTypesScriptPlugin({
70
- // isReleaseBuild,
71
- // compilerOptions: {
72
- // lib: [
73
- // // Remove dom after we figure out why navigator stuff doesn't exist
74
- // 'dom',
75
- // 'es2015',
76
- // 'webworker'
77
- // ]
78
- // }
79
- // })
80
- // ],
81
- // external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
82
- // },
83
- // / **
84
- // * Node.js Build
85
- // */
86
- // {
87
- // input: {
88
- // index: 'index.node.ts',
89
- // internal: 'internal/index.ts'
90
- // },
91
- // output: [{ dir: 'dist/node', format: 'cjs', sourcemap: true }],
92
- // plugins: es5BuildPlugins,
93
- // external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
94
- // },
95
- // / **
96
- // * Cordova Builds
97
- // */
98
- // {
99
- // input: {
100
- // index: 'index.cordova.ts',
101
- // internal: 'internal/index.ts'
102
- // },
103
- // output: [{ dir: 'dist/cordova', format: 'es', sourcemap: true }],
104
- // plugins: es5BuildPlugins,
105
- // external: id =>
106
- // [...deps, 'cordova'].some(dep => id === dep || id.startsWith(`${dep}/`))
107
- // },
108
- // / **
109
- // * React Native Builds
110
- // */
111
- // {
112
- // input: {
113
- // index: 'index.rn.ts',
114
- // internal: 'internal/index.ts'
115
- // },
116
- // output: [{ dir: 'dist/rn', format: 'cjs', sourcemap: true }],
117
- // plugins: es5BuildPlugins,
118
- // external: id =>
119
- // [...deps, 'react-native'].some(
120
- // dep => id === dep || id.startsWith(`${dep}/`)
121
- // )
122
- // }
64
+ {
65
+ input : 'index.webworker.ts' ,
66
+ output : [ { file : pkg . webworker , format : 'es' , sourcemap : true } ] ,
67
+ plugins : [
68
+ ...commonPlugins ,
69
+ getTypesScriptPlugin ( {
70
+ isReleaseBuild,
71
+ compilerOptions : {
72
+ lib : [
73
+ // Remove dom after we figure out why navigator stuff doesn't exist
74
+ 'dom' ,
75
+ 'es2015' ,
76
+ 'webworker'
77
+ ]
78
+ }
79
+ } )
80
+ ] ,
81
+ external : id => deps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) )
82
+ } ,
83
+ /**
84
+ * Node.js Build
85
+ */
86
+ {
87
+ input : {
88
+ index : 'index.node.ts' ,
89
+ internal : 'internal/index.ts'
90
+ } ,
91
+ output : [ { dir : 'dist/node' , format : 'cjs' , sourcemap : true } ] ,
92
+ plugins : es5BuildPlugins ,
93
+ external : id => deps . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) )
94
+ } ,
95
+ /**
96
+ * Cordova Builds
97
+ */
98
+ {
99
+ input : {
100
+ index : 'index.cordova.ts' ,
101
+ internal : 'internal/index.ts'
102
+ } ,
103
+ output : [ { dir : 'dist/cordova' , format : 'es' , sourcemap : true } ] ,
104
+ plugins : es5BuildPlugins ,
105
+ external : id =>
106
+ [ ...deps , 'cordova' ] . some ( dep => id === dep || id . startsWith ( `${ dep } /` ) )
107
+ } ,
108
+ /**
109
+ * React Native Builds
110
+ */
111
+ {
112
+ input : {
113
+ index : 'index.rn.ts' ,
114
+ internal : 'internal/index.ts'
115
+ } ,
116
+ output : [ { dir : 'dist/rn' , format : 'cjs' , sourcemap : true } ] ,
117
+ plugins : es5BuildPlugins ,
118
+ external : id =>
119
+ [ ...deps , 'react-native' ] . some (
120
+ dep => id === dep || id . startsWith ( `${ dep } /` )
121
+ )
122
+ }
123
123
] ;
124
124
125
125
/**
0 commit comments