mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
da275e74fd
This differentiate better metadata and owl exported values. Also, and this is the goal, it gives a space to add extra keys in the future.
15 lines
449 B
JavaScript
15 lines
449 B
JavaScript
import { version } from "./package.json";
|
|
import git from "git-rev-sync";
|
|
|
|
// rollup.config.js
|
|
export default {
|
|
input: "dist/owl/index.js",
|
|
output: {
|
|
file: "dist/owl.js",
|
|
format: "iife",
|
|
name: "owl",
|
|
extend: true,
|
|
outro: `exports.__info__.version = '${version}';\nexports.__info__.date = '${new Date().toISOString()}';\nexports.__info__.hash = '${git.short()}';\nexports.__info__.url = 'https://github.com/odoo/owl';`
|
|
}
|
|
};
|