Skip to content

Commit

Permalink
@slidy/solid - add cdn build
Browse files Browse the repository at this point in the history
  • Loading branch information
yhdgms1 committed Sep 18, 2022
1 parent f30926c commit 19c9c0a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/solid/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,12 @@ if (DEV) {
jsx: 'preserve',
outfile: './dist/slidy.jsx',
});

build({
...esbuildBase,
format: 'iife',
outfile: './dist/slidy.js',
globalName: 'SlidySolid',
});
});
}
4 changes: 3 additions & 1 deletion packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
],
"main": "dist/slidy.mjs",
"module": "dist/slidy.mjs",
"cdn": "dist/slidy.js",
"unpkg": "dist/slidy.js",
"types": "dist/index.d.ts",
"style": "dist/slidy.css",
"sideEffects": false,
Expand Down Expand Up @@ -65,4 +67,4 @@
"peerDependencies": {
"solid-js": "^1.4.8"
}
}
}

0 comments on commit 19c9c0a

Please sign in to comment.