fix sw build

This commit is contained in:
Kagami Sascha Rosylight
2023-07-09 00:53:59 +02:00
parent 5bd0228da2
commit 7e9b3441eb
3 changed files with 9 additions and 5 deletions

View File

@@ -1,10 +1,13 @@
// @ts-check
const esbuild = require('esbuild');
const locales = require('../../locales');
const meta = require('../../package.json');
import * as esbuild from 'esbuild';
import locales from '../../locales/index.js';
import meta from '../../package.json' assert { type: "json" };
import { fileURLToPath } from 'node:url';
const watch = process.argv[2]?.includes('watch');
const __dirname = fileURLToPath(new URL(".", import.meta.url))
console.log('Starting SW building...');
/** @type {esbuild.BuildOptions} */