Skip to main content

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)

Uploaded Source

Built Distribution

esbuild_py-0.1.0-cp311-cp311-macosx_13_0_arm64.whl (2.8 MB view hashes)

Uploaded CPython 3.11 macOS 13.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page