Skip to content

Commit

Permalink
fix vite CJS Node API deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
pietheinstrengholt committed Nov 21, 2023
1 parent e2ce584 commit 6f2696b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "rssmonster-client",
"version": "1.0.0",
"type": "module",
"private": true,
"author": "Piethein Strengholt",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/Home.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<div id="articles" :class="{ completed: this.store.currentSelection.status == 'unread' && container.length == pool.length && container.length != 0 }">
<div>
<div id="articles" :class="{ completed: this.store.currentSelection.status == 'unread' && container.length == pool.length && container.length != 0 }">
<Article v-for="article in articles" v-bind="article"/>
</div>
<infinite-loading v-if="firstLoad" ref="infiniteLoading" @infinite="infiniteHandler">
Expand All @@ -12,6 +13,7 @@
<p v-if="container.length == 0" id="no-results">No posts found!<br><br></p>
</template>
</infinite-loading>
</div>
</template>

<style scoped>
Expand Down
3 changes: 1 addition & 2 deletions client/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ export default defineConfig({
vue(),
VitePWA({
devOptions: {
enabled: true,
type: module
enabled: true
},
registerType: 'autoUpdate',
injectRegister: 'auto',
Expand Down

0 comments on commit 6f2696b

Please sign in to comment.