mirror of https://github.com/alibaba/ice.git
chore: update @swc/core for stable minify (#563)
* chore: update @swc/core for stable minify * fix: lock plugin version * chore: update lock * fix: route type * fix: lint
This commit is contained in:
parent
114373633f
commit
6d9e6b69f7
|
@ -2,6 +2,7 @@ const { getESLintConfig } = require('@applint/spec');
|
||||||
|
|
||||||
const commonRules = {
|
const commonRules = {
|
||||||
'react/jsx-filename-extension': 0,
|
'react/jsx-filename-extension': 0,
|
||||||
|
'react/no-unknown-property': 0,
|
||||||
'no-underscore-dangle': 0,
|
'no-underscore-dangle': 0,
|
||||||
'class-methods-use-this': 0,
|
'class-methods-use-this': 0,
|
||||||
'no-param-reassign': 0,
|
'no-param-reassign': 0,
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ansi-html-community": "^0.0.8",
|
"ansi-html-community": "^0.0.8",
|
||||||
"html-entities": "^2.3.2",
|
"html-entities": "^2.3.2",
|
||||||
"@swc/core": "1.2.210",
|
"@swc/core": "1.3.3",
|
||||||
"caniuse-lite": "^1.0.30001332",
|
"caniuse-lite": "^1.0.30001332",
|
||||||
"chokidar": "3.5.3",
|
"chokidar": "3.5.3",
|
||||||
"events": "3.3.0",
|
"events": "3.3.0",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import type { RouteObject } from 'react-router';
|
import type { NestedRouteManifest } from '@ice/route-manifest';
|
||||||
import formatPath from './formatPath.js';
|
import formatPath from './formatPath.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,7 +7,7 @@ import formatPath from './formatPath.js';
|
||||||
* @param routes
|
* @param routes
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
function getRoutePaths(routes: RouteObject[], parentPath = ''): string[] {
|
function getRoutePaths(routes: NestedRouteManifest[], parentPath = ''): string[] {
|
||||||
let pathList = [];
|
let pathList = [];
|
||||||
|
|
||||||
routes.forEach(route => {
|
routes.forEach(route => {
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
"homepage": "https://next.ice.work",
|
"homepage": "https://next.ice.work",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ice/route-manifest": "^1.0.0",
|
"@ice/route-manifest": "^1.0.0",
|
||||||
"@swc/core": "1.2.210",
|
"@swc/core": "1.3.3",
|
||||||
"build-scripts": "^2.0.0-24",
|
"build-scripts": "^2.0.0-24",
|
||||||
"esbuild": "^0.14.51",
|
"esbuild": "^0.14.51",
|
||||||
"eslint": "^8.14.0",
|
"eslint": "^8.14.0",
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
"!esm/**/*.map"
|
"!esm/**/*.map"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ice/swc-plugin-remove-export": "^0.1.0",
|
"@ice/swc-plugin-remove-export": "0.1.1",
|
||||||
"@ice/swc-plugin-keep-export": "^0.1.1",
|
"@ice/swc-plugin-keep-export": "0.1.2",
|
||||||
"@ice/swc-plugin-keep-platform": "^0.1.0",
|
"@ice/swc-plugin-keep-platform": "0.1.1",
|
||||||
"@swc/core": "1.2.210",
|
"@swc/core": "1.3.3",
|
||||||
"@ice/bundles": "^0.1.0",
|
"@ice/bundles": "^0.1.0",
|
||||||
"@rollup/pluginutils": "^4.2.0",
|
"@rollup/pluginutils": "^4.2.0",
|
||||||
"browserslist": "^4.19.3",
|
"browserslist": "^4.19.3",
|
||||||
|
|
6307
pnpm-lock.yaml
6307
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue