undefin3d3
undefin3d3
SSolidJS
Created by undefin3d3 on 10/8/2023 in #support
Problem with bundled UI library
thank you!
12 replies
SSolidJS
Created by undefin3d3 on 10/8/2023 in #support
Problem with bundled UI library
not sure, I think you are able to fix errors during bundling What kind of error did you get?
12 replies
SSolidJS
Created by undefin3d3 on 10/8/2023 in #support
Problem with bundled UI library
@itsyoboieltr I've found out the issue I've built my ui library using rollup and "rollup-preset-solid" plugin Here is rollup.config.js
import withSolid from "rollup-preset-solid";
import sass from "rollup-plugin-sass";

export default withSolid({
input: "src/index.ts",
targets: ["esm", "cjs"],
plugins: [
sass({
output: "./dist/style.css",
failOnError: true,
}),
],
});
import withSolid from "rollup-preset-solid";
import sass from "rollup-plugin-sass";

export default withSolid({
input: "src/index.ts",
targets: ["esm", "cjs"],
plugins: [
sass({
output: "./dist/style.css",
failOnError: true,
}),
],
});
After that library works as expected It might be a bug with vite-plugin-solid, or vite itself, so for now try to build via rollup Hope, it helps
12 replies
SSolidJS
Created by undefin3d3 on 10/8/2023 in #support
Problem with bundled UI library
Got it, thanks Btw using same version of solid library doesn't solve an issue
12 replies