Skip to content

Commit

Permalink
Upgrade rollup to 3 in standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
nix6839 committed Apr 4, 2024
1 parent 07a683a commit 54a2562
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 24 deletions.
4 changes: 2 additions & 2 deletions standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"author": "Josh Wilson <[email protected]>",
"license": "MIT",
"scripts": {
"build": "rollup --config=rollup.config.js",
"build": "rollup --config=rollup.config.mjs",
"prepublishOnly": "cd .. && pnpm build && cd standalone && pnpm build && pnpm test",
"test": "node --experimental-vm-modules ./test.mjs"
},
Expand All @@ -28,7 +28,7 @@
"eslint": "^8.57.0",
"magic-string": "^0.30.8",
"memoize-one": "^6.0.0",
"rollup": "^2.79.1",
"rollup": "^3.29.4",
"semver": "^7.6.0",
"typescript": "~5.3.3"
},
Expand Down
40 changes: 20 additions & 20 deletions standalone/pnpm-lock.yaml

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

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import path from "path";
import Module from "module";
import { createFilter } from "@rollup/pluginutils";
import MagicString from "magic-string";
import { createRequire } from "node:module";

const require = createRequire(import.meta.url);

function toAbsolute(id) {
return id.startsWith("./") ? path.resolve(id) : require.resolve(id);
Expand Down
4 changes: 2 additions & 2 deletions standalone/rollup.config.js → standalone/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
import resolve from "@rollup/plugin-node-resolve";

import replace from "./rollup-plugin-replace";
import replace from "./rollup-plugin-replace.mjs";

module.exports = {
export default {
input: "index.js",
output: {
format: "module",
Expand Down

0 comments on commit 54a2562

Please sign in to comment.