WebCompiler icon indicating copy to clipboard operation
WebCompiler copied to clipboard

Feature request: glob patterns or some other way to process large groups of files

Open Sora2455 opened this issue 3 years ago • 8 comments

This extension would be far better if I didn't have to worry about other developers (or myself) forgetting to add new JSX files to the compilerconfig.json file.

Sora2455 avatar Apr 05 '22 02:04 Sora2455

Can you provide some examples of your vision? Load order doesn’t matter for your js files?

failwyn avatar Apr 05 '22 19:04 failwyn

At my workplace we're using a different method to actually bundle and serve our JS files, so we just need to compile the JSX to JS. We have several hundred JSX files and adding more all the time - so the ability to declare "compile all JSX files and put the JS file in the same location" would idiot-proof the project. At the moment I'm investigating writing a powershell script to add all the files to compilerconfig.json as I can't use wildcards.

Sora2455 avatar Apr 05 '22 20:04 Sora2455

I’ll look into what it would take to support this.

failwyn avatar Apr 05 '22 20:04 failwyn

Thanks.

Sora2455 avatar Apr 05 '22 21:04 Sora2455

I have the same request. setting wildcards once and not having to manually synchronize the compilerconfig.json every file change would be really nice.

jasonswearingen avatar Jun 30 '22 18:06 jasonswearingen

File order isn’t important to your bundles?

failwyn avatar Jun 30 '22 20:06 failwyn

Not the order they get compiled in, no.

Sora2455 avatar Jun 30 '22 21:06 Sora2455

maybe I'm too much of a noob, but the order doesn't matter for me either.

jasonswearingen avatar Jun 30 '22 21:06 jasonswearingen