diff --git a/packages/config/rollup.js b/packages/config/rollup.js index 7f5daa8eb2..0cc74a26d4 100644 --- a/packages/config/rollup.js +++ b/packages/config/rollup.js @@ -2,7 +2,6 @@ import { readFileSync } from "node:fs"; import path from "path"; import commonjs from "@rollup/plugin-commonjs"; -import json from "@rollup/plugin-json"; import resolve from "@rollup/plugin-node-resolve"; import { defineConfig } from "rollup"; import dts from "rollup-plugin-dts"; @@ -52,6 +51,8 @@ const makeConfig = ({ loaders: { ".json": "json" }, }; + console.log("esBuildPluginOptions", esBuildPluginOptions); + /** @type{import("@rollup/plugin-commonjs").RollupCommonJSOptions} */ const commonjsPluginOptions = { extensions: [".js", ".json"], @@ -80,7 +81,6 @@ const makeConfig = ({ input, plugins: [ externals(), - json(), esbuild({ ...esBuildPluginOptions, target: "node18" }), commonjs(commonjsPluginOptions), ], @@ -107,8 +107,8 @@ const makeConfig = ({ plugins: [ externals({ deps: false }), resolve({ preferBuiltins: false }), - commonjs(commonjsPluginOptions), esbuild({ ...esBuildPluginOptions, target: "esnext" }), + commonjs(commonjsPluginOptions), ], output: { file: `${destination}.browser.js`, @@ -126,7 +126,6 @@ const makeConfig = ({ plugins: [ externals({ deps: false }), resolve({ preferBuiltins: false }), - json(), esbuild({ ...esBuildPluginOptions, target: "es2015", minify: true }), commonjs(commonjsPluginOptions), ], diff --git a/packages/plugin-html-keyboard-response/src/index.ts b/packages/plugin-html-keyboard-response/src/index.ts index cbbd87f5a6..d35da35294 100644 --- a/packages/plugin-html-keyboard-response/src/index.ts +++ b/packages/plugin-html-keyboard-response/src/index.ts @@ -2,8 +2,8 @@ import { JsPsych, JsPsychPlugin, ParameterType, TrialType } from "jspsych"; import { version } from "../package.json"; -let __APACITATION__ = ""; -let __BIBTEXCITATION__ = ""; +declare const __APACITATION__: string; +declare const __BIBTEXCITATION__: string; const info = { name: "html-keyboard-response",