FigmaToCode icon indicating copy to clipboard operation
FigmaToCode copied to clipboard

Migrate UI bundling from rollup to webpack

Open burhanuday opened this issue 3 years ago • 5 comments

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

burhanuday avatar Jan 14 '23 14:01 burhanuday

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

bernaferrari avatar Jan 14 '23 14:01 bernaferrari

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

burhanuday avatar Jan 19 '23 15:01 burhanuday

I want to have webpack watch working with svelte

bernaferrari avatar Jan 19 '23 15:01 bernaferrari

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

burhanuday avatar Jan 19 '23 15:01 burhanuday

@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

burhanuday avatar Jan 21 '23 03:01 burhanuday