-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: update minimal @swc/core to 1.14.13 * feat: support compile js files * Create smooth-ties-count.md
- Loading branch information
Showing
19 changed files
with
182 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@fake-scope/fake-pkg': patch | ||
--- | ||
|
||
fix: support compile js files. close #761 | ||
fix: update minimal `@swc/core` to `1.4.13` because of https://github.com/swc-project/swc/pull/8784 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* eslint import/order: off */ | ||
import assert from 'node:assert' | ||
import test from 'node:test' | ||
|
||
import { supportedExtensions } from 'file-type' | ||
|
||
import { foo } from './foo.mts' | ||
import { bar } from './subdirectory/bar.mts' | ||
import { baz } from './subdirectory/index.mts' | ||
import { bar as subBar } from '@subdirectory/bar.mts' | ||
|
||
await test('js:file-type should work', () => { | ||
assert.ok(supportedExtensions.has('jpg')) | ||
}) | ||
|
||
await test('js:resolve adjacent file path', () => { | ||
assert.equal(foo(), 'foo') | ||
}) | ||
|
||
await test('js:resolve nested file path', () => { | ||
assert.equal(bar(), 'bar') | ||
}) | ||
|
||
await test('js:resolve nested entry point', () => { | ||
assert.equal(baz(), 'baz') | ||
}) | ||
|
||
await test('js:resolve paths', () => { | ||
assert.equal(subBar(), 'bar') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { FIXTURE } from '@integrate/fixture' | ||
import test from 'ava' | ||
|
||
test('js should transpile paths', (t) => { | ||
t.is(FIXTURE, 'fixture') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-7 Bytes
(99%)
packages/integrate/__tests__/react-pragma/__snapshots__/react-pragma.spec.ts.snap
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
packages/integrate/__tests__/sourcemaps/__snapshots__/sourcemaps.spec.ts.snap
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.