mirror of
https://github.com/alibaba/ice.git
synced 2024-10-23 07:04:52 +08:00
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 = {
|
||||
'react/jsx-filename-extension': 0,
|
||||
'react/no-unknown-property': 0,
|
||||
'no-underscore-dangle': 0,
|
||||
'class-methods-use-this': 0,
|
||||
'no-param-reassign': 0,
|
||||
|
@ -17,7 +17,7 @@
|
||||
"dependencies": {
|
||||
"ansi-html-community": "^0.0.8",
|
||||
"html-entities": "^2.3.2",
|
||||
"@swc/core": "1.2.210",
|
||||
"@swc/core": "1.3.3",
|
||||
"caniuse-lite": "^1.0.30001332",
|
||||
"chokidar": "3.5.3",
|
||||
"events": "3.3.0",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as path from 'path';
|
||||
import type { RouteObject } from 'react-router';
|
||||
import type { NestedRouteManifest } from '@ice/route-manifest';
|
||||
import formatPath from './formatPath.js';
|
||||
|
||||
/**
|
||||
@ -7,7 +7,7 @@ import formatPath from './formatPath.js';
|
||||
* @param routes
|
||||
* @returns
|
||||
*/
|
||||
function getRoutePaths(routes: RouteObject[], parentPath = ''): string[] {
|
||||
function getRoutePaths(routes: NestedRouteManifest[], parentPath = ''): string[] {
|
||||
let pathList = [];
|
||||
|
||||
routes.forEach(route => {
|
||||
|
@ -31,7 +31,7 @@
|
||||
"homepage": "https://next.ice.work",
|
||||
"devDependencies": {
|
||||
"@ice/route-manifest": "^1.0.0",
|
||||
"@swc/core": "1.2.210",
|
||||
"@swc/core": "1.3.3",
|
||||
"build-scripts": "^2.0.0-24",
|
||||
"esbuild": "^0.14.51",
|
||||
"eslint": "^8.14.0",
|
||||
|
@ -12,10 +12,10 @@
|
||||
"!esm/**/*.map"
|
||||
],
|
||||
"dependencies": {
|
||||
"@ice/swc-plugin-remove-export": "^0.1.0",
|
||||
"@ice/swc-plugin-keep-export": "^0.1.1",
|
||||
"@ice/swc-plugin-keep-platform": "^0.1.0",
|
||||
"@swc/core": "1.2.210",
|
||||
"@ice/swc-plugin-remove-export": "0.1.1",
|
||||
"@ice/swc-plugin-keep-export": "0.1.2",
|
||||
"@ice/swc-plugin-keep-platform": "0.1.1",
|
||||
"@swc/core": "1.3.3",
|
||||
"@ice/bundles": "^0.1.0",
|
||||
"@rollup/pluginutils": "^4.2.0",
|
||||
"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
Block a user