JS files being compiled together. #810
KonnorRogers
started this conversation in
General
Replies: 2 comments 4 replies
-
Here's the repo. https://github.com/ParamagicDev/snowpacker/tree/development/examples/rails-without-webpack |
Beta Was this translation helpful? Give feedback.
0 replies
-
Found the issue! The issue was with my config. [
"@snowpack/plugin-build-script",
{
- "cmd": `babel --config-file ${BABEL_CONFIG} ${MOUNT_DIR}`,
+ "cmd": `babel --config-file ${BABEL_CONFIG} --filename $FILE`,
"input": [".js"],
"output": [".js"]
}
], Closing this as resolved. |
Beta Was this translation helpful? Give feedback.
4 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue
I'm having an issue where all my JS files are being bundled together even with
bundle: false
Given the following files:
When I do the following, both console.logs happen.
packs
andchannels
appears twice in the console even though I never import "channels"Here's my snowpack config.
Beta Was this translation helpful? Give feedback.
All reactions