Skip to content

Commit

Permalink
fix: node polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
X3ZvaWQ committed Feb 15, 2024
1 parent 15dea0f commit 6ee5049
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
55 changes: 55 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"rollup": "4.10.0",
"rollup-plugin-copy": "3.5.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-polyfill-node": "^0.13.0",
"tslib": "2.6.2",
"typescript": "^5.3.3"
},
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import typescript from '@rollup/plugin-typescript';
import json from '@rollup/plugin-json';
import dts from 'rollup-plugin-dts';
import copy from 'rollup-plugin-copy';
import nodePolyfills from 'rollup-plugin-polyfill-node';

const production = !process.env.ROLLUP_WATCH;

Expand Down Expand Up @@ -30,6 +31,7 @@ export default [
targets: [{ src: 'build/liblua5.1.wasm', dest: 'dist' }],
}),
json(),
nodePolyfills(),
],
},
{
Expand Down

0 comments on commit 6ee5049

Please sign in to comment.