eeg_nest/rollup.config.js

29 lines
811 B
JavaScript
Raw Normal View History

2023-05-07 03:30:00 +00:00
const nodeResolve = require("@rollup/plugin-node-resolve");
const common = require("@rollup/plugin-commonjs");
const babel = require("@rollup/plugin-babel");
const copy = require("rollup-plugin-copy");
const { join } = require("path");
const esbuild = require('rollup-plugin-esbuild')
module.exports = [
{
input: "hydration/entry.js",
output: [
{
dir: "hydration",
format: "esm"
}
],
preserveEntrySignatures: false,
plugins: [
esbuild.default(),
nodeResolve({ exportConditions: ["solid"] }),
babel({
babelHelpers: "bundled",
presets: [["solid", { generate: "dom", hydratable: true }]]
}),
common(),
]
}
];