Unable to configure Parcel (.parcelrc is ignored?) #6674
Unanswered
mindplay-dk
asked this question in
Q&A
Replies: 1 comment
-
|
Hey @mindplay-dk - You're correct, unfortunately it's not possible to edit how Parcel is used to generate Sandboxes. For what you're trying to accomplish, I'm afraid I don't have a direct solution but you may be able to find some help in our Discord Community |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Seemingly unable to get the
bundle-text:import transformer to work, I tried adding a.parcelrcto my sandbox:https://codesandbox.io/s/canopy-9bo3kj?file=/.parcelrc
This is apparently ignored?
I'm guessing CSB is getting it's the Parcel configuration from somewhere else?
I'm sure there's a very specific Parcel configuration required to make this work on the web - and that's probably why
.parcelrcdoes not appear on the configuration tab next to.babelrcetc.?Does CSB provide any mean of extending or overriding the built-in
.parcelrc?(For the record, what I'm trying to achieve: the
canopypackage has Node.JS dependencies, and I'm trying to make it run in the browser - I've usedaliasinpackage.jsonto bypass CSB's file system emulation, redirecting it tofs.jsin the project, where I'm trying to statically import the files required bycanopyand shimmingreadFileSyncto just return the file contents.bundle-text:does not seem to work either way - but the reason I need it, is because the.jsfiles incanopyare not in fact JS files, and the default"..."configuration forbundle-textwould attempt to run the file through standard transforms first; the files need to be pulled in as just text, unmodified, wherecanopywill parse these using a template engine.)Beta Was this translation helpful? Give feedback.
All reactions