Skip to content

Commit f9823a5

Browse files
committed
fix(extras): help vite dep analysis determine type of script quasarframework#12833
Vite reports this: @quasar/extras doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
1 parent 7a78046 commit f9823a5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

extras/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
// empty file
1+
// this file serves no purpose other than
22
// to help q/app-webpack discover where this package is installed
3+
4+
// also helping Vite's dep analysis the type of script
5+
module.exports = ''

extras/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"build": "node build/index.js"
77
},
8+
"main": "index.js",
89
"repository": {
910
"type": "git",
1011
"url": "git+https://github.com/quasarframework/quasar.git"

0 commit comments

Comments
 (0)