@macro-plugin/core
Advanced tools
Comparing version 1.1.3 to 1.1.4
# @macro-plugin/core | ||
## 1.1.4 | ||
### Patch Changes | ||
- [#29](https://github.com/macro-plugin/macros/pull/29) [`e3ce376`](https://github.com/macro-plugin/macros/commit/e3ce37696e0a21bdddb56804f7dbcfa904f5fd35) Thanks [@voorjaar](https://github.com/voorjaar)! - feat: support resolveTs and swcTransform options | ||
## 1.1.3 | ||
@@ -4,0 +10,0 @@ |
@@ -266,3 +266,3 @@ import { Identifier, StringLiteral, NumericLiteral, BigIntLiteral, BooleanLiteral, NullLiteral, RegExpLiteral, CallExpression, ClassProperty, PrivateProperty, Param, Constructor, ClassMethod, PrivateMethod, StaticBlock, Decorator, FunctionDeclaration, ClassDeclaration, VariableDeclaration, VariableDeclarator, OptionalChainingExpression, OptionalChainingCall, ThisExpression, ArrayExpression, ObjectExpression, SpreadElement, UnaryExpression, UpdateExpression, BinaryExpression, FunctionExpression, ClassExpression, AssignmentExpression, MemberExpression, SuperPropExpression, ConditionalExpression, Super, Import, NewExpression, SequenceExpression, ArrowFunctionExpression, YieldExpression, MetaProperty, AwaitExpression, TemplateLiteral, TaggedTemplateExpression, TemplateElement, ParenthesisExpression, PrivateName, JSXMemberExpression, JSXNamespacedName, JSXEmptyExpression, JSXExpressionContainer, JSXSpreadChild, JSXOpeningElement, JSXClosingElement, JSXAttribute, JSXText, JSXElement, JSXFragment, JSXOpeningFragment, JSXClosingFragment, ExportDefaultExpression, ExportDeclaration, ImportDeclaration, ExportAllDeclaration, ExportNamedDeclaration, ExportDefaultDeclaration, ImportDefaultSpecifier, ImportNamespaceSpecifier, NamedImportSpecifier, ExportNamespaceSpecifier, ExportDefaultSpecifier, NamedExportSpecifier, Module, Script, ArrayPattern, ObjectPattern, AssignmentPattern, RestElement, KeyValuePatternProperty, AssignmentPatternProperty, KeyValueProperty, AssignmentProperty, GetterProperty, SetterProperty, MethodProperty, ComputedPropName, BlockStatement, ExpressionStatement, EmptyStatement, DebuggerStatement, WithStatement, ReturnStatement, LabeledStatement, BreakStatement, ContinueStatement, IfStatement, SwitchStatement, ThrowStatement, TryStatement, WhileStatement, DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, SwitchCase, CatchClause, TsTypeAnnotation, TsTypeParameterDeclaration, TsTypeParameter, TsTypeParameterInstantiation, TsParameterProperty, TsQualifiedName, TsCallSignatureDeclaration, TsConstructSignatureDeclaration, TsPropertySignature, TsGetterSignature, TsSetterSignature, TsMethodSignature, TsIndexSignature, TsKeywordType, TsThisType, TsFunctionType, TsConstructorType, TsTypeReference, TsTypePredicate, TsImportType, TsTypeQuery, TsTypeLiteral, TsArrayType, TsTupleType, TsTupleElement, TsOptionalType, TsRestType, TsUnionType, TsIntersectionType, TsConditionalType, TsInferType, TsParenthesizedType, TsTypeOperator, TsIndexedAccessType, TsMappedType, TsLiteralType, TsTemplateLiteralType, TsInterfaceDeclaration, TsInterfaceBody, TsExpressionWithTypeArguments, TsTypeAliasDeclaration, TsEnumDeclaration, TsEnumMember, TsModuleDeclaration, TsModuleBlock, TsNamespaceDeclaration, TsImportEqualsDeclaration, TsExternalModuleReference, TsExportAssignment, TsNamespaceExportDeclaration, TsAsExpression, TsInstantiation, TsTypeAssertion, TsConstAssertion, TsNonNullExpression, Invalid, Node, Declaration, Expression, Statement, ModuleItem, TsType, ParseOptions, Options, Plugin, Program, Pattern, Argument, ImportSpecifier, ExportSpecifier } from '@swc/core'; | ||
type MacroOptions = { | ||
/** global macros to be used */ | ||
/** Global macros to be used */ | ||
macros?: MacroPlugin[]; | ||
@@ -308,12 +308,16 @@ /** | ||
exclude?: (string | RegExp)[]; | ||
/** file extensions to be matched, default is ['.js', '.ts', '.jsx', '.tsx', '.mjs', '.cjs'] */ | ||
/** File extensions to be matched. This option is only avaliable for vite/rollup/webpack plugin. Default is ['.js', '.ts', '.jsx', '.tsx', '.mjs', '.cjs'] */ | ||
extensions?: string[]; | ||
/** Use given tsconfig file instead. By default it will find `tsconfig.json` automictly. Disable it by setting to `false` */ | ||
tsconfig?: string | false | undefined; | ||
/** emit dts file, default is false */ | ||
/** Emit macro's dts file, default is false */ | ||
emitDts?: boolean; | ||
/** the dts output path, default is `./macros.d.ts` */ | ||
/** The macro's dts output path, default is `./macros.d.ts` */ | ||
dtsOutputPath?: string; | ||
/** hook when emit dts, we use this hook for emitting dts file */ | ||
/** Hook when emit macro's dts, we use this hook for emitting dts file */ | ||
onEmitDts?: (dts: string) => void; | ||
/** Use given tsconfig file instead. This option is only avaliable for vite/rollup/webpack plugin. By default it will find `tsconfig.json` automictly. Disable it by setting to `false`. */ | ||
tsconfig?: string | false | undefined; | ||
/** Use Typescript File Resolver, default is `false`. This option is only avaliable for vite/rollup plugin. When using vite/rollup in monorepo typescript project, this option may useful. */ | ||
resolveTs?: boolean; | ||
/** Transform Typescript syntax with swc, default is `true`. This option is only avaliable for vite/rollup/webpack plugin. By disabling this option, you can use macro plugin with other typescript plugin together. */ | ||
swcTransform?: boolean; | ||
}; | ||
@@ -320,0 +324,0 @@ type Config = Omit<Options, "plugin" | "test" | "exclude" | "configFile" | "swcrc" | "swcrcRoots" | "filename"> & MacroOptions; |
{ | ||
"name": "@macro-plugin/core", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Macro system for JavaScript and TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
312892
5814