Recent searches
No recent searches

Eric Snell
Joined Oct 29, 2022
·
Last activity Feb 10, 2023
Following
0
Followers
0
Total activity
10
Vote
1
Subscriptions
3
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Eric Snell
Eric Snell commented,
Thanks Tipene Hughes!
Is this possible with ZAT as well? I don't see it listed anywhere in the docs.
View comment · Posted Feb 10, 2023 · Eric Snell
0
Followers
0
Votes
0
Comments
Eric Snell commented,
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?
View comment · Posted Feb 09, 2023 · Eric Snell
0
Followers
0
Votes
0
Comments
Eric Snell created a post,
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!
Posted Feb 08, 2023 · Eric Snell
0
Followers
3
Votes
1
Comment
Eric Snell commented,
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!
View comment · Posted Nov 02, 2022 · Eric Snell
0
Followers
0
Votes
0
Comments
Eric Snell commented,
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
View comment · Posted Nov 01, 2022 · Eric Snell
0
Followers
0
Votes
0
Comments
Eric Snell created a post,
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?
Posted Oct 29, 2022 · Eric Snell
0
Followers
4
Votes
7
Comments