cheryglsljs 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "cheryglsljs",
3
- "version": "1.0.2",
4
- "description": "\"It is threejs,glsl and gsap based js library\"",
5
- "main": "src/cherry.js",
3
+ "version": "1.0.4",
4
+ "description": "A Three.js + GLSL-based wave effect library.",
5
+ "main": "dist/cherry.js",
6
+ "module": "dist/cherry.js",
6
7
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
8
  "build": "webpack",
9
9
  "start": "webpack serve"
10
10
  },
@@ -22,18 +22,19 @@
22
22
  "gsap": "^3.13.0",
23
23
  "three": "^0.176.0"
24
24
  },
25
- "files": [
26
- "dist/",
27
- "src/"
28
- ],
29
25
  "devDependencies": {
30
26
  "css-loader": "^6.8.1",
31
27
  "css-minimizer-webpack-plugin": "^5.0.1",
32
28
  "glsl-shader-loader": "^0.1.6",
33
29
  "mini-css-extract-plugin": "^2.7.6",
30
+ "raw-loader": "^4.0.2",
34
31
  "terser-webpack-plugin": "^5.3.9",
35
32
  "webpack": "^5.88.2",
36
33
  "webpack-cli": "^5.1.4",
37
34
  "webpack-dev-server": "^4.15.1"
38
- }
35
+ },
36
+ "files": [
37
+ "dist/",
38
+ "src/"
39
+ ]
39
40
  }
package/src/cherry.js CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  import CherryWave from "./effects/waveEffect/Effect";
3
3
 
4
-
5
- export default {
4
+ const Cherryglsl ={
6
5
  CherryWave
7
- }
6
+ }
7
+ export default Cherryglsl;
package/src/utils/init.js CHANGED
@@ -1,5 +1,4 @@
1
- import *as THREE from 'three';
2
- import gsap from 'gsap';
1
+
3
2
  const Scene = () => new THREE.Scene();
4
3
  const camera = () => new THREE.PerspectiveCamera(
5
4
  75,