Skip to content

Commit

Permalink
chore: remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robsongajunior committed Nov 28, 2024
1 parent 823d918 commit dfb30d1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
31 changes: 14 additions & 17 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';
import vue from '@astrojs/vue';
import preact from '@astrojs/preact';
import AutoImport from 'astro-auto-import';

import cssnano from 'cssnano';
import dynamicImport from 'vite-plugin-dynamic-import';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import remarkSmartypants from 'remark-smartypants';

Expand All @@ -23,7 +21,6 @@ import { rehypei18nAutolinkHeadings } from './plugins/rehype-i18n-autolink-headi
import { rehypeOptimizeStatic } from './plugins/rehype-optimize-static';
import { rehypeTasklistEnhancer } from './plugins/rehype-tasklist-enhancer';
import rehypeScrollableTables from './plugins/rehype-scrollable-tables.js'
// import { rehypeLinks } from './plugins/rehypeLinks.mjs';

const productionBuild = import.meta.env.PROD;

Expand All @@ -35,7 +32,6 @@ export default defineConfig({
},
integrations: [
AutoImport({ imports: [asideAutoImport] }),
preact({ compat: true }),
sitemap(),
astroAsides(),

Expand Down Expand Up @@ -75,20 +71,21 @@ export default defineConfig({
}
},
plugins: [
dynamicImport(),
cssnano
cssnano({
preset: [
'default', {
discardComments: { removeAll: true },
minifyFontValues: { removeQuotes: false }
}
]
})
],
ssr: {
noExternal: [
'@astrojs/vue',
'azion-webkit',
'azion-theme'
],
external: [
'algoliasearch',
'instantsearch.js',
'vue-instantsearch/vue3/es',
]
}
noExternal: ['@astrojs/vue', 'azion-webkit', 'azion-theme'],
external: ['vue']
},
optimizeDeps: {
include: ['vue', 'primevue/config']
}
}
});
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"devDependencies": {
"@11ty/eleventy-fetch": "^3.0.0",
"@actions/core": "^1.9.0",
"@astrojs/preact": "^3.2.0",
"@astrojs/sitemap": "1.0.1",
"@babel/core": "^7.18.10",
"@tailwindcss/typography": "^0.5.10",
Expand Down Expand Up @@ -112,7 +111,6 @@
"@astrojs/tailwind": "^5.0.2",
"@astrojs/vue": "^4.0.0",
"@babel/types": "^7.22.19",
"@nanostores/preact": "^0.5.1",
"algoliasearch": "^4.22.1",
"azion-theme": "^1.5.6",
"azion-webkit": "^1.61.4",
Expand All @@ -132,6 +130,7 @@
"sharp": "^0.33.4",
"stream-json": "^1.8.0",
"tailwindcss": "^3.4.1",
"terser": "^5.36.0",
"vue": "^3.4.24",
"vue-instantsearch": "^4.13.5"
},
Expand Down

0 comments on commit dfb30d1

Please sign in to comment.