Skip to content

Commit 13fa579

Browse files
committed
fix(build): add node polyfills to UMD bundle and angular to CI matrix
1 parent e5ee7cf commit 13fa579

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/ci-examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
example: [react, vue, vanilla, cdn]
14+
example: [react, vue, vanilla, cdn, angular]
1515
steps:
1616
- uses: actions/checkout@v6
1717

apps/docs/getting-started/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Install with `npm install @superdoc-dev/react`. See the full [React guide](/gett
103103
## What's next
104104

105105
<CardGroup cols={2}>
106-
<Card title="Framework guides" icon="code" href="/getting-started/installation">
106+
<Card title="Framework guides" icon="code" href="/getting-started/frameworks/react">
107107
React, Vue, Angular, Vanilla JS
108108
</Card>
109109
<Card title="Configuration" icon="gear" href="/core/superdoc/configuration">

packages/superdoc/vite.config.umd.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import vue from '@vitejs/plugin-vue';
2+
import { nodePolyfills } from 'vite-plugin-node-polyfills';
23
import { defineConfig } from 'vite';
34
import { version } from './package.json';
45
import { getAliases } from './vite.config.js';
56

67
export default defineConfig(({ command }) => {
7-
const plugins = [vue()];
8+
const plugins = [vue(), nodePolyfills()];
89
const isDev = command === 'serve';
910

1011
return {
@@ -35,7 +36,6 @@ export default defineConfig(({ command }) => {
3536
external: [
3637
'yjs',
3738
'@hocuspocus/provider',
38-
'vite-plugin-node-polyfills',
3939
'pdfjs-dist',
4040
'pdfjs-dist/build/pdf.mjs',
4141
'pdfjs-dist/legacy/build/pdf.mjs',
@@ -46,7 +46,6 @@ export default defineConfig(({ command }) => {
4646
yjs: 'Yjs',
4747
'@hocuspocus/provider': 'HocuspocusProvider',
4848
'pdfjs-dist': 'PDFJS',
49-
'vite-plugin-node-polyfills': 'NodePolyfills',
5049
},
5150
},
5251
},

0 commit comments

Comments
 (0)