Skip to content

Commit

Permalink
fix: rollup node-polyfills added
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavshn committed Jan 27, 2025
1 parent 6547319 commit 9107143
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 2 deletions.
66 changes: 66 additions & 0 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,23 @@
"@dytesdk/web-core": "staging",
"@stencil-community/eslint-plugin": "^0.9.0",
"@stencil-community/postcss": "^2.2.0",
"@stencil/core": "4.25.1",
"@stencil/angular-output-target": "^0.10.2",
"@stencil/core": "4.25.1",
"@stencil/react-output-target": "^0.8.2",
"@stencil/store": "^2.0.16",
"@stencil/vue-output-target": "^0.9.2",
"@tailwindcss/line-clamp": "^0.3.1",
"@types/hark": "^1.2.2",
"@types/jest": "^29.5.6",
"@types/node": "^16.18.11",
"@types/lodash-es": "^4.17.6",
"@types/node": "^16.18.11",
"autoprefixer": "^10.4.7",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^29.7.0",
"jest-cli": "^29.7.0",
"puppeteer": "^21.9.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"tailwindcss": "3.1.0"
},
"license": "UNLICENSED"
Expand Down
4 changes: 4 additions & 0 deletions packages/core/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { vueOutputTarget } from '@stencil/vue-output-target';
import { angularOutputTarget } from '@stencil/angular-output-target';

import { postcss } from '@stencil-community/postcss';
import nodePolyfills from 'rollup-plugin-node-polyfills';

const webCorePath = require.resolve('@dytesdk/web-core/inlined');

Expand Down Expand Up @@ -67,4 +68,7 @@ export const config: Config = {
plugins: [require('tailwindcss/nesting'), require('tailwindcss'), require('autoprefixer')],
}),
],
rollupPlugins: {
after: [nodePolyfills()],
},
};

0 comments on commit 9107143

Please sign in to comment.