diff --git a/esbuild/build.js b/esbuild/build.js index de935db..6594ab0 100755 --- a/esbuild/build.js +++ b/esbuild/build.js @@ -29,7 +29,7 @@ const common = { const runtime = await esbuild.build({ ...common, ...runtimeCommon, - outfile: 'build/runtime/index-node.js', + outfile: 'build/runtime/index.js', minify: true, metafile: true, }); @@ -37,7 +37,7 @@ const common = { esbuild.build({ ...common, ...runtimeCommon, - outfile: 'build/runtime/index.js', + outfile: 'build/runtime/index-browser.js', external: ['katex'], platform: 'neutral', }); diff --git a/package.json b/package.json index 501b776..074579e 100644 --- a/package.json +++ b/package.json @@ -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" },