P
P
Pavel Kornilov2019-02-16 17:14:55
React
Pavel Kornilov, 2019-02-16 17:14:55

How to put babel on shared hosting?

Hello!
I finished studying ReactJS and ran into the following problem: its code, and specifically the JSX format, is not readable by browsers without prior compilation. Babel is generally recommended as such a compiler.
Hence the questions:
1. Is it possible to install Babel on PHP virtual hosting (without terminal access)?
2. Is there an alternative that allows you to use ReactJS (other than using the browser version of Babel)?

Any ideas on this issue are welcome, except for a holivar on the topic: "Buy VDS and don't suffer."

UPD:
I'll try to clarify the question even more : I'm
interested in the scheme:
1. PHP is being processed
2. The result is buffered
3. The contents of the buffer must be run through the Bbel preprocessor
4. The result is given to the client

That is, you need a version of Babel in PHP, I'll do the rest myself.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2019-02-17
@KorniloFF

No it's over
Use either vds or compile on your side and then run the deploy

K
ky0, 2019-02-16
@ky0

Buy VDS and don't suffer. Not for the sake of a holivar, but for a crutchless solution to the problem.
VDSs of the lower price range do not differ much from shared ones in terms of cost.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question