Skip to content

Commit

Permalink
define works now
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriechang committed Oct 23, 2024
2 parents eace9bf + 81fd767 commit ef89a80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions packages/config/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -52,6 +51,8 @@ const makeConfig = ({
loaders: { ".json": "json" },
};

console.log("esBuildPluginOptions", esBuildPluginOptions);

/** @type{import("@rollup/plugin-commonjs").RollupCommonJSOptions} */
const commonjsPluginOptions = {
extensions: [".js", ".json"],
Expand Down Expand Up @@ -80,7 +81,6 @@ const makeConfig = ({
input,
plugins: [
externals(),
json(),
esbuild({ ...esBuildPluginOptions, target: "node18" }),
commonjs(commonjsPluginOptions),
],
Expand All @@ -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`,
Expand All @@ -126,7 +126,6 @@ const makeConfig = ({
plugins: [
externals({ deps: false }),
resolve({ preferBuiltins: false }),
json(),
esbuild({ ...esBuildPluginOptions, target: "es2015", minify: true }),
commonjs(commonjsPluginOptions),
],
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-html-keyboard-response/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <const>{
name: "html-keyboard-response",
Expand Down

0 comments on commit ef89a80

Please sign in to comment.