Skip to content

Commit

Permalink
build: return CSS to nodejs runtime bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
ogonkov committed Oct 16, 2024
1 parent 52bbca6 commit d92351d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions esbuild/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ const common = {
const runtime = await esbuild.build({
...common,
...runtimeCommon,
outfile: 'build/runtime/index-node.js',
outfile: 'build/runtime/index.js',
minify: true,
metafile: true,
});

esbuild.build({
...common,
...runtimeCommon,
outfile: 'build/runtime/index.js',
outfile: 'build/runtime/index-browser.js',
external: ['katex'],
platform: 'neutral',
});
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"default": "./build/plugin/index.js"
},
"./runtime": {
"node": "./build/runtime/index-node.js",
"default": "./build/runtime/index.js"
"node": "./build/runtime/index.js",
"default": "./build/runtime/index-browser.js"
},
"./runtime/styles": "./build/runtime/index-node.css",
"./runtime/styles": "./build/runtime/index.css",
"./react": "./build/react/index.js",
"./hooks": "./build/react/index.js"
},
Expand Down

0 comments on commit d92351d

Please sign in to comment.