Skip to content

Commit

Permalink
dexie-cloud-addon minified UMD build
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander committed Oct 28, 2023
1 parent 3a08434 commit 717d965
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addons/dexie-cloud/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dexie-cloud-addon",
"version": "4.0.1-beta.50",
"version": "4.0.1-beta.51",
"description": "Dexie addon that syncs with to Dexie Cloud",
"main": "dist/umd/dexie-cloud-addon.js",
"type": "module",
Expand Down
26 changes: 26 additions & 0 deletions addons/dexie-cloud/tools/build-configs/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,32 @@ export function createRollupConfig(entry, outputName) {
sourcemap: true,
exports: 'named',
},
{
file: `dist/umd/${outputName}.min.js`,
format: 'umd',
globals: {
dexie: 'Dexie',
rxjs: 'rxjs',
'rxjs/operators': 'rxjs.operators',
},
name: 'DexieCloud',
banner: readFileSync('tools/tmp/banner.txt', 'utf-8'),
sourcemap: true,
exports: 'named',
plugins: [
terser({
compress: {
drop_console: true,
drop_debugger: true,
},
mangle: true,
sourceMap: true,
output: {
comments: false,
},
}),
],
},
],
external: ['dexie', 'rxjs'],
plugins: [
Expand Down

0 comments on commit 717d965

Please sign in to comment.