Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/brave-tips-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@ice/bundles': patch
'@ice/app': patch
---

chore: bump swc dependencies
8 changes: 4 additions & 4 deletions packages/bundles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"main": "./esm/index.js",
"type": "module",
"dependencies": {
"@swc/core": "1.3.80",
"@ice/swc-plugin-remove-export": "0.2.0",
"@ice/swc-plugin-keep-export": "0.2.0",
"@ice/swc-plugin-node-transform": "0.2.0",
"@swc/core": "1.9.2",
"@ice/swc-plugin-remove-export": "0.3.0",
"@ice/swc-plugin-keep-export": "0.3.0",
"@ice/swc-plugin-node-transform": "0.3.0",
"ansi-html-community": "^0.0.8",
"html-entities": "^2.3.2",
"core-js": "3.32.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@ice/shared-config": "workspace:*",
"@ice/webpack-config": "workspace:*",
"@ice/rspack-config": "workspace:*",
"@swc/helpers": "0.5.1",
"@swc/helpers": "0.5.15",
"@types/express": "^4.17.14",
"address": "^1.1.2",
"build-scripts": "^2.1.2-0",
Expand Down
1 change: 0 additions & 1 deletion packages/ice/src/bundler/webpack/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export async function startDevServer(
// Sort by length, shortest path first.
a.split('/').filter(Boolean).length - b.split('/').filter(Boolean).length);
const webTaskConfig = taskConfigs.find(({ name }) => name === WEB);
// @ts-expect-error webpack-dev-server types in Configuration is missing.
const originalDevServer: DevServerConfiguration = webpackConfigs[0].devServer;
const customMiddlewares = originalDevServer?.setupMiddlewares;
const defaultDevServerConfig = await getDefaultServerConfig(originalDevServer, commandArgs);
Expand Down
1 change: 0 additions & 1 deletion packages/ice/src/webpack/ServerCompilerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export default class ServerCompilerPlugin {
compiler.hooks.watchRun.tap(pluginName, () => {
this.isCompiling = true;
});
// @ts-expect-error webpack hooks type not match.
compiler.hooks.emit.tapPromise(pluginName, async (compilation: Compilation) => {
this.isCompiling = false;
await this.compileTask(compilation);
Expand Down
2 changes: 1 addition & 1 deletion packages/jsx-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
],
"dependencies": {
"style-unit": "^3.0.4",
"@swc/helpers": "^0.5.13"
"@swc/helpers": "^0.5.15"
},
"devDependencies": {
"@ice/pkg": "^1.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
],
"dependencies": {
"@ice/jsx-runtime": "^0.3.1",
"@swc/helpers": "^0.5.1",
"@swc/helpers": "^0.5.15",
"accept-language-parser": "^1.5.0",
"universal-cookie": "^4.0.4",
"url-join": "^5.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ export default class NormalModulesPlugin {
const [type, prop] = node.arguments;

if (!type) return;

// @ts-expect-error
const componentName = type.name;

// @ts-expect-error
if (type.value) {
// @ts-expect-error
this.onParseCreateElement?.(type.value, componentConfig);
// @ts-ignore
currentModule.elementNameSet.add(type.value);
Expand Down
2 changes: 1 addition & 1 deletion packages/rax-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
],
"dependencies": {
"@ice/appear": "^0.2.1",
"@swc/helpers": "^0.5.1",
"@swc/helpers": "^0.5.15",
"style-unit": "^3.0.5"
},
"devDependencies": {
Expand Down
Loading
Loading