Skip to content

Commit 10632db

Browse files
committed
Fix stylesheet export for vuexr for Vite. Bump to version 0.5.2
1 parent 448e82e commit 10632db

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ or at https://technokrat.ch
4242
```
4343
4. Include `vuexr` CSS-styles in your top package:
4444
```css
45-
@import 'vuexr';
45+
@import 'vuexr/style';
4646
```
4747
5. Copy the `worker.*.js` file within the `node_modules/vuexr/assets/` folder into your public path under `/assets/`. Example for Vite:
4848
```js
File renamed without changes.
File renamed without changes.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuexr",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"description": "VueXR is a Vue plugin that let's you project regular DOM components onto augmented reality (AR) markers in real-time.",
55
"engines": {
66
"yarn": ">=1.22.19",
@@ -9,23 +9,23 @@
99
"files": [
1010
"dist/**/*.js",
1111
"dist/**/*.cjs",
12-
"dist/**/*.mjs",
13-
"dist/**/*.umd.js",
1412
"dist/**/*.d.ts",
1513
"dist/**/*.d.ts.map",
1614
"dist/**/*.css",
1715
"dist/**/*.html",
1816
"src/opencv/build_simd/opencv.js"
1917
],
20-
"main": "dist/vuexr.umd.js",
21-
"module": "dist/vuexr.mjs",
18+
"type": "module",
19+
"main": "dist/vuexr.umd.cjs",
20+
"module": "dist/vuexr.js",
2221
"types": "dist/index.d.ts",
2322
"style": "dist/style.css",
2423
"exports": {
2524
".": {
26-
"import": "./dist/vuexr.mjs",
27-
"require": "./dist/vuexr.umd.js"
25+
"import": "./dist/vuexr.js",
26+
"require": "./dist/vuexr.umd.cjs"
2827
},
28+
"./style": "./dist/style.css",
2929
"./opencv": "./src/opencv/build_simd/opencv.js"
3030
},
3131
"scripts": {

0 commit comments

Comments
 (0)