bernaferrari / FigmaToCode

Generate responsive pages and apps on HTML, Tailwind, Flutter and SwiftUI.
https://www.figma.com/community/plugin/842128343887142055
GNU General Public License v3.0
3.58k stars 262 forks source link

Migrate UI bundling from rollup to webpack #70

Closed burhanuday closed 1 month ago

burhanuday commented 1 year ago

since there is now an official svelte-loader for webpack, i could take a stab at migrating the bundling to webpack 5 the advantage is that there is only one bundler to worry about

bernaferrari commented 1 year ago

I would love to, but I don't think I know how. Need to check if figma has updated their sample to webpack 5.

burhanuday commented 1 year ago

The author couldn't find a way to correctly configure Svelte in Webpack, so Rollup was added.

Hey @bernaferrari 👋. Can you tell me what was the problem you faced with svelte in webpack? I could take a look and try to fix it

bernaferrari commented 1 year ago

I want to have webpack watch working with svelte

burhanuday commented 1 year ago

Okay. Let me take a look. I'll send a PR if i am able to get it working

burhanuday commented 1 year ago

@bernaferrari I have a basic version of working HMR for svelte with webpack 5. It might require some changes. Would urge you to switch to the PR and let me know whats not working