Skip to content

Commit

Permalink
use vite!!1!
Browse files Browse the repository at this point in the history
  • Loading branch information
reindernijhoff committed May 21, 2024
1 parent 4ed9382 commit 8caf8f8
Show file tree
Hide file tree
Showing 19 changed files with 1,628 additions and 4,247 deletions.
1 change: 0 additions & 1 deletion example/dist/bundle.js

This file was deleted.

2 changes: 1 addition & 1 deletion example/dist/index.html → example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
<div class="grid-item grid-item-half"></div>
<div class="grid-item grid-item-half"></div>
<div class="grid-item"></div>
<script src="bundle.js"></script>
<script type="module" src="./src/index.js"></script>
</body>
</html>
3,931 changes: 293 additions & 3,638 deletions example/package-lock.json

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@
"description": "",
"author": "Reinder Nijhoff <[email protected]>",
"main": "index.js",
"type": "module",
"scripts": {
"dev": "webpack serve --config ./webpack.config.js --mode development",
"build": "webpack --config ./webpack.config.js --mode production"
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"keywords": [],
"license": "MIT",
"devDependencies": {
"raw-loader": "^4.0.2",
"webpack": "^5.68.0",
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4"
"vite": "^5.1.6"
},
"dependencies": {
"@mediamonks/image-effect-renderer": "^2.2.4",
"@mediamonks/panorama-renderer": "^2.0.2"
"@mediamonks/image-effect-renderer": "^2.2.7"
}
}
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion example/src/examples/Panorama.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PanoramaRenderer} from '@mediamonks/panorama-renderer';
import {PanoramaRenderer} from '../../../src/index';
import ImageLoader from '../utils/ImageLoader';

export default class Panorama {
Expand Down
6 changes: 3 additions & 3 deletions example/src/examples/PanoramaAdvanced.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {quatIdentity, quatRotateY, PanoramaRenderer} from '@mediamonks/panorama-renderer';
import glitch from '../shader/glitch.glsl';
import panoramaMix from '../shader/panoramaMix.glsl';
import {quatIdentity, quatRotateY, PanoramaRenderer} from '../../../src/index';
import glitch from '../shader/glitch.glsl?raw';
import panoramaMix from '../shader/panoramaMix.glsl?raw';
import ImageLoader from "../utils/ImageLoader";
import {ImageEffectRenderer} from "@mediamonks/image-effect-renderer";

Expand Down
2 changes: 1 addition & 1 deletion example/src/examples/PanoramaHotspots.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PanoramaRenderer} from '@mediamonks/panorama-renderer';
import {PanoramaRenderer} from '../../../src/index';
import ImageLoader from '../utils/ImageLoader';

export default class PanoramaHotspots {
Expand Down
2 changes: 1 addition & 1 deletion example/src/utils/ImageLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class ImageLoader {
return new Promise((resolve) => {
const img = new Image;
img.onload = () => resolve(img);
img.src = `./static/${fileName}`;
img.src = fileName;
});
}
}
5 changes: 5 additions & 0 deletions example/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {defineConfig} from 'vite'

export default defineConfig({
base: './',
})
20 changes: 0 additions & 20 deletions example/webpack.config.js

This file was deleted.

Loading

0 comments on commit 8caf8f8

Please sign in to comment.