metaowl 0.2.1 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/vite/plugin.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metaowl",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
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))