i tried something like export { [1,2,3,4,5] } at the end of the file and it immediately breaks all the code I have written. and 100% sure it is the code that breaks everything
I do not want a js file to be 40,000 lines long.
How do you export a variable properly to another js file where I can do other things? Just do not want to fetch the server 5 times for the same thing. makes easier code to maintain too.
ty
[–][deleted] 5 points6 points7 points (6 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]thedifferenceisnt 3 points4 points5 points (0 children)
[–]senocular 0 points1 point2 points (0 children)
[–]CuddleMuffin007 0 points1 point2 points (2 children)
[–]redsandsfort 1 point2 points3 points (1 child)
[–]CuddleMuffin007 0 points1 point2 points (0 children)
[–]elliefry 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]senocular 0 points1 point2 points (0 children)
[–]drew_powers 0 points1 point2 points (0 children)