deno.land / x / solid@v1.5.6 / rollup.config.js
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269import nodeResolve from "@rollup/plugin-node-resolve";import babel from "@rollup/plugin-babel";import cleanup from "rollup-plugin-cleanup";import replace from "@rollup/plugin-replace";import { fileURLToPath } from "node:url";
const plugins = [ nodeResolve({ extensions: [".js", ".ts"] }), babel({ extensions: [".js", ".ts"], exclude: "node_modules/**", babelrc: false, babelHelpers: "bundled", presets: ["@babel/preset-typescript"], plugins: [ [ "babel-plugin-transform-rename-import", { original: "rxcore", replacement: fileURLToPath(new URL("web/src/core", import.meta.url)) } ] ] }), cleanup({ comments: ["some", /PURE/], extensions: [".js", ".ts"] })];
export default [ { input: "src/index.ts", output: [ { file: "dist/solid.cjs", format: "cjs" }, { file: "dist/solid.js", format: "es" } ], plugins: [ replace({ '"_SOLID_DEV_"': false, preventAssignment: true, delimiters: ["", ""] }) ].concat(plugins) }, { input: "src/server/index.ts", output: [ { file: "dist/server.cjs", format: "cjs" }, { file: "dist/server.js", format: "es" } ], external: ["stream"], plugins }, { input: "src/index.ts", output: [ { file: "dist/dev.cjs", format: "cjs" }, { file: "dist/dev.js", format: "es" } ], plugins }, { input: "store/src/index.ts", output: [ { file: "store/dist/store.cjs", format: "cjs" }, { file: "store/dist/store.js", format: "es" } ], external: ["solid-js"], plugins: [ replace({ '"_SOLID_DEV_"': false, preventAssignment: true, delimiters: ["", ""] }) ].concat(plugins) }, { input: "store/src/server.ts", output: [ { file: "store/dist/server.cjs", format: "cjs" }, { file: "store/dist/server.js", format: "es" } ], external: ["solid-js"], plugins }, { input: "store/src/index.ts", output: [ { file: "store/dist/dev.cjs", format: "cjs" }, { file: "store/dist/dev.js", format: "es" } ], external: ["solid-js"], plugins }, { input: "web/src/index.ts", output: [ { file: "web/dist/web.cjs", format: "cjs" }, { file: "web/dist/web.js", format: "es" } ], external: ["solid-js"], plugins: [ replace({ '"_DX_DEV_"': false, preventAssignment: true, delimiters: ["", ""] }) ].concat(plugins) }, { input: "web/server/index.ts", output: [ { file: "web/dist/server.cjs", format: "cjs" }, { file: "web/dist/server.js", format: "es" } ], external: ["solid-js", "stream"], plugins }, { input: "web/src/index.ts", output: [ { file: "web/dist/dev.cjs", format: "cjs" }, { file: "web/dist/dev.js", format: "es" } ], external: ["solid-js"], plugins }, { input: "universal/src/index.ts", output: [ { file: "universal/dist/universal.cjs", format: "cjs" }, { file: "universal/dist/universal.js", format: "es" } ], external: ["solid-js"], plugins: [ replace({ '"_DX_DEV_"': false, preventAssignment: true, delimiters: ["", ""] }) ].concat(plugins) }, { input: "universal/src/index.ts", output: [ { file: "universal/dist/dev.cjs", format: "cjs" }, { file: "universal/dist/dev.js", format: "es" } ], external: ["solid-js"], plugins }, { input: "html/src/index.ts", output: [ { file: "html/dist/html.cjs", format: "cjs", exports: "auto" }, { file: "html/dist/html.js", format: "es" } ], external: ["solid-js/web"], plugins }, { input: "h/src/index.ts", output: [ { file: "h/dist/h.cjs", format: "cjs", exports: "auto" }, { file: "h/dist/h.js", format: "es" } ], external: ["solid-js/web"], plugins }, { input: "h/jsx-runtime/src/index.ts", output: [ { file: "h/jsx-runtime/dist/jsx.cjs", format: "cjs" }, { file: "h/jsx-runtime/dist/jsx.js", format: "es" } ], external: ["solid-js/h"], plugins }];
Version Info