Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kobakazu0429 committed Jan 23, 2024
1 parent a80358c commit 075864c
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 5 deletions.
50 changes: 50 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 @@ -58,6 +58,7 @@
"@babel/preset-env": "^7.18.2",
"@babel/preset-typescript": "^7.17.12",
"@biomejs/biome": "^1.5.3",
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
Expand Down
19 changes: 14 additions & 5 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import alias from "@rollup/plugin-alias";
import cjs from "@rollup/plugin-commonjs";
import nodeResolve from "@rollup/plugin-node-resolve";
import replace from "@rollup/plugin-replace";
Expand All @@ -16,14 +17,22 @@ export default /** @type {import('rollup').RollupOptions} */ ({
format: "es",
sourcemap: true,
},
{
file: pkg.exports["."].require,
format: "cjs",
sourcemap: true,
},
// {
// file: pkg.exports["."].require,
// format: "cjs",
// sourcemap: true,
// },
],

plugins: [
alias({
entries: [
...Object.entries(pkg.overrides).map(([find, replacement]) => ({
find,
replacement,
})),
],
}),
cjs(),
nodeResolve(),
replace({
Expand Down

0 comments on commit 075864c

Please sign in to comment.