Skip to content

Commit

Permalink
feat!: support rollup v3
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored and Swatinem committed Oct 14, 2022
1 parent 0435af4 commit ba136fa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
19 changes: 10 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@
"c8": "^7.12.0",
"fs-extra": "^10.1.0",
"rimraf": "^3.0.2",
"rollup": "2.79.1",
"rollup": "3.1.0",
"typescript": "4.8.4"
},
"peerDependencies": {
"rollup": "^2.55",
"rollup": "^3.0.0",
"typescript": "^4.1"
},
"optionalDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RollupWatchOptions } from "rollup";
import pkg from "./package.json";
import pkg from "./package.json" assert { type: "json" };
import dts from "./src/index.js";

const external = ["module", "path", "typescript", "rollup", "@babel/code-frame", "magic-string"];
Expand Down
4 changes: 2 additions & 2 deletions src/transform/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export const transform: PluginImpl<TransformOptions> = () => {
exports: "named",
compact: false,
freeze: true,
interop: false,
namespaceToStringTag: false,
interop: 'esModule',
generatedCode: Object.assign({ symbols: false }, options.generatedCode),
strict: false,
};
},
Expand Down

0 comments on commit ba136fa

Please sign in to comment.