Skip to content

Commit 7f6d25b

Browse files
committed
fix(build): Fix assert failure in rollup
Due to change in nodejs, as described here: rollup/rollup#5531 Before this fix: ``` % npm run build > [email protected] build > rollup -c [!] SyntaxError: Unexpected identifier 'assert' at compileSourceTextModule (node:internal/modules/esm/utils:338:16) at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:102:18) at ModuleLoader.#translate (node:internal/modules/esm/loader:437:12) at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:484:27) at ModuleJob._link (node:internal/modules/esm/module_job:115:19) ```
1 parent 33b738c commit 7f6d25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollup.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import commonjs from "@rollup/plugin-commonjs";
66
// import babelRuntime from "@rollup/plugin-transform-runtime"
77
import json from "@rollup/plugin-json";
88
import replace from "@rollup/plugin-replace";
9-
import pkg from "./package.json" assert { type: "json" };
9+
import pkg from "./package.json" with { type: "json" };
1010

1111
export default {
1212
input: "src/index.js",

0 commit comments

Comments
 (0)