-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: named export on main entry, add rolldown entry
- Loading branch information
Showing
12 changed files
with
201 additions
and
29 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
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,22 @@ | ||
{ | ||
"name": "@unplugin/ast", | ||
"version": "0.11.1", | ||
"exports": { | ||
"./index": "./src/index.ts", | ||
"./esbuild": "./src/esbuild.ts", | ||
"./rollup": "./src/rollup.ts", | ||
"./rolldown": "./src/rolldown.ts", | ||
"./vite": "./src/vite.ts", | ||
"./webpack": "./src/webpack.ts", | ||
"./rspack": "./src/rspack.ts" | ||
}, | ||
"publish": { | ||
"include": [ | ||
"src", | ||
"package.json", | ||
"jsr.json", | ||
"README.md", | ||
"LICENSE" | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,22 @@ | ||
import unplugin from '.' | ||
/** | ||
* This entry file is for esbuild plugin. Requires esbuild >= 0.15 | ||
* | ||
* @module | ||
*/ | ||
|
||
export default unplugin.esbuild | ||
import { AST } from './index' | ||
|
||
/** | ||
* Esbuild plugin | ||
* | ||
* @example | ||
* ```ts | ||
* // esbuild.config.js | ||
* import { build } from 'esbuild' | ||
* | ||
* build({ | ||
* plugins: [require('unplugin-ast/esbuild')()], | ||
* }) | ||
* ``` | ||
*/ | ||
export default AST.esbuild as typeof AST.esbuild |
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,22 @@ | ||
/** | ||
* This entry file is for Rolldown plugin. | ||
* | ||
* @module | ||
*/ | ||
|
||
import { AST } from './index' | ||
|
||
/** | ||
* Rolldown plugin | ||
* | ||
* @example | ||
* ```ts | ||
* // rolldown.config.js | ||
* import AST from 'unplugin-ast/rolldown' | ||
* | ||
* export default { | ||
* plugins: [AST()], | ||
* } | ||
* ``` | ||
*/ | ||
export default AST.rolldown as typeof AST.rolldown |
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 |
---|---|---|
@@ -1,3 +1,22 @@ | ||
import unplugin from '.' | ||
/** | ||
* This entry file is for Rollup plugin. | ||
* | ||
* @module | ||
*/ | ||
|
||
export default unplugin.rollup | ||
import { AST } from './index' | ||
|
||
/** | ||
* Rollup plugin | ||
* | ||
* @example | ||
* ```ts | ||
* // rollup.config.js | ||
* import AST from 'unplugin-ast/rollup' | ||
* | ||
* export default { | ||
* plugins: [AST()], | ||
* } | ||
* ``` | ||
*/ | ||
export default AST.rollup as typeof AST.rollup |
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 |
---|---|---|
@@ -1,3 +1,20 @@ | ||
import unplugin from '.' | ||
/** | ||
* This entry file is for Rspack plugin. | ||
* | ||
* @module | ||
*/ | ||
|
||
export default unplugin.rspack | ||
import { AST } from './index' | ||
|
||
/** | ||
* Rspack plugin | ||
* | ||
* @example | ||
* ```ts | ||
* // rspack.config.js | ||
* module.exports = { | ||
* plugins: [require('unplugin-ast/rspack')()], | ||
* } | ||
* ``` | ||
*/ | ||
export default AST.rspack as typeof AST.rspack |
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 |
---|---|---|
@@ -1,3 +1,22 @@ | ||
import unplugin from '.' | ||
/** | ||
* This entry file is for Vite plugin. | ||
* | ||
* @module | ||
*/ | ||
|
||
export default unplugin.vite | ||
import { AST } from './index' | ||
|
||
/** | ||
* Vite plugin | ||
* | ||
* @example | ||
* ```ts | ||
* // vite.config.ts | ||
* import AST from 'unplugin-ast/vite' | ||
* | ||
* export default defineConfig({ | ||
* plugins: [AST()], | ||
* }) | ||
* ``` | ||
*/ | ||
export default AST.vite as typeof AST.vite |
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 |
---|---|---|
@@ -1,3 +1,20 @@ | ||
import unplugin from '.' | ||
/** | ||
* This entry file is for webpack plugin. | ||
* | ||
* @module | ||
*/ | ||
|
||
export default unplugin.webpack | ||
import { AST } from './index' | ||
|
||
/** | ||
* Webpack plugin | ||
* | ||
* @example | ||
* ```ts | ||
* // webpack.config.js | ||
* module.exports = { | ||
* plugins: [require('unplugin-ast/webpack')()], | ||
* } | ||
* ``` | ||
*/ | ||
export default AST.webpack as typeof AST.webpack |
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