Skip to content

Commit

Permalink
add sideEffects to prevent entire library treeshaking
Browse files Browse the repository at this point in the history
  • Loading branch information
torinmb committed Sep 7, 2023
1 parent 7242e6c commit c6d7140
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shader-park-core",
"version": "0.2.5",
"version": "0.2.6",
"description": "core glsl and js framework for shader-park",
"main": "dist/shader-park-core.esm.js",
"csj": "dist/shader-park-core.cjs.js",
Expand All @@ -12,6 +12,13 @@
"minimalGLSLRendererCJS": "dist/shader-park-minimal-renderer.cjs.js",
"bundle": "dist/shader-park-core.bundle.js",
"private": false,
"sideEffects": [
"./glsl/bindings.js",
"./glsl/glsl-lib.js",
"./glsl/sdfs.js",
"./generators/glslParser.js",
"./generators/sculpt.js"
],
"bin": {
"toThreeJS": "converters/convertThreeJS.js",
"toMinimal": "converters/convertMinimalRender.js"
Expand Down

0 comments on commit c6d7140

Please sign in to comment.