Open fregante opened 5 years ago
How would parcel know in this example that you passed Javascript and not HTML or CSS? With a --stdin-type
flag?
That's a good point. I see three options:
echo 'true' | parcel build --stdin js
Probably only the last one is sane.
Edit: prior art in node https://nodejs.org/api/esm.html#esm_code_input_type_code_flag
🙋 Feature request
Like browserify does, accept
stdin
as if it was a file in the current directory (for the module resolution cwd)🤔 Expected Behavior
Exactly like this:
🔦 Context
This would let me create easy bundles without having to go through files that have to be deleted and/or gitignored.
💻 Examples