@open-xchange/vite-plugin-ox-manifests 0.5.0 → 0.5.2
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.
- package/index.js +4 -2
- package/package.json +2 -2
- package/src/plugins/manifests.js +2 -1
package/index.js
CHANGED
|
@@ -49,7 +49,7 @@ export default function ({
|
|
|
49
49
|
]
|
|
50
50
|
let resolvedConfig
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
const vitePluginOxManifests = {
|
|
53
53
|
|
|
54
54
|
name,
|
|
55
55
|
|
|
@@ -112,7 +112,7 @@ export default function ({
|
|
|
112
112
|
async configureServer (server) {
|
|
113
113
|
for (const plugin of plugins) {
|
|
114
114
|
if (plugin.configureServer) {
|
|
115
|
-
await plugin.configureServer.call(
|
|
115
|
+
await plugin.configureServer.call(vitePluginOxManifests, server)
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
},
|
|
@@ -167,4 +167,6 @@ export default function ({
|
|
|
167
167
|
return src
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
+
|
|
171
|
+
return vitePluginOxManifests
|
|
170
172
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/vite-plugin-ox-manifests",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "A vite plugin to concat and serve ox manifests",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"less": "^4.1.3",
|
|
35
35
|
"rollup": "^2.77.2",
|
|
36
36
|
"rollup-plugin-auto-external": "^2.0.0",
|
|
37
|
-
"vite": "^
|
|
37
|
+
"vite": "^4.0.2"
|
|
38
38
|
},
|
|
39
39
|
"lint-staged": {
|
|
40
40
|
"*.js": "eslint --cache --fix"
|
package/src/plugins/manifests.js
CHANGED
|
@@ -53,7 +53,8 @@ export default function ({ supportedEntryExtensions, entryPoints, manifestsAsEnt
|
|
|
53
53
|
viteManifestPlugin.generateBundle.call({
|
|
54
54
|
emitFile: ({ source }) => {
|
|
55
55
|
resolve(JSON.parse(source))
|
|
56
|
-
}
|
|
56
|
+
},
|
|
57
|
+
getFileName: (id) => 'Not implemented'
|
|
57
58
|
}, options, bundle)
|
|
58
59
|
})
|
|
59
60
|
}
|