diff --git a/packages/react/transform/__test__/fixture.spec.js b/packages/react/transform/__test__/fixture.spec.js index 5af9e467e3..7bd84e7113 100644 --- a/packages/react/transform/__test__/fixture.spec.js +++ b/packages/react/transform/__test__/fixture.spec.js @@ -983,7 +983,6 @@ describe('dynamic import', () => { const result = await transformReactLynx( `\ (async function () { - await import(); await import(0); await import(0, 0); await import("./index.js", { with: { typo: "component" } }); @@ -1013,7 +1012,6 @@ describe('dynamic import', () => { "import "@lynx-js/react/experimental/lazy/import"; import { __dynamicImport } from "@lynx-js/react/internal"; (async function() { - await import(); await import(0); await import(0, 0); await import("./index.js", { @@ -1040,31 +1038,24 @@ describe('dynamic import', () => { expect(await formatMessages(result.errors, { kind: 'error', color: false })) .toMatchInlineSnapshot(` [ - "${errorIcon} [ERROR] \`import()\` with no argument is not allowed - - :2:8: - 2 │ await import(); - ╵ ~~~~~~~~ - - ", "${errorIcon} [ERROR] \`import(...)\` call with non-string literal module id is not allowed - :3:8: - 3 │ await import(0); + :2:8: + 2 │ await import(0); ╵ ~~~~~~~~~ ", "${errorIcon} [ERROR] \`import(...)\` call with non-string literal module id is not allowed - :4:8: - 4 │ await import(0, 0); + :3:8: + 3 │ await import(0, 0); ╵ ~~~~~~~~~~~~ ", "${errorIcon} [ERROR] \`import("...", ...)\` with invalid options is not allowed - :5:8: - 5 │ await import("./index.js", { with: { typo: "component" } }); + :4:8: + 4 │ await import("./index.js", { with: { typo: "component" } }); ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ", diff --git a/packages/react/transform/swc-plugin-reactlynx-compat/turbo.json b/packages/react/transform/swc-plugin-reactlynx-compat/turbo.json index 41e25c2bb6..32413cd5b8 100644 --- a/packages/react/transform/swc-plugin-reactlynx-compat/turbo.json +++ b/packages/react/transform/swc-plugin-reactlynx-compat/turbo.json @@ -4,7 +4,12 @@ "tasks": { "build": { "dependsOn": [], - "inputs": [".cargo/**", "src/**/*.rs", "Cargo.toml", "build.js"], + "inputs": [ + ".cargo/**", + "src/**/*.rs", + "Cargo.toml", + "build.js" + ], "outputs": ["swc_plugin_reactlynx_compat.wasm"] } } diff --git a/packages/react/transform/swc-plugin-reactlynx/turbo.json b/packages/react/transform/swc-plugin-reactlynx/turbo.json index 33a3faea1e..16c1c878ee 100644 --- a/packages/react/transform/swc-plugin-reactlynx/turbo.json +++ b/packages/react/transform/swc-plugin-reactlynx/turbo.json @@ -4,7 +4,12 @@ "tasks": { "build": { "dependsOn": [], - "inputs": [".cargo/**", "src/**/*.rs", "Cargo.toml", "build.js"], + "inputs": [ + ".cargo/**", + "src/**/*.rs", + "Cargo.toml", + "build.js" + ], "outputs": ["swc_plugin_reactlynx.wasm"] } }