mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-17 19:19:47 +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)};`,
|
||||
);
|
||||
|
||||
const defs = Object.keys(moduleJSON)
|
||||
.map((key) => `export const ${camelCase(key)}: string;`)
|
||||
.join('\n');
|
||||
const defs =
|
||||
'// This file is autogenerated by lib/css-plugin.js\n' +
|
||||
Object.keys(moduleJSON)
|
||||
.map((key) => `export const ${camelCase(key)}: string;`)
|
||||
.join('\n');
|
||||
|
||||
const defPath = path + '.d.ts';
|
||||
const currentDefFileContent = await fsp
|
||||
|
||||
Reference in New Issue
Block a user