Skip to content

Commit

Permalink
Merge branch 'fix-web-components-v1' of https://github.com/skip-mev/s…
Browse files Browse the repository at this point in the history
…kip-go into fix-web-components-v1
  • Loading branch information
toddkao committed Jul 5, 2024
2 parents 4477d34 + 9ae9627 commit a84fb66
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 305 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
},
"packageManager": "yarn@3.2.0",
"dependencies": {
"@changesets/cli": "^2.24.4"
"@changesets/cli": "^2.24.4",
"rollup-plugin-node-globals": "^1.4.0",
"rollup-plugin-node-polyfills": "^0.2.1",
"rollup-plugin-replace": "^2.2.0"
}
}
14 changes: 10 additions & 4 deletions packages/widget/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import postcss from 'rollup-plugin-postcss';
import json from '@rollup/plugin-json';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';

import packageJson from './package.json';
import nodePolyfills from 'rollup-plugin-node-polyfills';

export default [
{
Expand Down Expand Up @@ -49,17 +49,23 @@ export default [
minimize: true,
extract: 'style.css',
}),
peerDepsExternal(),
typescript({
useTsconfigDeclarationDir: true,
exclude: 'node_modules/**',
}),
nodeResolve({
jsnext: true,
preferBuiltins: true,
browser: true,
preferBuiltins: false,
}),
json(),
commonjs(),
commonjs({
sourceMap: false,
}),
nodePolyfills({
crypto: true,
buffer: true,
}),
],
},
];
2 changes: 1 addition & 1 deletion packages/widget/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"declaration": true,
"declarationDir": "build",
"module": "ESNext",
"moduleResolution": "Bundler",
"moduleResolution": "node",
"target": "ES2019",
"lib": ["es6", "dom", "es2016", "es2017", "es2021"],
"sourceMap": false,
Expand Down
Loading

0 comments on commit a84fb66

Please sign in to comment.