metaowl 0.2.1 → 0.2.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.
- package/package.json +1 -1
- package/vite/plugin.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metaowl",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Lightweight meta-framework for Odoo OWL — file-based routing, app mounting, Fetch helper, Cache, Meta tags, SSG generator, and a Vite plugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
package/vite/plugin.js
CHANGED
|
@@ -53,7 +53,9 @@ export async function metaowlPlugin(options = {}) {
|
|
|
53
53
|
pagesDir = 'src/pages',
|
|
54
54
|
restartGlobs = [],
|
|
55
55
|
frameworkEntry = './node_modules/metaowl/index.js',
|
|
56
|
-
vendorPackages = ['@odoo/owl']
|
|
56
|
+
vendorPackages = ['@odoo/owl'],
|
|
57
|
+
autoImport = {},
|
|
58
|
+
envPrefix
|
|
57
59
|
} = options
|
|
58
60
|
|
|
59
61
|
const componentXml = collectXml(`${componentsDir}/**/*.xml`)
|
|
@@ -119,7 +121,6 @@ export async function metaowlPlugin(options = {}) {
|
|
|
119
121
|
|
|
120
122
|
// Expose only NODE_ENV + vars matching the configured prefix.
|
|
121
123
|
// Never expose the full system env to avoid leaking secrets.
|
|
122
|
-
const { envPrefix } = options
|
|
123
124
|
const safeEnv = Object.fromEntries(
|
|
124
125
|
Object.entries(process.env).filter(([k]) =>
|
|
125
126
|
k === 'NODE_ENV' || (envPrefix && k.startsWith(envPrefix))
|
|
@@ -153,7 +154,7 @@ export async function metaowlPlugin(options = {}) {
|
|
|
153
154
|
chunkSizeWarningLimit: 1024,
|
|
154
155
|
target: 'esnext',
|
|
155
156
|
rollupOptions: {
|
|
156
|
-
input:
|
|
157
|
+
input: 'index.html',
|
|
157
158
|
output: {
|
|
158
159
|
manualChunks: {
|
|
159
160
|
vendor: vendorPackages,
|