@newlogic-digital/core 2.0.0-alpha.3 → 2.0.0-alpha.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.
Files changed (2) hide show
  1. package/index.js +3 -9
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -101,7 +101,7 @@ const defaultOptions = {
101
101
 
102
102
  /**
103
103
  * @param {import('@newlogic-digital/core/types').PluginUserConfig} options
104
- * @returns import('vite').Plugin
104
+ * @returns [import('vite').Plugin]
105
105
  */
106
106
  const plugin = (options = {}) => {
107
107
  options = merge(defaultOptions, options)
@@ -116,16 +116,10 @@ const plugin = (options = {}) => {
116
116
  posthtmlPrism
117
117
  ]
118
118
 
119
- return {
119
+ return [{
120
120
  name,
121
121
  enforce: 'pre',
122
122
  config (userConfig) {
123
- if (!userConfig?.plugins) {
124
- userConfig.plugins = plugins
125
- } else if (userConfig.plugins) {
126
- userConfig.plugins = plugins.concat(...userConfig.plugins)
127
- }
128
-
129
123
  const isHttps = userConfig?.server?.https !== false &&
130
124
  fs.existsSync(join(os.homedir(), `.ssh/${options.cert}.pem`)) &&
131
125
  fs.existsSync(join(os.homedir(), `.ssh/${options.cert}-key.pem`))
@@ -156,7 +150,7 @@ const plugin = (options = {}) => {
156
150
  : false
157
151
  }, userConfig.server ?? {})
158
152
  }
159
- }
153
+ }, ...plugins]
160
154
  }
161
155
 
162
156
  export default plugin
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "2.0.0-alpha.3",
4
+ "version": "2.0.0-alpha.4",
5
5
  "main": "index.js",
6
6
  "author": "New Logic Studio s.r.o.",
7
7
  "description": "Set of tools that can be used to create modern web applications",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@vituum/vite-plugin-posthtml": "^1.0.0-alpha.3",
15
15
  "@vituum/vite-plugin-juice": "^1.0.0-alpha.2",
16
- "@vituum/vite-plugin-latte": "^1.0.0-alpha.4",
16
+ "@vituum/vite-plugin-latte": "^1.0.0-alpha.5",
17
17
  "@vituum/vite-plugin-tailwindcss": "^1.0.0-alpha.2",
18
18
  "@vituum/vite-plugin-send": "^1.0.0-alpha.2",
19
19
  "vituum": "^1.0.0-alpha.18",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^20.3.1",
28
- "eslint": "^8.42.0",
28
+ "eslint": "^8.43.0",
29
29
  "eslint-config-standard": "^17.1.0",
30
30
  "typescript": "^5.1.3",
31
31
  "vite": "^4.3.9"