Skip to content

Commit

Permalink
fix: bundle issues
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby committed Jul 3, 2024
1 parent d7cde80 commit d8d5fda
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 72 deletions.
2 changes: 1 addition & 1 deletion packages/hyperlink-card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
"eslint-plugin-prettier": "^5.1.3",
"lit-analyzer": "^2.0.3",
"prettier": "^3.3.0",
"rollup-plugin-copy": "^3.5.0",
"typescript": "^5.4.5",
"unocss": "^0.60.4",
"vite": "^5.2.12",
"vite-plugin-dts": "^3.9.1",
"vite-plugin-static-copy": "^1.0.6",
"vitest": "^1.6.0"
}
}
4 changes: 2 additions & 2 deletions packages/hyperlink-card/vite.config.lib.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import copy from 'rollup-plugin-copy';
import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { viteStaticCopy as StaticCopy } from 'vite-plugin-static-copy';
import { sharedPluginsConfig } from './src/vite/shared-plugin-config';

export default defineConfig({
Expand All @@ -22,7 +22,7 @@ export default defineConfig({
plugins: [
...sharedPluginsConfig,
dts(),
copy({
StaticCopy({
targets: [
{
src: ['./dist/hyperlink-card.iife.js', './var.css'],
Expand Down
109 changes: 40 additions & 69 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8d5fda

Please sign in to comment.