Skip to content

Commit 399fdbd

Browse files
committed
fix: support NodeNext module resolution
1 parent 9cea733 commit 399fdbd

14 files changed

Lines changed: 65 additions & 55 deletions

‎package.json‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
"name": "unplugin-oxc",
33
"type": "module",
44
"version": "0.6.1",
5-
"devEngines": {
6-
"packageManager": {
7-
"name": "pnpm",
8-
"version": "12.4.2",
9-
"onFail": "download"
10-
}
11-
},
125
"description": "Oxc integration for unplugin.",
136
"author": "Kevin Deng <sxzz@sxzz.moe>",
147
"license": "MIT",
@@ -53,6 +46,13 @@
5346
"engines": {
5447
"node": "^22.18.0 || ^24.11.0 || >=26.0.0"
5548
},
49+
"devEngines": {
50+
"packageManager": {
51+
"name": "pnpm",
52+
"version": "12.4.2",
53+
"onFail": "download"
54+
}
55+
},
5656
"scripts": {
5757
"lint": "eslint --cache .",
5858
"lint:fix": "pnpm run lint --fix",

‎src/esbuild.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @module
55
*/
66

7-
import { Oxc } from './index'
7+
import { Oxc } from './index.ts'
88

99
/**
1010
* Esbuild plugin

‎src/farm.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @module
55
*/
66

7-
import { Oxc } from './index'
7+
import { Oxc } from './index.ts'
88

99
/**
1010
* Farm plugin

‎src/index.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { toArray } from '@antfu/utils'
55
import { ResolverFactory } from 'oxc-resolver'
66
import { transformSync as oxcTransformSync } from 'oxc-transform'
77
import { createUnplugin, type UnpluginInstance } from 'unplugin'
8-
import { resolveOptions, type Options } from './core/options'
9-
import { getModuleFormat } from './core/utils'
8+
import { resolveOptions, type Options } from './core/options.ts'
9+
import { getModuleFormat } from './core/utils.ts'
1010
import type { RenderedChunk } from 'rollup'
1111
import type { Plugin as UnloaderPlugin } from 'unloader'
1212

‎src/rolldown.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @module
55
*/
66

7-
import { Oxc } from './index'
7+
import { Oxc } from './index.ts'
88

99
/**
1010
* Rolldown plugin

‎src/rollup.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @module
55
*/
66

7-
import { Oxc } from './index'
7+
import { Oxc } from './index.ts'
88

99
/**
1010
* Rollup plugin

‎src/rspack.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @module
55
*/
66

7-
import { Oxc } from './index'
7+
import { Oxc } from './index.ts'
88

99
/**
1010
* Rspack plugin

‎src/unloader.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @module
55
*/
66

7-
import { Oxc } from './index'
7+
import { Oxc } from './index.ts'
88

99
/**
1010
* Unloader plugin

‎src/vite.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @module
55
*/
66

7-
import { Oxc } from './index'
7+
import { Oxc } from './index.ts'
88

99
/**
1010
* Vite plugin

‎src/webpack.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @module
55
*/
66

7-
import { Oxc } from './index'
7+
import { Oxc } from './index.ts'
88

99
/**
1010
* Webpack plugin

0 commit comments

Comments
 (0)