Skip to content

Commit

Permalink
feat: add react runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
v8tenko committed Sep 30, 2024
1 parent 47ce8a3 commit 03110ee
Show file tree
Hide file tree
Showing 5 changed files with 215 additions and 137 deletions.
12 changes: 12 additions & 0 deletions esbuild/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,17 @@ const runtime = {
plugins: [sassPlugin()],
};

/** @type {import('esbuild').BuildOptions}*/
const runtimeReact = {
...common,
entryPoints: ['src/react/index.tsx'],
outfile: outDir + '/react/index.js',
minify: true,
platform: 'neutral',
plugins: [],
external: ['react'],
};

build(plugin);
build(runtime);
build(runtimeReact);
Loading

0 comments on commit 03110ee

Please sign in to comment.