-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildless option #270
Comments
also for reference: solidjs/solid#1159 |
I did find that I was then able to get this working by building an If this could be added to the npm release in such a way that const { build } = require("esbuild");
const { solidPlugin } = require("esbuild-plugin-solid");
build({
entryPoints: ["lib/index.jsx"],
bundle: true,
format: "esm",
outfile: "dist/index.js",
// minify: true,
loader: {
".svg": "dataurl",
},
logLevel: "info",
plugins: [solidPlugin()],
}).catch(() => process.exit(1)); |
The build option above doesn't quite work though because of how And even if I try to modify some components to ensure the callback form is being used, it ends up failing with undefined |
I was able to get a static buildless example working with the following changes: A
Adding |
SolidJS supports buildless templating: https://www.solidjs.com/guides/getting-started#buildless-options
which I was experimenting with using jsdelivr - however, while jsdelivr does have
@suid/material
hosted because there's an npm package - it doesn't seem usable in its currentjsx
packaged state. I've tried skypack and unpkg as well with the same issue.Here's a comparison with
@mui/material
:https://cdn.jsdelivr.net/npm/@mui/material@5.14.18 -
application/javascript; charset=utf-8
and for esm: https://cdn.jsdelivr.net/npm/@mui/material@5.14.18/+esm
https://cdn.jsdelivr.net/npm/@suid/material@0.15.1 -
text/jsx; charset=utf-8
Attempting to use
@suid/material
results in:The resource from “https://cdn.jsdelivr.net/npm/@suid/material@0.15.1” was blocked due to MIME type (“text/jsx”) mismatch (X-Content-Type-Options: nosniff).
I also experimented with trying to use
@babel/standalone
but didn't have any success.I'd love to be able to deploy buildless widgets using Solid and SUID.
The text was updated successfully, but these errors were encountered: