29 lines
811 B
JavaScript
29 lines
811 B
JavaScript
|
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(),
|
||
|
]
|
||
|
}
|
||
|
];
|