Vor Kurzem aufgerufene Suchen
Keine vor kurzem aufgerufene Suchen

Eric Snell
Beigetreten 29. Okt. 2022
·
Letzte Aktivität 10. Feb. 2023
Folge ich
0
Follower
0
Gesamtaktivitäten
10
Stimme
1
Abonnements
3
AKTIVITÄTSÜBERSICHT
BADGES
BEITRÄGE
POSTS
COMMUNITY-KOMMENTARE
BEITRAGSKOMMENTARE
AKTIVITÄTSÜBERSICHT
Neueste Aktivität von Eric Snell
Eric Snell hat einen Kommentar hinterlassen
Thanks Tipene Hughes!
Is this possible with ZAT as well? I don't see it listed anywhere in the docs.
Kommentar anzeigen · Gepostet 10. Feb. 2023 · Eric Snell
0
Follower
0
Stimmen
0
Kommentare
Eric Snell hat einen Kommentar hinterlassen
Related: How could we prevent node_modules from being included in the package? I have a react app and have had to create a temporary workaround using pre and post package scripts that essentially remove and reinstall (respectively) all dependencies. Is there a better solution?
Kommentar anzeigen · Gepostet 09. Feb. 2023 · Eric Snell
0
Follower
0
Stimmen
0
Kommentare
Eric Snell hat einen Post erstellt
Hello!
I have a fairly simple sidebar app written in TypeScript (vanilla JS, no frameworks). I'm using Parcel 2 for bundling all assets into a single dist directory, which my manifest.json points to as the sidebar app url. However whenever I package (using ZAT) and upload the app, I receive a "MIME type not supported" error. I'm able to workaround this by removing any TypeScript files that are included in the zipped filed then re-zipping. Then the app loads, however it's missing the javascript. It appears this is because the script type is "module", as I'm able to again work around this by manually updating to "application/javascript". Obviously neither of these workarounds are ideal!
Was wondering if anyone could shed any light as to why this is happening as well as provide some guidance on how to potentially update so that this isn't a manual process.
Extra deets: The html output from Parcel includes two script tags, one of type module and the other "nomodule" for browsers that don't support. I don't necessarily need to utilize ES modules in production as I'm only using the single JavaScript file.
Thanks!
Gepostet 08. Feb. 2023 · Eric Snell
0
Follower
3
Stimmen
1
Kommentar
Eric Snell hat einen Kommentar hinterlassen
Thanks for the suggestion Tipene Hughes - It's no deal breaker if we can't implement but will keep that in mind for the next app :)
Appreciate the help!
Kommentar anzeigen · Gepostet 02. Nov. 2022 · Eric Snell
0
Follower
0
Stimmen
0
Kommentare
Eric Snell hat einen Kommentar hinterlassen
Thanks Tipene Hughes
We were hoping to implement some sort of exit confirmation if a user were to accidentally click outside of the modal. Our modal will be a form that could potentially collect quite a bit of input from the user, and we wanted to prevent them from having to re-input if they were to dismiss the window early.
One thing I've done so far to help at least prevent this from happening is max out the size of the modal. We also don't want to save any of their input in local/session storage as it includes sensitive PII data.
Would love to hear any alternative solutions you may be able to provide!
Thanks
Eric
Kommentar anzeigen · Gepostet 01. Nov. 2022 · Eric Snell
0
Follower
0
Stimmen
0
Kommentare
Eric Snell hat einen Post erstellt
Hello! I've built a modal app and was wondering if there's a way to prevent the modal from closing when clicking outside of it? From what I understand this triggers the modal close event - is there a way to intercept this?
Gepostet 29. Okt. 2022 · Eric Snell
0
Follower
4
Stimmen
7
Kommentare