mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix lint
This commit is contained in:
1 file changed
+2
-1
@@ -31,7 +31,7 @@ const {
|
||||
version: coreJsVersion,
|
||||
inverse: false,
|
||||
});
|
||||
fs.writeFileSync(root('__core-js.js'), list.map((i) => `import 'core-js/modules/${i}';`).join('\n'));
|
||||
fs.writeFileSync(root('__core-js.js'), `${list.map((i) => `import 'core-js/modules/${i}';`).join('\n')}\n`);
|
||||
|
||||
export default async function (env: { watch?: boolean, production?: boolean, measure?: boolean } = {}) {
|
||||
if (env.production) console.log(targets);
|
||||
@@ -290,6 +290,7 @@ export default async function (env: { watch?: boolean, production?: boolean, mea
|
||||
rewriteSources: (source) => source.replace('@hydrooj/ui-default/../../node_modules/', ''),
|
||||
},
|
||||
release: {
|
||||
name: (process.env.CI && isNew) ? version : undefined,
|
||||
uploadLegacySourcemaps: (process.env.CI && isNew) ? root('public') : undefined,
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user