Skip to content

Commit

Permalink
Replace import assertions with import attributes
Browse files Browse the repository at this point in the history
These no longer build in Node 22 since import assertions were removed:
nodejs/node#52104
  • Loading branch information
valadaptive committed Jun 16, 2024
1 parent 0247d53 commit f696538
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import babel from "@rollup/plugin-babel"
import json from "@rollup/plugin-json"
import pkg from "./package.json" assert { "type": "json" }
import pkg from "./package.json" with { "type": "json" }
import serve from "rollup-plugin-serve"
import license from "rollup-plugin-license"
import terser from "@rollup/plugin-terser"
Expand Down
12 changes: 6 additions & 6 deletions tests/syntax.test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { parse, loadLanguages, allLanguages } from "../syntax"

import de from "../locales/de.json" assert { "type": "json" }
import ja from "../locales/ja.json" assert { "type": "json" }
import ko from "../locales/ko.json" assert { "type": "json" }
import pt_br from "../locales/pt-br.json" assert { "type": "json" }
import rap from "../locales/rap.json" assert { "type": "json" }
import uz from "../locales/uz.json" assert { "type": "json" }
import de from "../locales/de.json" with { "type": "json" }
import ja from "../locales/ja.json" with { "type": "json" }
import ko from "../locales/ko.json" with { "type": "json" }
import pt_br from "../locales/pt-br.json" with { "type": "json" }
import rap from "../locales/rap.json" with { "type": "json" }
import uz from "../locales/uz.json" with { "type": "json" }

loadLanguages({
de,
Expand Down

0 comments on commit f696538

Please sign in to comment.