shader-park / shader-park-core

A JavaScript library for creating real-time 2D and 3D shaders. JS -> Shader. https://shaderpark.com/ https://twitter.com/shaderpark

Home Page:https://shaderpark.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Import doesn't work with the current version

maxp-hover opened this issue · comments

If I yarn add shader-park-core and try and use the same import code here https://github.com/shader-park/shader-park-examples/blob/main/es6-starter-template/index.js

import {sculptToMinimalRenderer} from 'shader-park-core';

it doesn't work because this latest version (0.2.6) of shader-park-core seems to have no exports.

When I change to an older version (the same one as used in that example project via https://github.com/shader-park/shader-park-examples/blob/main/es6-starter-template/package.json) (version 0.1.41) it works fine.

So, something seems to have broken with the ES6 exports since the time those examples were written.

Please fix, this seems like an awesome project and I want to use the latest version.