mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-18 11:39:08 +00:00
CSS generate comment
This commit is contained in:
@@ -103,9 +103,11 @@ export default function (resolveFileUrl) {
|
|||||||
`export const ${camelCase(key)} = ${JSON.stringify(val)};`,
|
`export const ${camelCase(key)} = ${JSON.stringify(val)};`,
|
||||||
);
|
);
|
||||||
|
|
||||||
const defs = Object.keys(moduleJSON)
|
const defs =
|
||||||
.map((key) => `export const ${camelCase(key)}: string;`)
|
'// This file is autogenerated by lib/css-plugin.js\n' +
|
||||||
.join('\n');
|
Object.keys(moduleJSON)
|
||||||
|
.map((key) => `export const ${camelCase(key)}: string;`)
|
||||||
|
.join('\n');
|
||||||
|
|
||||||
const defPath = path + '.d.ts';
|
const defPath = path + '.d.ts';
|
||||||
const currentDefFileContent = await fsp
|
const currentDefFileContent = await fsp
|
||||||
|
|||||||
Reference in New Issue
Block a user