No project description provided
Project description
esbuild-py
:warning: Work in progress
Setup
Create conda environment
conda create -n esbuild-py python=3.11
Build
conda activate esbuild-py
cd esbuild_py
go get github.com/keller-mark/esbuild-py
# go build -buildmode=c-shared -o _esbuild.so
Develop
Build python package and install in editable mode
python setup.py bdist_wheel
python setup.py sdist
pip install -e .
python
from esbuild_py import transform
jsx = """
import * as React from 'react'
import * as ReactDOM from 'react-dom'
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
);
"""
print(transform(jsx))
Resources
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
esbuild_py-0.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for esbuild_py-0.1.0-cp311-cp311-macosx_13_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d1b84e57c4c4cd65607021558720d16e95a5aac39f4f95a05f4421a303b9eb5 |
|
MD5 | 1a215e4e77d45bbc860cc8ce7978d507 |
|
BLAKE2b-256 | 50d45403925d0bdfca3bde48511914fb7ab120d015c99b353736487f39a0225d |