Skip to content

Commit 37fc408

Browse files
authored
chore: update rollup (#165)
1 parent d1946f0 commit 37fc408

File tree

3 files changed

+283
-9
lines changed

3 files changed

+283
-9
lines changed

package-lock.json

Lines changed: 279 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"postcss-nested": "^7.0.2",
3939
"prettier": "^3.0.3",
4040
"prettier-plugin-go-template": "^0.0.15",
41-
"rollup": "^2.50.2",
41+
"rollup": "^4.28.0",
4242
"rollup-plugin-postcss": "^4.0.0",
4343
"stimulus-use": "^0.52.2",
4444
"tailwindcss": "^3.3.2"

rollup.config.js renamed to rollup.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import postcss from "rollup-plugin-postcss"
77
import replace from "@rollup/plugin-replace"
88
import image from "@rollup/plugin-image"
99

10-
import path from "path"
10+
import { fileURLToPath } from "node:url"
1111

1212
const dev = {
1313
input: "src/app.js",
@@ -36,7 +36,7 @@ const dev = {
3636
eslint(),
3737
babel({
3838
exclude: "node_modules/**",
39-
configFile: path.resolve(__dirname, "babel.config.json"),
39+
configFile: fileURLToPath(new URL("babel.config.json", import.meta.url)),
4040
babelHelpers: "bundled",
4141
}),
4242
image({
@@ -72,7 +72,7 @@ const prod = {
7272
eslint(),
7373
babel({
7474
exclude: "node_modules/**",
75-
configFile: path.resolve(__dirname, "babel.config.json"),
75+
configFile: fileURLToPath(new URL("babel.config.json", import.meta.url)),
7676
babelHelpers: "bundled",
7777
}),
7878
terser(),

0 commit comments

Comments
 (0)