refactor(locales, sw): use es module (#11204)
* refactor(locales): use es module * fix sw build * fix gulp * try fixing storybook * Revert "try fixing storybook" This reverts commit 5f2a4eee016776381a7d80407e28d129c252228f. * try fixing storybook 2 * Update main.ts * Update build.js * Update main.ts * Update changes.ts * fix sw lint * Update build.js
This commit is contained in:
parent
5059d4d7e1
commit
59046d583d
14 changed files with 54 additions and 36 deletions
|
@ -1,10 +1,13 @@
|
|||
// @ts-check
|
||||
|
||||
const esbuild = require('esbuild');
|
||||
const locales = require('../../locales');
|
||||
const meta = require('../../package.json');
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import * as esbuild from 'esbuild';
|
||||
import locales from '../../locales/index.js';
|
||||
import meta from '../../package.json' assert { type: "json" };
|
||||
const watch = process.argv[2]?.includes('watch');
|
||||
|
||||
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
||||
|
||||
console.log('Starting SW building...');
|
||||
|
||||
/** @type {esbuild.BuildOptions} */
|
||||
|
|
|
@ -19,5 +19,6 @@
|
|||
"eslint": "8.44.0",
|
||||
"eslint-plugin-import": "2.27.5",
|
||||
"typescript": "5.1.6"
|
||||
}
|
||||
},
|
||||
"type": "module"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue