quasar-app-extension-sellmate-ui-kit 2.0.2 → 2.0.3

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +12 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-app-extension-sellmate-ui-kit",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Sellmate UI Kit Extension",
5
5
  "author": "Sellmate Dev Team <dev@sellmate.co.kr>",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  "bugs": "https://github.com/sellmate/quasar-ui-kit/issues",
13
13
  "homepage": "",
14
14
  "dependencies": {
15
- "quasar-ui-sellmate-ui-kit": "^2.0.2"
15
+ "quasar-ui-sellmate-ui-kit": "^2.0.3"
16
16
  },
17
17
  "engines": {
18
18
  "node": ">= 8.9.0",
package/src/index.js CHANGED
@@ -6,12 +6,14 @@
6
6
  * API: https://github.com/quasarframework/quasar/blob/master/app/lib/app-extension/IndexAPI.js
7
7
  */
8
8
 
9
- function extendConf (conf) {
9
+ function extendConf (conf, api) {
10
10
  // register our boot file
11
11
  conf.boot.push('~quasar-app-extension-sellmate-ui-kit/src/boot/register.js')
12
12
 
13
- // make sure app extension files & ui package gets transpiled
14
- conf.build.transpileDependencies.push(/quasar-app-extension-sellmate-ui-kit[\\/]src/)
13
+ if (api.hasVite !== true) {
14
+ // make sure app extension files & ui package gets transpiled
15
+ conf.build.transpileDependencies.push(/quasar-app-extension-sellmate-ui-kit[\\/]src/)
16
+ }
15
17
 
16
18
  // make sure the stylesheet goes through webpack to avoid SSR issues
17
19
  conf.css.push('~quasar-ui-sellmate-ui-kit/src/index.scss')
@@ -26,6 +28,13 @@ module.exports = function (api) {
26
28
  api.compatibleWith('quasar', '^2.0.0')
27
29
  api.compatibleWith('@quasar/app', '^3.0.0')
28
30
 
31
+ if (api.hasVite) {
32
+ api.compatibleWith('@quasar/app-vite', '^1.0.0')
33
+ }
34
+ else if (api.hasWebpack) {
35
+ api.compatibleWith('@quasar/app-webpack', '^3.4.0')
36
+ }
37
+
29
38
  // Uncomment the line below if you provide a JSON API for your component
30
39
  // api.registerDescribeApi('SellmateUI', '~quasar-ui-sellmate-ui-kit/src/components/SellmateUI.json')
31
40