Skip to content

Commit

Permalink
Merge pull request #804 from valadas/node-polyfills
Browse files Browse the repository at this point in the history
Added node-polyfills
  • Loading branch information
valadas authored Aug 21, 2023
2 parents 17b885f + 5e21dca commit eaf9ae6
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 1 deletion.
104 changes: 104 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion packages/stencil-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@
"gh-pages": "^5.0.0",
"jest": "^27.0.3",
"jest-cli": "^27.5.1",
"license-checker-rseidelsohn": "^4.2.6",
"jodit": "^3.24.9",
"license-checker-rseidelsohn": "^4.2.6",
"lit": "^2.7.2",
"npm-run-all": "^4.1.5",
"puppeteer": "^21.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"storybook": "^7.0.5",
"typescript": "5.0.4",
"typescript-debounce-decorator": "^0.0.18"
Expand Down
6 changes: 6 additions & 0 deletions packages/stencil-library/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
import { reactOutputTarget } from '@stencil/react-output-target';
import { JsonDocs } from '@stencil/core/internal';
import nodePolyfills from 'rollup-plugin-node-polyfills';

async function generateCustomElementsJson(docsData: JsonDocs) {
const jsonData = {
Expand Down Expand Up @@ -116,5 +117,10 @@ export const config: Config = {
plugins: [
sass(),
],
rollupPlugins: {
after: [
nodePolyfills(),
]
},
sourceMap: true,
};

0 comments on commit eaf9ae6

Please sign in to comment.