forked from mirror/misskey
Fix json module imports for node 22 (#13875)
This commit is contained in:
parent
92367cf700
commit
1616cb533e
@ -5,7 +5,7 @@ import { type UserConfig, defineConfig } from 'vite';
|
|||||||
|
|
||||||
import locales from '../../locales/index.js';
|
import locales from '../../locales/index.js';
|
||||||
import meta from '../../package.json';
|
import meta from '../../package.json';
|
||||||
import packageInfo from './package.json' assert { type: 'json' };
|
import packageInfo from './package.json' with { type: 'json' };
|
||||||
import pluginUnwindCssModuleClassName from './lib/rollup-plugin-unwind-css-module-class-name.js';
|
import pluginUnwindCssModuleClassName from './lib/rollup-plugin-unwind-css-module-class-name.js';
|
||||||
import pluginJson5 from './vite.json5.js';
|
import pluginJson5 from './vite.json5.js';
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import * as esbuild from 'esbuild';
|
import * as esbuild from 'esbuild';
|
||||||
import locales from '../../locales/index.js';
|
import locales from '../../locales/index.js';
|
||||||
import meta from '../../package.json' assert { type: "json" };
|
import meta from '../../package.json' with { type: "json" };
|
||||||
const watch = process.argv[2]?.includes('watch');
|
const watch = process.argv[2]?.includes('watch');
|
||||||
|
|
||||||
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
||||||
|
@ -13,7 +13,7 @@ import * as terser from 'terser';
|
|||||||
|
|
||||||
import { build as buildLocales } from '../locales/index.js';
|
import { build as buildLocales } from '../locales/index.js';
|
||||||
import generateDTS from '../locales/generateDTS.js';
|
import generateDTS from '../locales/generateDTS.js';
|
||||||
import meta from '../package.json' assert { type: "json" };
|
import meta from '../package.json' with { type: "json" };
|
||||||
import buildTarball from './tarball.mjs';
|
import buildTarball from './tarball.mjs';
|
||||||
|
|
||||||
const configDir = fileURLToPath(new URL('../.config', import.meta.url));
|
const configDir = fileURLToPath(new URL('../.config', import.meta.url));
|
||||||
|
@ -10,7 +10,7 @@ import { fileURLToPath } from 'node:url';
|
|||||||
import glob from 'fast-glob';
|
import glob from 'fast-glob';
|
||||||
import walk from 'ignore-walk';
|
import walk from 'ignore-walk';
|
||||||
import Pack from 'tar/lib/pack.js';
|
import Pack from 'tar/lib/pack.js';
|
||||||
import meta from '../package.json' assert { type: "json" };
|
import meta from '../package.json' with { type: "json" };
|
||||||
|
|
||||||
const cwd = fileURLToPath(new URL('..', import.meta.url));
|
const cwd = fileURLToPath(new URL('..', import.meta.url));
|
||||||
const ignore = [
|
const ignore = [
|
||||||
|
Loading…
Reference in New Issue
Block a user