From 2bf3b3bf01df0d9cc7223d178aac8bd1abd22cbb Mon Sep 17 00:00:00 2001 From: XGHeaven Date: Sun, 4 Aug 2024 22:19:24 +0800 Subject: [PATCH 1/2] fix: alias/sourcemap/bundle_mode bug --- .changeset/new-pears-arrive.md | 5 + .changeset/plenty-avocados-know.md | 5 + .changeset/sweet-plums-rush.md | 5 + .gitignore | 1 + packages/pkg/src/helpers/dts.ts | 5 +- packages/pkg/src/helpers/getBuildTasks.ts | 5 +- packages/pkg/src/tasks/transform.ts | 7 +- .../fixtures/alias/build.config.default.mts | 11 + .../pkg/tests/fixtures/alias/package.json | 8 + .../pkg/tests/fixtures/alias/src/alias.ts | 1 + .../pkg/tests/fixtures/alias/src/index.ts | 4 + .../pkg/tests/fixtures/alias/tsconfig.json | 8 + .../pkg/tests/fixtures/default/package.json | 8 + .../pkg/tests/fixtures/default/src/index.ts | 1 + .../pkg/tests/fixtures/tsconfig.common.json | 5 + .../projects/__snapshots__/alias.test.ts.snap | 162 +++++++++++ .../__snapshots__/default.test.ts.snap | 123 ++++++++ packages/pkg/tests/projects/alias.test.ts | 6 + packages/pkg/tests/projects/default.test.ts | 34 +++ packages/pkg/tests/projects/helper.ts | 153 ++++++++++ pnpm-lock.yaml | 273 +++++++----------- pnpm-workspace.yaml | 1 + 22 files changed, 653 insertions(+), 178 deletions(-) create mode 100644 .changeset/new-pears-arrive.md create mode 100644 .changeset/plenty-avocados-know.md create mode 100644 .changeset/sweet-plums-rush.md create mode 100644 packages/pkg/tests/fixtures/alias/build.config.default.mts create mode 100644 packages/pkg/tests/fixtures/alias/package.json create mode 100644 packages/pkg/tests/fixtures/alias/src/alias.ts create mode 100644 packages/pkg/tests/fixtures/alias/src/index.ts create mode 100644 packages/pkg/tests/fixtures/alias/tsconfig.json create mode 100644 packages/pkg/tests/fixtures/default/package.json create mode 100644 packages/pkg/tests/fixtures/default/src/index.ts create mode 100644 packages/pkg/tests/fixtures/tsconfig.common.json create mode 100644 packages/pkg/tests/projects/__snapshots__/alias.test.ts.snap create mode 100644 packages/pkg/tests/projects/__snapshots__/default.test.ts.snap create mode 100644 packages/pkg/tests/projects/alias.test.ts create mode 100644 packages/pkg/tests/projects/default.test.ts create mode 100644 packages/pkg/tests/projects/helper.ts diff --git a/.changeset/new-pears-arrive.md b/.changeset/new-pears-arrive.md new file mode 100644 index 00000000..2afac308 --- /dev/null +++ b/.changeset/new-pears-arrive.md @@ -0,0 +1,5 @@ +--- +'@ice/pkg': patch +--- + +fix: bundle mode with start command should be `development` environment instead of `production` diff --git a/.changeset/plenty-avocados-know.md b/.changeset/plenty-avocados-know.md new file mode 100644 index 00000000..0216abdb --- /dev/null +++ b/.changeset/plenty-avocados-know.md @@ -0,0 +1,5 @@ +--- +'@ice/pkg': patch +--- + +fix: alias is should be working for .d.ts file diff --git a/.changeset/sweet-plums-rush.md b/.changeset/sweet-plums-rush.md new file mode 100644 index 00000000..23cd51a8 --- /dev/null +++ b/.changeset/sweet-plums-rush.md @@ -0,0 +1,5 @@ +--- +'@ice/pkg': patch +--- + +fix: sourcemap option should be working and default should be false for transform diff --git a/.gitignore b/.gitignore index d4912c2b..c4722ecb 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ packages/*/es/ /packages/**/es2017 /packages/**/cjs /packages/**/esm +/packages/pkg/tests/fixtures/**/build.config.for-test.mts **/node_modules /.pnpm-debug.log **/pnpm-global diff --git a/packages/pkg/src/helpers/dts.ts b/packages/pkg/src/helpers/dts.ts index d913400b..e9d16750 100644 --- a/packages/pkg/src/helpers/dts.ts +++ b/packages/pkg/src/helpers/dts.ts @@ -127,7 +127,10 @@ export async function dtsCompile({ files, alias, rootDir, outputDir }: DtsCompil // Reason: https://github.com/microsoft/TypeScript/issues/30952#issuecomment-1114225407 const tsConfigLocalPath = path.join(rootDir, 'node_modules/pkg/tsconfig.json'); await fse.ensureFile(tsConfigLocalPath); - await fse.writeJSON(tsConfigLocalPath, tsConfig, { spaces: 2 }); + await fse.writeJSON(tsConfigLocalPath, { + ...tsConfig, + compilerOptions: tsConfig.options, + }, { spaces: 2 }); const runFile = await prepareSingleFileReplaceTscAliasPaths({ configFile: tsConfigLocalPath, diff --git a/packages/pkg/src/helpers/getBuildTasks.ts b/packages/pkg/src/helpers/getBuildTasks.ts index 1177c073..8243ca50 100644 --- a/packages/pkg/src/helpers/getBuildTasks.ts +++ b/packages/pkg/src/helpers/getBuildTasks.ts @@ -28,6 +28,9 @@ function getBuildTask(buildTask: BuildTask, context: Context): BuildTask { config.sourcemap = config.sourcemap ?? command === 'start'; + const mode = command === 'build' ? 'production' : 'development'; + config.modes = [mode]; + if (config.type === 'bundle') { const defaultBundleSwcConfig = getDefaultBundleSwcConfig(config, context, taskName); config.swcCompileOptions = typeof config.modifySwcCompileOptions === 'function' ? @@ -38,8 +41,6 @@ function getBuildTask(buildTask: BuildTask, context: Context): BuildTask { ); } else if (config.type === 'transform') { config.outputDir = getTransformDefaultOutputDir(rootDir, taskName); - const mode = command === 'build' ? 'production' : 'development'; - config.modes = [mode]; const defaultTransformSwcConfig = getDefaultTransformSwcConfig(config, context, taskName, mode); config.swcCompileOptions = typeof config.modifySwcCompileOptions === 'function' ? config.modifySwcCompileOptions(defaultTransformSwcConfig) : diff --git a/packages/pkg/src/tasks/transform.ts b/packages/pkg/src/tasks/transform.ts index 87e7489d..c77c927f 100644 --- a/packages/pkg/src/tasks/transform.ts +++ b/packages/pkg/src/tasks/transform.ts @@ -94,6 +94,10 @@ async function runTransform( const logger = createLogger(`${taskName}-${mode}`); const entryDirs = getTransformEntryDirs(rootDir, config.entry as Record); + if (config.sourcemap === 'inline') { + logger.warn('The sourcemap "inline" for transform has not fully support.'); + } + const files: OutputFile[] = []; if (updatedFile) { @@ -180,7 +184,8 @@ async function runTransform( } } - if (map) { + // IMPROVE: should disable sourcemap generation in the transform step for speed. + if (map && config.sourcemap !== false) { const standardizedMap = typeof map === 'string' ? map : JSON.stringify(map); fs.writeFileSync( diff --git a/packages/pkg/tests/fixtures/alias/build.config.default.mts b/packages/pkg/tests/fixtures/alias/build.config.default.mts new file mode 100644 index 00000000..616cfac0 --- /dev/null +++ b/packages/pkg/tests/fixtures/alias/build.config.default.mts @@ -0,0 +1,11 @@ +import { defineConfig } from '@ice/pkg'; + +// https://pkg.ice.work/reference/config-list +export default defineConfig({ + transform: { + formats: ['cjs', 'esm', 'es2017'] + }, + alias: { + '@': './src' + }, +}); diff --git a/packages/pkg/tests/fixtures/alias/package.json b/packages/pkg/tests/fixtures/alias/package.json new file mode 100644 index 00000000..62606260 --- /dev/null +++ b/packages/pkg/tests/fixtures/alias/package.json @@ -0,0 +1,8 @@ +{ + "name": "@ice/pkg-tests-fixtures-alias", + "private": true, + "dependencies": { + "@ice/pkg": "workspace:*" + }, + "version": null +} diff --git a/packages/pkg/tests/fixtures/alias/src/alias.ts b/packages/pkg/tests/fixtures/alias/src/alias.ts new file mode 100644 index 00000000..181864e3 --- /dev/null +++ b/packages/pkg/tests/fixtures/alias/src/alias.ts @@ -0,0 +1 @@ +export const bar = 2 diff --git a/packages/pkg/tests/fixtures/alias/src/index.ts b/packages/pkg/tests/fixtures/alias/src/index.ts new file mode 100644 index 00000000..bfde3a20 --- /dev/null +++ b/packages/pkg/tests/fixtures/alias/src/index.ts @@ -0,0 +1,4 @@ +import { bar } from '@/alias.js' + +export const foo = 1 +export { bar } diff --git a/packages/pkg/tests/fixtures/alias/tsconfig.json b/packages/pkg/tests/fixtures/alias/tsconfig.json new file mode 100644 index 00000000..4eb0d66d --- /dev/null +++ b/packages/pkg/tests/fixtures/alias/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.common.json", + "compilerOptions": { + "paths": { + "@": ["./src"] + } + } +} diff --git a/packages/pkg/tests/fixtures/default/package.json b/packages/pkg/tests/fixtures/default/package.json new file mode 100644 index 00000000..6c610022 --- /dev/null +++ b/packages/pkg/tests/fixtures/default/package.json @@ -0,0 +1,8 @@ +{ + "name": "@ice/pkg-tests-fixtures-default", + "private": true, + "dependencies": { + "@ice/pkg": "workspace:*" + }, + "version": null +} diff --git a/packages/pkg/tests/fixtures/default/src/index.ts b/packages/pkg/tests/fixtures/default/src/index.ts new file mode 100644 index 00000000..766766a6 --- /dev/null +++ b/packages/pkg/tests/fixtures/default/src/index.ts @@ -0,0 +1 @@ +export const foo = 1 diff --git a/packages/pkg/tests/fixtures/tsconfig.common.json b/packages/pkg/tests/fixtures/tsconfig.common.json new file mode 100644 index 00000000..aee0ec94 --- /dev/null +++ b/packages/pkg/tests/fixtures/tsconfig.common.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "strict": true + } +} diff --git a/packages/pkg/tests/projects/__snapshots__/alias.test.ts.snap b/packages/pkg/tests/projects/__snapshots__/alias.test.ts.snap new file mode 100644 index 00000000..4074a429 --- /dev/null +++ b/packages/pkg/tests/projects/__snapshots__/alias.test.ts.snap @@ -0,0 +1,162 @@ +// Vitest Snapshot v1 + +exports[`Run config default > cjs structure 1`] = ` +{ + "files": [ + { + "name": "alias.d.ts", + }, + { + "name": "alias.js", + }, + { + "name": "index.d.ts", + }, + { + "name": "index.js", + }, + ], + "name": "cjs", +} +`; + +exports[`Run config default > dist structure 1`] = `null`; + +exports[`Run config default > es2017 structure 1`] = ` +{ + "files": [ + { + "name": "alias.d.ts", + }, + { + "name": "alias.js", + }, + { + "name": "index.d.ts", + }, + { + "name": "index.js", + }, + ], + "name": "es2017", +} +`; + +exports[`Run config default > esm structure 1`] = ` +{ + "files": [ + { + "name": "alias.d.ts", + }, + { + "name": "alias.js", + }, + { + "name": "index.d.ts", + }, + { + "name": "index.js", + }, + ], + "name": "esm", +} +`; + +exports[`Run config default > file content cjs/alias.d.ts 1`] = ` +"export declare const bar = 2; +" +`; + +exports[`Run config default > file content cjs/alias.js 1`] = ` +"\\"use strict\\"; +Object.defineProperty(exports, \\"__esModule\\", { + value: true +}); +Object.defineProperty(exports, \\"bar\\", { + enumerable: true, + get: function() { + return bar; + } +}); +var bar = 2; +" +`; + +exports[`Run config default > file content cjs/index.d.ts 1`] = ` +"import { bar } from './alias.js'; +export declare const foo = 1; +export { bar }; +" +`; + +exports[`Run config default > file content cjs/index.js 1`] = ` +"\\"use strict\\"; +Object.defineProperty(exports, \\"__esModule\\", { + value: true +}); +function _export(target, all) { + for(var name in all)Object.defineProperty(target, name, { + enumerable: true, + get: all[name] + }); +} +_export(exports, { + foo: function() { + return foo; + }, + bar: function() { + return _alias.bar; + } +}); +var _alias = require(\\"@/alias.js\\"); +var foo = 1; +" +`; + +exports[`Run config default > file content es2017/alias.d.ts 1`] = ` +"export declare const bar = 2; +" +`; + +exports[`Run config default > file content es2017/alias.js 1`] = ` +"export const bar = 2; +" +`; + +exports[`Run config default > file content es2017/index.d.ts 1`] = ` +"import { bar } from './alias.js'; +export declare const foo = 1; +export { bar }; +" +`; + +exports[`Run config default > file content es2017/index.js 1`] = ` +"import { bar } from './alias.js'; +export const foo = 1; +export { bar }; +" +`; + +exports[`Run config default > file content esm/alias.d.ts 1`] = ` +"export declare const bar = 2; +" +`; + +exports[`Run config default > file content esm/alias.js 1`] = ` +"export var bar = 2; +" +`; + +exports[`Run config default > file content esm/index.d.ts 1`] = ` +"import { bar } from './alias.js'; +export declare const foo = 1; +export { bar }; +" +`; + +exports[`Run config default > file content esm/index.js 1`] = ` +"import { bar } from \\"./alias.js\\"; +export var foo = 1; +export { bar }; +" +`; diff --git a/packages/pkg/tests/projects/__snapshots__/default.test.ts.snap b/packages/pkg/tests/projects/__snapshots__/default.test.ts.snap new file mode 100644 index 00000000..c53ef295 --- /dev/null +++ b/packages/pkg/tests/projects/__snapshots__/default.test.ts.snap @@ -0,0 +1,123 @@ +// Vitest Snapshot v1 + +exports[`Run config bundle > cjs structure 1`] = `null`; + +exports[`Run config bundle > dist structure 1`] = ` +{ + "files": [ + { + "name": "index.esm.es2017.production.js", + }, + { + "name": "index.esm.es5.production.js", + }, + ], + "name": "dist", +} +`; + +exports[`Run config bundle > es2017 structure 1`] = `null`; + +exports[`Run config bundle > esm structure 1`] = `null`; + +exports[`Run config bundle-full > cjs structure 1`] = `null`; + +exports[`Run config bundle-full > dist structure 1`] = ` +{ + "files": [ + { + "name": "index.cjs.es2017.production.js", + }, + { + "name": "index.cjs.es5.production.js", + }, + { + "name": "index.esm.es2017.production.js", + }, + { + "name": "index.esm.es5.production.js", + }, + { + "name": "index.umd.es2017.production.js", + }, + { + "name": "index.umd.es5.production.js", + }, + ], + "name": "dist", +} +`; + +exports[`Run config bundle-full > es2017 structure 1`] = `null`; + +exports[`Run config bundle-full > esm structure 1`] = `null`; + +exports[`Run config default > cjs structure 1`] = `null`; + +exports[`Run config default > dist structure 1`] = `null`; + +exports[`Run config default > es2017 structure 1`] = ` +{ + "files": [ + { + "name": "index.d.ts", + }, + { + "name": "index.js", + }, + ], + "name": "es2017", +} +`; + +exports[`Run config default > esm structure 1`] = ` +{ + "files": [ + { + "name": "index.d.ts", + }, + { + "name": "index.js", + }, + ], + "name": "esm", +} +`; + +exports[`Run config sourcemap-enable > cjs structure 1`] = `null`; + +exports[`Run config sourcemap-enable > dist structure 1`] = `null`; + +exports[`Run config sourcemap-enable > es2017 structure 1`] = ` +{ + "files": [ + { + "name": "index.d.ts", + }, + { + "name": "index.js", + }, + { + "name": "index.js.map", + }, + ], + "name": "es2017", +} +`; + +exports[`Run config sourcemap-enable > esm structure 1`] = ` +{ + "files": [ + { + "name": "index.d.ts", + }, + { + "name": "index.js", + }, + { + "name": "index.js.map", + }, + ], + "name": "esm", +} +`; diff --git a/packages/pkg/tests/projects/alias.test.ts b/packages/pkg/tests/projects/alias.test.ts new file mode 100644 index 00000000..7e1a664a --- /dev/null +++ b/packages/pkg/tests/projects/alias.test.ts @@ -0,0 +1,6 @@ +import {runProjectTest} from "./helper"; + +runProjectTest('alias', [{ + name: 'default', + config: 'build.config.default.mts' +}]) diff --git a/packages/pkg/tests/projects/default.test.ts b/packages/pkg/tests/projects/default.test.ts new file mode 100644 index 00000000..40118f0b --- /dev/null +++ b/packages/pkg/tests/projects/default.test.ts @@ -0,0 +1,34 @@ +import {runProjectTest} from "./helper"; + +runProjectTest('default', [ + { + name: 'default', + config: {}, + snapshot: 'structure' + }, + { + name: 'bundle', + snapshot: 'structure', + config: { + transform: { formats: [] }, + bundle: {} + } + }, + { + name: 'bundle-full', + snapshot: 'structure', + config: { + transform: { formats: [] }, + bundle: { + formats: ['cjs', 'es2017', 'esm', 'umd'] + } + } + }, + { + name: 'sourcemap-enable', + snapshot: 'structure', + config: { + sourceMaps: true + } + } +]) diff --git a/packages/pkg/tests/projects/helper.ts b/packages/pkg/tests/projects/helper.ts new file mode 100644 index 00000000..95e2ecf0 --- /dev/null +++ b/packages/pkg/tests/projects/helper.ts @@ -0,0 +1,153 @@ +import { it, beforeEach, expect, beforeAll } from 'vitest' +import * as path from 'node:path' +import * as url from "node:url"; +import * as fse from 'fs-extra' +import fs from "fs-extra"; +import { execSync, spawn } from 'node:child_process' +import { UserConfig } from '../../src' + +const fixturesDir = path.join(url.fileURLToPath(import.meta.url), '../../fixtures') + +const CHECK_DIRS = ['es2017', 'esm', 'dist', 'cjs'] + +export interface ProjectTestUserConfig { + name: string, + config?: string | UserConfig + mode?: 'build' | 'start' + snapshot?: 'full' | 'structure' +} + +export interface ProjectTestConfig extends Required { +} + +export type ProjectTestConfigs = ProjectTestUserConfig[] + +export function runProjectTest(name: string, userConfigs: ProjectTestConfigs) { + const projectPath = path.join(fixturesDir, name) + + const configs: ProjectTestConfig[] = [] + + for (const userConfig of userConfigs) { + let config: ProjectTestUserConfig + + if (typeof userConfig === 'string') { + config = {name: userConfig} + } else { + config = userConfig + } + + configs.push({ + name: config.name, + config: config.config, + mode: config?.mode ?? 'build', + snapshot: config?.snapshot ?? 'full' + }) + } + + async function resetProject() { + for (const dir of CHECK_DIRS) { + await fse.remove(path.join(projectPath, dir)) + } + } + + async function runBuild(config: ProjectTestConfig) { + let configPath: string + + if (typeof config.config === 'string') { + configPath = config.config + } else { + configPath = 'build.config.for-test.mts' + await fse.writeFile(path.join(projectPath, configPath), buildIcePkgConfigScript(config.config), 'utf8') + } + + const { mode } = config + + execSync(`./node_modules/.bin/ice-pkg build --config ${configPath}`, { + stdio: 'inherit', + cwd: projectPath, + }) + } + + async function runSnapshot(config: ProjectTestConfig) { + const { name: configName, snapshot} = config + for (const checkDir of CHECK_DIRS) { + const receivedPath = path.join(projectPath, checkDir) + + const isReceivedExists = fs.existsSync(receivedPath) + + const folder = isReceivedExists ? await buildFolderStructure(receivedPath) : null + expect(folder).toMatchSnapshot(`${checkDir} structure`) + + if (snapshot !== 'structure' && folder) { + await snapshotFolderContent(projectPath, folder) + } + } + } + + beforeAll(async () => { + expect(fse.existsSync(projectPath), `Project ${name} is not found`).toBe(true) + }) + + beforeEach(async () => { + await resetProject() + }) + + for (const config of configs) { + it(`Run config ${config.name}`, async () => { + await runBuild(config) + await runSnapshot(config) + }, { + timeout: 30 * 1000 + }) + } +} + +interface Folder { + name: string, + files: (File | Folder)[] +} + +interface File { + name: string +} + +async function buildFolderStructure(dir: string): Promise { + const dirname = path.basename(dir) + const files = await fse.readdir(dir) + files.sort() + + return { + name: dirname, + files: await Promise.all(files.map(async (file) => { + const filePath = path.join(dir, file) + const stat = await fse.stat(filePath) + if (stat.isFile()) { + return { name: file } + } + return buildFolderStructure(filePath) + })) + } +} + +async function snapshotFolderContent(rootDir: string, folder: Folder, parentPath: string = '') { + const { name, files } = folder + parentPath = path.join(parentPath, name) + await Promise.all(files.map(async file => { + const absPath = path.join(rootDir, parentPath, file.name) + const relPath = path.join(parentPath, file.name) + if ('files' in file) { + await snapshotFolderContent(rootDir, file, parentPath) + } else { + const content = await fse.readFile(absPath, 'utf8') + expect(content).toMatchSnapshot(`file content ${relPath}`) + } + })) +} + +function buildIcePkgConfigScript(config: UserConfig) { + return ` +import { defineConfig } from '@ice/pkg' + +export default defineConfig(${JSON.stringify(config, null, 2)}) + `.trim() +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5f117561..2b07d1fc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -479,6 +479,18 @@ importers: specifier: ^0.28.5 version: 0.28.5(sass@1.53.0) + packages/pkg/tests/fixtures/alias: + dependencies: + '@ice/pkg': + specifier: workspace:* + version: link:../../.. + + packages/pkg/tests/fixtures/default: + dependencies: + '@ice/pkg': + specifier: workspace:* + version: link:../../.. + packages/plugin-docusaurus: dependencies: '@docusaurus/core': @@ -571,7 +583,7 @@ importers: version: 4.13.1 '@ice/pkg': specifier: ^1.5.12 - version: 1.5.20(@swc/helpers@0.5.1) + version: link:../pkg '@types/react': specifier: ^17.0.0 version: 17.0.52 @@ -614,7 +626,7 @@ importers: devDependencies: '@ice/pkg': specifier: ^1.5.14 - version: 1.5.20(@swc/helpers@0.5.1) + version: link:../pkg packages/plugin-rax-component: dependencies: @@ -624,7 +636,7 @@ importers: devDependencies: '@ice/pkg': specifier: ^1.5.5 - version: 1.5.20(@swc/helpers@0.5.1) + version: link:../pkg react: specifier: ^18.2.0 version: 18.2.0 @@ -673,7 +685,7 @@ importers: devDependencies: '@ice/pkg': specifier: ^1.5.6 - version: 1.5.20(@swc/helpers@0.5.1) + version: link:../pkg '@types/unist': specifier: ^2.0.6 version: 2.0.6 @@ -5819,53 +5831,6 @@ packages: style-unit: 3.0.5 dev: false - /@ice/pkg@1.5.20(@swc/helpers@0.5.1): - resolution: {integrity: sha512-344ER7S4KEcbDfGdEUAtnk3Rolf6kc7ybr+ppXCZ5KSfdryOQT4WDiGRoJExxK+B0zlmcYwCwiHyx2Bcl08yYg==} - engines: {node: '>=16.14.0'} - hasBin: true - dependencies: - '@ampproject/remapping': 2.2.0 - '@babel/core': 7.21.3 - '@babel/parser': 7.21.3 - '@babel/preset-react': 7.18.6(@babel/core@7.21.3) - '@babel/preset-typescript': 7.18.6(@babel/core@7.21.3) - '@rollup/plugin-alias': 5.0.1(rollup@2.79.1) - '@rollup/plugin-commonjs': 25.0.0(rollup@2.79.1) - '@rollup/plugin-image': 3.0.1(rollup@2.79.1) - '@rollup/plugin-json': 4.1.0(rollup@2.79.1) - '@rollup/plugin-node-resolve': 15.0.2(rollup@2.79.1) - '@rollup/plugin-replace': 5.0.1(rollup@2.79.1) - '@rollup/pluginutils': 4.2.1 - '@swc/core': 1.3.57(@swc/helpers@0.5.1) - acorn: 8.8.2 - autoprefixer: 10.4.7(postcss@8.4.21) - build-scripts: 2.0.0 - cac: 6.7.14 - chokidar: 3.5.3 - consola: 2.15.3 - debug: 4.3.4 - deepmerge: 4.2.2 - es-module-lexer: 1.3.1 - escape-string-regexp: 5.0.0 - fs-extra: 10.1.0 - globby: 11.1.0 - gzip-size: 7.0.0 - lodash.merge: 4.6.2 - magic-string: 0.25.9 - picocolors: 1.0.0 - postcss: 8.4.21 - postcss-plugin-rpx2vw: 1.0.0(postcss@8.4.21) - rollup: 2.79.1 - rollup-plugin-styles: 4.0.0(rollup@2.79.1) - rollup-plugin-visualizer: 5.8.3(rollup@2.79.1) - semver: 7.3.7 - tsc-alias: 1.8.2 - typescript: 4.9.4 - transitivePeerDependencies: - - '@swc/helpers' - - supports-color - dev: true - /@iceworks/eslint-plugin-best-practices@0.2.11(eslint@8.19.0)(stylelint@13.13.1)(typescript@4.7.4): resolution: {integrity: sha512-IsMqWijTyj1c8EBP8oZJhhghz01XUm8hh2AreUvQyi/eCgAcr0MgPXZ94NkXB+1OwCskkiVuXTa+fsooeP0IYA==} dependencies: @@ -6661,6 +6626,7 @@ packages: dependencies: rollup: 2.79.1 slash: 4.0.0 + dev: false /@rollup/plugin-commonjs@25.0.0(rollup@2.79.1): resolution: {integrity: sha512-hoho2Kay9TZrLu0bnDsTTCaj4Npa+THk9snajP/XDNb9a9mmjTjh52EQM9sKl3HD1LsnihX7js+eA2sd2uKAhw==} @@ -6678,6 +6644,7 @@ packages: is-reference: 1.2.1 magic-string: 0.27.0 rollup: 2.79.1 + dev: false /@rollup/plugin-image@3.0.1(rollup@2.79.1): resolution: {integrity: sha512-F50Sko4Xcc576x7HG9f3MvJKKnBfSmqfVFWJkJgyIEkI8YxZxux28lDbuy0+GsAK6BFl9Gn+TRXOUgHHJbFh3w==} @@ -6691,6 +6658,7 @@ packages: '@rollup/pluginutils': 5.0.2(rollup@2.79.1) mini-svg-data-uri: 1.4.4 rollup: 2.79.1 + dev: false /@rollup/plugin-json@4.1.0(rollup@2.79.1): resolution: {integrity: sha512-yfLbTdNS6amI/2OpmbiBoW12vngr5NW2jCJVZSBEz+H5KfUJZ2M7sDjk0U6GOOdCWFVScShte29o9NezJ53TPw==} @@ -6699,6 +6667,7 @@ packages: dependencies: '@rollup/pluginutils': 3.1.0(rollup@2.79.1) rollup: 2.79.1 + dev: false /@rollup/plugin-node-resolve@15.0.2(rollup@2.79.1): resolution: {integrity: sha512-Y35fRGUjC3FaurG722uhUuG8YHOJRJQbI6/CkbRkdPotSpDj9NtIN85z1zrcyDcCQIW4qp5mgG72U+gJ0TAFEg==} @@ -6716,6 +6685,7 @@ packages: is-module: 1.0.0 resolve: 1.22.1 rollup: 2.79.1 + dev: false /@rollup/plugin-replace@5.0.1(rollup@2.79.1): resolution: {integrity: sha512-Z3MfsJ4CK17BfGrZgvrcp/l6WXoKb0kokULO+zt/7bmcyayokDaQ2K3eDJcRLCTAlp5FPI4/gz9MHAsosz4Rag==} @@ -6729,6 +6699,7 @@ packages: '@rollup/pluginutils': 5.0.2(rollup@2.79.1) magic-string: 0.26.7 rollup: 2.79.1 + dev: false /@rollup/pluginutils@3.1.0(rollup@2.79.1): resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==} @@ -6740,6 +6711,7 @@ packages: estree-walker: 1.0.1 picomatch: 2.3.1 rollup: 2.79.1 + dev: false /@rollup/pluginutils@4.2.1: resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} @@ -6747,6 +6719,7 @@ packages: dependencies: estree-walker: 2.0.2 picomatch: 2.3.1 + dev: false /@rollup/pluginutils@5.0.2(rollup@2.79.1): resolution: {integrity: sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==} @@ -6761,6 +6734,7 @@ packages: estree-walker: 2.0.2 picomatch: 2.3.1 rollup: 2.79.1 + dev: false /@sideway/address@4.1.4: resolution: {integrity: sha512-7vwq+rOHVWjyXxVlR76Agnvhy8I9rpzjosTESvmhNeXOXdZZB15Fl+TI9x1SiHZH5Jv2wTGduSxFDIaq0m3DUw==} @@ -6987,15 +6961,6 @@ packages: transitivePeerDependencies: - supports-color - /@swc/core-darwin-arm64@1.3.57: - resolution: {integrity: sha512-lhAK9kF/ppZdNTdaxJl2gE0bXubzQXTgxB2Xojme/1sbOipaLTskBbJ3FLySChpmVOzD0QSCTiW8w/dmQxqNIQ==} - engines: {node: '>=10'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /@swc/core-darwin-arm64@1.3.80: resolution: {integrity: sha512-rhoFTcQMUGfO7IkfOnopPSF6O0/aVJ58B7KueIKbvrMe6YvSfFj9QfObELFjYCcrJZTvUWBhig0QrsfPIiUphA==} engines: {node: '>=10'} @@ -7005,15 +6970,6 @@ packages: dev: false optional: true - /@swc/core-darwin-x64@1.3.57: - resolution: {integrity: sha512-jsTDH8Et/xdOM/ZCNvtrT6J8FT255OrMhEDvHZQZTgoky4oW/3FHUfji4J2FE97gitJqNJI8MuNuiGq81pIJRw==} - engines: {node: '>=10'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /@swc/core-darwin-x64@1.3.80: resolution: {integrity: sha512-0dOLedFpVXe+ugkKHXsqSxMKqvQYfFtibWbrZ7j8wOaErzSGPr0VpyWvepNVb9s046725kPXSw+fsGhqZR8wrw==} engines: {node: '>=10'} @@ -7023,15 +6979,6 @@ packages: dev: false optional: true - /@swc/core-linux-arm-gnueabihf@1.3.57: - resolution: {integrity: sha512-MZv3fwcCmppbwfCWaE8cZvzbXOjX7n5SEC1hF2lgItTqp4S04dFk1iX50jKr6xS6xSLlRBPqDxwZH0sBpHaEuA==} - engines: {node: '>=10'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@swc/core-linux-arm-gnueabihf@1.3.80: resolution: {integrity: sha512-QIjwP3PtDeHBDkwF6+ZZqdUsqAhORbMpxrw2jq3mHe4lQrxBttSFTq018vlMRo2mFEorOvXdadzaD9m+NymPrw==} engines: {node: '>=10'} @@ -7041,15 +6988,6 @@ packages: dev: false optional: true - /@swc/core-linux-arm64-gnu@1.3.57: - resolution: {integrity: sha512-wUeqa/qbkOEGl6TaDQZZL7txrQXs1vL7ERjPYhi9El+ywacFY/rTW2pK5DqaNk2eulVnLhbbNjsE1OMGSEWGkQ==} - engines: {node: '>=10'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@swc/core-linux-arm64-gnu@1.3.80: resolution: {integrity: sha512-cg8WriIueab58ZwkzXmIACnjSzFLzOBwxlC9k65gPXMNgCjab2YbqEYvAbjBqneuqaao02gW6tad2uhjgYaExw==} engines: {node: '>=10'} @@ -7059,15 +6997,6 @@ packages: dev: false optional: true - /@swc/core-linux-arm64-musl@1.3.57: - resolution: {integrity: sha512-pZfp1B9XfH7ZhDKFjr4qbyM093zU2Ri0IZq2M2A4W9q92+Ivy8oEIqw+gSRO3jwMDqRMEtFD49YuFhkJQakxdA==} - engines: {node: '>=10'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@swc/core-linux-arm64-musl@1.3.80: resolution: {integrity: sha512-AhdCQ7QKx5mWrtpaOA1mFRiWWvuiiUtspvo0QSpspDetRKTND1rlf/3UB5+gp0kCeCNUTsVmJWU7fIA9ICZtXA==} engines: {node: '>=10'} @@ -7077,15 +7006,6 @@ packages: dev: false optional: true - /@swc/core-linux-x64-gnu@1.3.57: - resolution: {integrity: sha512-dvtQnv07NikV+CJ+9PYJ3fqphSigzfvSUH6wRCmb5OzLDDLFnPLMrEO0pGeURvdIWCOhngcHF252C1Hl5uFSzA==} - engines: {node: '>=10'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@swc/core-linux-x64-gnu@1.3.80: resolution: {integrity: sha512-+2e5oni1vOrLIjM5Q2/GIzK/uS2YEtuJqnjPvCK8SciRJsSl8OgVsRvyCDbmKeZNtJ2Q+o/O2AQ2w1qpAJG6jg==} engines: {node: '>=10'} @@ -7095,15 +7015,6 @@ packages: dev: false optional: true - /@swc/core-linux-x64-musl@1.3.57: - resolution: {integrity: sha512-1TKCSngyQxpzwBYDzF5MrEfYRDhlzt/GN1ZqlSnsJIPGkABOWZxYDvWJuMrkASdIztn3jSTPU2ih7rR7YQ8IIw==} - engines: {node: '>=10'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@swc/core-linux-x64-musl@1.3.80: resolution: {integrity: sha512-8OK9IlI1zpWOm7vIp1iXmZSEzLAwFpqhsGSEhxPavpOx2m54kLFdPcw/Uv3n461f6TCtszIxkGq1kSqBUdfUBA==} engines: {node: '>=10'} @@ -7113,15 +7024,6 @@ packages: dev: false optional: true - /@swc/core-win32-arm64-msvc@1.3.57: - resolution: {integrity: sha512-HvBYFyf4uBua/jyTrcFLKcq8SIbKVYfz2qWsbgSAZvuQPZvDC1XhN5EDH2tPZmT97F0CJx3fltH5nli6XY1/EQ==} - engines: {node: '>=10'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@swc/core-win32-arm64-msvc@1.3.80: resolution: {integrity: sha512-RKhatwiAGlffnF6z2Mm3Ddid0v3KB+uf5m/Gc7N9zO/EUAV0PnHRuYuZSGyqodHmGFC+mK8YrCooFCEmHL9n+w==} engines: {node: '>=10'} @@ -7131,15 +7033,6 @@ packages: dev: false optional: true - /@swc/core-win32-ia32-msvc@1.3.57: - resolution: {integrity: sha512-PS8AtK9e6Rp97S0ek9W5VCZNCbDaHBUasiJUmaYqRVCq/Mn6S7eQlhd0iUDnjsagigQtoCRgMUzkVknd1tarsQ==} - engines: {node: '>=10'} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@swc/core-win32-ia32-msvc@1.3.80: resolution: {integrity: sha512-3jiiZzU/kaw7k4zUp1yMq1QiUe4wJVtCEXIhf+fKuBsIwm7rdvyK/+PIx5KHnZy4TGQnYczKBRhJA5nuBcrUCQ==} engines: {node: '>=10'} @@ -7149,15 +7042,6 @@ packages: dev: false optional: true - /@swc/core-win32-x64-msvc@1.3.57: - resolution: {integrity: sha512-A6aX/Rpp0v3g7Spf3LSwR+ivviH8x+1xla612KLZmlc0yymWt9BMd3CmBkzyRBr2e41zGCrkf6tra6wgtCbAwA==} - engines: {node: '>=10'} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@swc/core-win32-x64-msvc@1.3.80: resolution: {integrity: sha512-2eZtIoIWQBWqykfms92Zd37lveYOBWQTZjdooBGlsLHtcoQLkNpf1NXmR6TKY0yy8q6Yl3OhPvY+izjmO08MSg==} engines: {node: '>=10'} @@ -7167,30 +7051,6 @@ packages: dev: false optional: true - /@swc/core@1.3.57(@swc/helpers@0.5.1): - resolution: {integrity: sha512-gAT80hOVeK5qoi+BRlgXWgJYI9cbQn2oi05A09Tvb6vjFgBsr9SlQGNZB9uMlcXRXspkZFf9l3yyWRtT4we3Yw==} - engines: {node: '>=10'} - requiresBuild: true - peerDependencies: - '@swc/helpers': ^0.5.0 - peerDependenciesMeta: - '@swc/helpers': - optional: true - dependencies: - '@swc/helpers': 0.5.1 - optionalDependencies: - '@swc/core-darwin-arm64': 1.3.57 - '@swc/core-darwin-x64': 1.3.57 - '@swc/core-linux-arm-gnueabihf': 1.3.57 - '@swc/core-linux-arm64-gnu': 1.3.57 - '@swc/core-linux-arm64-musl': 1.3.57 - '@swc/core-linux-x64-gnu': 1.3.57 - '@swc/core-linux-x64-musl': 1.3.57 - '@swc/core-win32-arm64-msvc': 1.3.57 - '@swc/core-win32-ia32-msvc': 1.3.57 - '@swc/core-win32-x64-msvc': 1.3.57 - dev: true - /@swc/core@1.3.80: resolution: {integrity: sha512-yX2xV5I/lYswHHR+44TPvzBgq3/Y8N1YWpTQADYuvSiX3Jxyvemk5Jpx3rRtigYb8WBkWAAf2i5d5ZJ2M7hhgw==} engines: {node: '>=10'} @@ -7229,6 +7089,7 @@ packages: resolution: {integrity: sha512-sJ902EfIzn1Fa+qYmjdQqh8tPsoxyBz+8yBKC2HKUxyezKJFwPGOn7pv4WY6QuQW//ySQi5lJjA/ZT9sNWWNTg==} dependencies: tslib: 2.4.0 + dev: false /@swc/types@0.1.7: resolution: {integrity: sha512-scHWahbHF0eyj3JsxG9CFJgFdFNaVQCNAimBlT6PzS3n/HptxqREjsm4OH6AN3lYcffZYSPxXW8ua2BEHp0lJQ==} @@ -7386,6 +7247,7 @@ packages: cssnano: 5.1.15(postcss@8.4.14) transitivePeerDependencies: - postcss + dev: false /@types/debug@4.1.7: resolution: {integrity: sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==} @@ -7414,6 +7276,7 @@ packages: /@types/estree@0.0.39: resolution: {integrity: sha1-4Xfmme4bjCLSMXTKqnQiZEOJUJ8=} + dev: false /@types/estree@0.0.51: resolution: {integrity: sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ==} @@ -7619,6 +7482,7 @@ packages: /@types/resolve@1.20.2: resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==} + dev: false /@types/responselike@1.0.0: resolution: {integrity: sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA==} @@ -8184,6 +8048,7 @@ packages: /ansi-regex@2.1.1: resolution: {integrity: sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==} engines: {node: '>=0.10.0'} + dev: false /ansi-regex@5.0.1: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} @@ -8222,12 +8087,14 @@ packages: /aproba@1.2.0: resolution: {integrity: sha1-aALmJk79GMeQobDVF/DyYnvyyUo=} + dev: false /are-we-there-yet@1.1.7: resolution: {integrity: sha1-sVR0qTKtq0/4pQ2a36fk6SbyEUY=} dependencies: delegates: 1.0.0 readable-stream: 2.3.7 + dev: false /arg@4.1.3: resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} @@ -8827,6 +8694,7 @@ packages: resolution: {integrity: sha1-HtxFng8MVISG7Pn8mfIiE2S5oK4=} dependencies: balanced-match: 1.0.2 + dev: false /braces@3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} @@ -8898,10 +8766,12 @@ packages: npmlog: 4.1.2 picocolors: 1.0.0 semver: 7.3.7 + dev: false /builtin-modules@3.3.0: resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} engines: {node: '>=6'} + dev: false /builtins@1.0.3: resolution: {integrity: sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ==} @@ -9251,6 +9121,7 @@ packages: /code-point-at@1.1.0: resolution: {integrity: sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=} engines: {node: '>=0.10.0'} + dev: false /collapse-white-space@1.0.6: resolution: {integrity: sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ==} @@ -9334,6 +9205,7 @@ packages: /commander@9.5.0: resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} engines: {node: ^12.20.0 || >=14} + dev: false /commitlint-config-ali@0.1.3: resolution: {integrity: sha512-udq2cb0i9uXfT6JOgOL7w+iJ0NCcg84az3i6vqEHNI1GCeKXOdZCAjz20XE5dvyWVIfFMcj3d3J0ydgCL6eJHQ==} @@ -9394,6 +9266,7 @@ packages: /console-control-strings@1.1.0: resolution: {integrity: sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=} + dev: false /content-disposition@0.5.2: resolution: {integrity: sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==} @@ -9522,7 +9395,6 @@ packages: loose-envify: 1.4.0 object-assign: 4.1.1 dev: false - bundledDependencies: false /create-require@1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} @@ -9924,6 +9796,7 @@ packages: /decode-uri-component@0.2.2: resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==} engines: {node: '>=0.10'} + dev: false /decompress-response@3.3.0: resolution: {integrity: sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA==} @@ -10019,6 +9892,7 @@ packages: /delegates@1.0.0: resolution: {integrity: sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=} + dev: false /depd@1.1.2: resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==} @@ -10492,6 +10366,7 @@ packages: /es-module-lexer@1.3.1: resolution: {integrity: sha512-JUFAyicQV9mXc3YRxPnDlrfBKpqt6hUYzz9/boprUJHs4e4KVr3XwOF70doO6gwXUor6EWZJAyWAfKki84t20Q==} + dev: false /es-set-tostringtag@2.0.1: resolution: {integrity: sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==} @@ -10523,6 +10398,7 @@ packages: cpu: [x64] os: [android] requiresBuild: true + dev: false optional: true /esbuild-android-arm64@0.14.49: @@ -10531,6 +10407,7 @@ packages: cpu: [arm64] os: [android] requiresBuild: true + dev: false optional: true /esbuild-darwin-64@0.14.49: @@ -10539,6 +10416,7 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true + dev: false optional: true /esbuild-darwin-arm64@0.14.49: @@ -10547,6 +10425,7 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true + dev: false optional: true /esbuild-freebsd-64@0.14.49: @@ -10555,6 +10434,7 @@ packages: cpu: [x64] os: [freebsd] requiresBuild: true + dev: false optional: true /esbuild-freebsd-arm64@0.14.49: @@ -10563,6 +10443,7 @@ packages: cpu: [arm64] os: [freebsd] requiresBuild: true + dev: false optional: true /esbuild-linux-32@0.14.49: @@ -10571,6 +10452,7 @@ packages: cpu: [ia32] os: [linux] requiresBuild: true + dev: false optional: true /esbuild-linux-64@0.14.49: @@ -10579,6 +10461,7 @@ packages: cpu: [x64] os: [linux] requiresBuild: true + dev: false optional: true /esbuild-linux-arm64@0.14.49: @@ -10587,6 +10470,7 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true + dev: false optional: true /esbuild-linux-arm@0.14.49: @@ -10595,6 +10479,7 @@ packages: cpu: [arm] os: [linux] requiresBuild: true + dev: false optional: true /esbuild-linux-mips64le@0.14.49: @@ -10603,6 +10488,7 @@ packages: cpu: [mips64el] os: [linux] requiresBuild: true + dev: false optional: true /esbuild-linux-ppc64le@0.14.49: @@ -10611,6 +10497,7 @@ packages: cpu: [ppc64] os: [linux] requiresBuild: true + dev: false optional: true /esbuild-linux-riscv64@0.14.49: @@ -10619,6 +10506,7 @@ packages: cpu: [riscv64] os: [linux] requiresBuild: true + dev: false optional: true /esbuild-linux-s390x@0.14.49: @@ -10627,6 +10515,7 @@ packages: cpu: [s390x] os: [linux] requiresBuild: true + dev: false optional: true /esbuild-netbsd-64@0.14.49: @@ -10635,6 +10524,7 @@ packages: cpu: [x64] os: [netbsd] requiresBuild: true + dev: false optional: true /esbuild-openbsd-64@0.14.49: @@ -10643,6 +10533,7 @@ packages: cpu: [x64] os: [openbsd] requiresBuild: true + dev: false optional: true /esbuild-sunos-64@0.14.49: @@ -10651,6 +10542,7 @@ packages: cpu: [x64] os: [sunos] requiresBuild: true + dev: false optional: true /esbuild-windows-32@0.14.49: @@ -10659,6 +10551,7 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true + dev: false optional: true /esbuild-windows-64@0.14.49: @@ -10667,6 +10560,7 @@ packages: cpu: [x64] os: [win32] requiresBuild: true + dev: false optional: true /esbuild-windows-arm64@0.14.49: @@ -10675,6 +10569,7 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true + dev: false optional: true /esbuild@0.14.49: @@ -10703,6 +10598,7 @@ packages: esbuild-windows-32: 0.14.49 esbuild-windows-64: 0.14.49 esbuild-windows-arm64: 0.14.49 + dev: false /esbuild@0.16.17: resolution: {integrity: sha512-G8LEkV0XzDMNwXKgM0Jwu3nY3lSTwSGY6XbxM9cr9+s0T/qSV1q1JVPBGzm3dcjhCic9+emZDmMffkwgPeOeLg==} @@ -10760,6 +10656,7 @@ packages: /escape-string-regexp@5.0.0: resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} engines: {node: '>=12'} + dev: false /escodegen@2.0.0: resolution: {integrity: sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==} @@ -11051,9 +10948,11 @@ packages: /estree-walker@1.0.1: resolution: {integrity: sha1-MbxdYSyWtwQQa0d+bdXYqhOMtwA=} + dev: false /estree-walker@2.0.2: resolution: {integrity: sha1-UvAQF4wqTBF6d1fP6UKtt9LaTKw=} + dev: false /esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} @@ -11323,6 +11222,7 @@ packages: /filter-obj@1.1.0: resolution: {integrity: sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==} engines: {node: '>=0.10.0'} + dev: false /finalhandler@1.2.0: resolution: {integrity: sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==} @@ -11601,6 +11501,7 @@ packages: string-width: 1.0.2 strip-ansi: 3.0.1 wide-align: 1.1.5 + dev: false /gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} @@ -11714,6 +11615,7 @@ packages: inherits: 2.0.4 minimatch: 5.1.0 once: 1.4.0 + dev: false /global-dirs@0.1.1: resolution: {integrity: sha512-NknMLn7F2J7aflwFOlGdNIuCDpN3VGoSoB+aap3KABFWbHVn1TCgFC+np23J8W2BiZbjfEw3BFBycSMv1AFblg==} @@ -11855,6 +11757,7 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: duplexer: 0.1.2 + dev: false /handle-thing@2.0.1: resolution: {integrity: sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg==} @@ -11916,6 +11819,7 @@ packages: /has-unicode@2.0.1: resolution: {integrity: sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=} + dev: false /has-yarn@2.1.0: resolution: {integrity: sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==} @@ -12490,6 +12394,7 @@ packages: engines: {node: '>=6'} dependencies: builtin-modules: 3.3.0 + dev: false /is-callable@1.2.4: resolution: {integrity: sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==} @@ -12547,6 +12452,7 @@ packages: engines: {node: '>=0.10.0'} dependencies: number-is-nan: 1.0.1 + dev: false /is-fullwidth-code-point@3.0.0: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} @@ -12588,6 +12494,7 @@ packages: /is-module@1.0.0: resolution: {integrity: sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=} + dev: false /is-negative-zero@2.0.2: resolution: {integrity: sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==} @@ -12657,6 +12564,7 @@ packages: resolution: {integrity: sha1-iy2sCzcfS8mU/eq6nrVC0DAC0Lc=} dependencies: '@types/estree': 1.0.0 + dev: false /is-regex@1.1.4: resolution: {integrity: sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==} @@ -14294,18 +14202,21 @@ packages: resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} dependencies: sourcemap-codec: 1.4.8 + dev: false /magic-string@0.26.7: resolution: {integrity: sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==} engines: {node: '>=12'} dependencies: sourcemap-codec: 1.4.8 + dev: false /magic-string@0.27.0: resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} engines: {node: '>=12'} dependencies: '@jridgewell/sourcemap-codec': 1.4.14 + dev: false /make-dir@2.1.0: resolution: {integrity: sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==} @@ -14902,6 +14813,7 @@ packages: /mini-svg-data-uri@1.4.4: resolution: {integrity: sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==} hasBin: true + dev: false /minimalistic-assert@1.0.1: resolution: {integrity: sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==} @@ -14921,6 +14833,7 @@ packages: engines: {node: '>=10'} dependencies: brace-expansion: 2.0.1 + dev: false /minimist-options@4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} @@ -15004,6 +14917,7 @@ packages: /mylas@2.1.13: resolution: {integrity: sha512-+MrqnJRtxdF+xngFfUUkIMQrUUL0KsxbADUkn23Z/4ibGg192Q+z+CQyiYwvWTsYjJygmMR8+w3ZDa98Zh6ESg==} engines: {node: '>=12.0.0'} + dev: false /nanoid@3.3.4: resolution: {integrity: sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==} @@ -15160,6 +15074,7 @@ packages: console-control-strings: 1.1.0 gauge: 2.7.4 set-blocking: 2.0.0 + dev: false /nprogress@0.2.0: resolution: {integrity: sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==} @@ -15177,6 +15092,7 @@ packages: /number-is-nan@1.0.1: resolution: {integrity: sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=} engines: {node: '>=0.10.0'} + dev: false /nwsapi@2.2.2: resolution: {integrity: sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==} @@ -15371,6 +15287,7 @@ packages: /p-finally@1.0.0: resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==} engines: {node: '>=4'} + dev: false /p-limit@1.3.0: resolution: {integrity: sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==} @@ -15439,6 +15356,7 @@ packages: dependencies: eventemitter3: 4.0.7 p-timeout: 3.2.0 + dev: false /p-retry@4.6.2: resolution: {integrity: sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==} @@ -15452,6 +15370,7 @@ packages: engines: {node: '>=8'} dependencies: p-finally: 1.0.0 + dev: false /p-try@1.0.0: resolution: {integrity: sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==} @@ -15663,6 +15582,7 @@ packages: resolution: {integrity: sha512-Eb/MqCb1Iv/ok4m1FqIXqvUKPISufcjZ605hl3KM/n8GaX8zfhtgdLwZU3vKjuHGh2O9Rjog/bHTq8ofIShdng==} dependencies: queue-lit: 1.5.0 + dev: false /postcss-calc@8.2.4(postcss@8.4.14): resolution: {integrity: sha512-SmWMSJmB8MRnnULldx0lQIyhSNvuDl9HfrZkaqqE/WHAhToYsAvDq+yAsA/kIyINDszOp3Rh0GFoNuH5Ypsm3Q==} @@ -16217,14 +16137,6 @@ packages: postcss: 8.4.14 dev: false - /postcss-plugin-rpx2vw@1.0.0(postcss@8.4.21): - resolution: {integrity: sha512-iH+2s+FD0S9KFrqTCBrlfPoYpCmNxoeK5A9mWX7C9astId8gWSX4grnF+tkgWLQhTP7F+96Q6eLyX4/hI3xpDQ==} - peerDependencies: - postcss: ^8.0.0 - dependencies: - postcss: 8.4.21 - dev: true - /postcss-reduce-idents@5.2.0(postcss@8.4.21): resolution: {integrity: sha512-BTrLjICoSB6gxbc58D5mdBK8OhXRDqud/zodYfdSi52qvDHdMwk+9kB9xsM8yJThH/sZU5A6QVSmMmaN001gIg==} engines: {node: ^10 || ^12 || >=14.0} @@ -16589,6 +16501,7 @@ packages: filter-obj: 1.1.0 split-on-first: 1.1.0 strict-uri-encode: 2.0.0 + dev: false /querystringify@2.2.0: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} @@ -16596,6 +16509,7 @@ packages: /queue-lit@1.5.0: resolution: {integrity: sha512-IslToJ4eiCEE9xwMzq3viOO5nH8sUWUCwoElrhNMozzr9IIt2qqvB4I+uHu/zJTQVqc9R5DFwok4ijNK1pU3fA==} + dev: false /queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -17528,6 +17442,7 @@ packages: rollup: 2.79.1 source-map-js: 1.0.2 tslib: 2.4.0 + dev: false /rollup-plugin-visualizer@5.8.3(rollup@2.79.1): resolution: {integrity: sha512-QGJk4Bqe4AOat5AjipOh8esZH1nck5X2KFpf4VytUdSUuuuSwvIQZjMGgjcxe/zXexltqaXp5Vx1V3LmnQH15Q==} @@ -17543,6 +17458,7 @@ packages: rollup: 2.79.1 source-map: 0.7.4 yargs: 17.5.1 + dev: false /rollup@2.79.1: resolution: {integrity: sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw==} @@ -17550,6 +17466,7 @@ packages: hasBin: true optionalDependencies: fsevents: 2.3.2 + dev: false /rollup@3.17.2: resolution: {integrity: sha512-qMNZdlQPCkWodrAZ3qnJtvCAl4vpQ8q77uEujVCCbC/6CLB7Lcmvjq7HyiOSnf4fxTT9XgsE36oLHJBH49xjqA==} @@ -18013,9 +17930,11 @@ packages: /source-map@0.7.4: resolution: {integrity: sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==} engines: {node: '>= 8'} + dev: false /sourcemap-codec@1.4.8: resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} + dev: false /space-separated-tokens@1.1.5: resolution: {integrity: sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==} @@ -18081,6 +18000,7 @@ packages: /split-on-first@1.1.0: resolution: {integrity: sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==} engines: {node: '>=6'} + dev: false /split2@3.2.2: resolution: {integrity: sha512-9NThjpgZnifTkJpzTZ7Eue85S49QwpNhZTq6GRJwObb6jnLFNGB7Qm73V5HewTROPyxD0C29xqmaI68bQtV+hg==} @@ -18135,6 +18055,7 @@ packages: /strict-uri-encode@2.0.0: resolution: {integrity: sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==} engines: {node: '>=4'} + dev: false /string-length@4.0.2: resolution: {integrity: sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==} @@ -18151,6 +18072,7 @@ packages: code-point-at: 1.1.0 is-fullwidth-code-point: 1.0.0 strip-ansi: 3.0.1 + dev: false /string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} @@ -18262,6 +18184,7 @@ packages: engines: {node: '>=0.10.0'} dependencies: ansi-regex: 2.1.1 + dev: false /strip-ansi@6.0.1: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} @@ -18823,6 +18746,7 @@ packages: mylas: 2.1.13 normalize-path: 3.0.0 plimit-lit: 1.5.0 + dev: false /tsconfig-paths@3.14.1: resolution: {integrity: sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==} @@ -20017,6 +19941,7 @@ packages: resolution: {integrity: sha1-3x1MIGhUNp7PPJpImPGyP72dFdM=} dependencies: string-width: 4.2.3 + dev: false /widest-line@3.1.0: resolution: {integrity: sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 3ed62560..6509baab 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -2,3 +2,4 @@ packages: - 'packages/*' - 'examples/*' - 'website' + - 'packages/pkg/tests/fixtures/*' From 3bf19430c30b45cd739f9908390c662bab3fd0f9 Mon Sep 17 00:00:00 2001 From: XGHeaven Date: Tue, 13 Aug 2024 16:44:24 +0800 Subject: [PATCH 2/2] fix: typo --- packages/pkg/src/tasks/transform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pkg/src/tasks/transform.ts b/packages/pkg/src/tasks/transform.ts index c77c927f..f97ff418 100644 --- a/packages/pkg/src/tasks/transform.ts +++ b/packages/pkg/src/tasks/transform.ts @@ -95,7 +95,7 @@ async function runTransform( const entryDirs = getTransformEntryDirs(rootDir, config.entry as Record); if (config.sourcemap === 'inline') { - logger.warn('The sourcemap "inline" for transform has not fully support.'); + logger.warn('The sourcemap "inline" for transform has not fully supported.'); } const files: OutputFile[] = [];