@atlaspack/babel-plugin-transform-contextual-imports 2.15.1-typescript-b27501580.0 → 2.15.1-typescript-5b4d3ad41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.d.ts +15 -0
  2. package/package.json +2 -2
package/lib/index.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ import type { PluginObj, types as BabelTypes } from '@babel/core';
2
+ interface Opts {
3
+ /** Use node safe import cond syntax */
4
+ node?: boolean;
5
+ }
6
+ interface State {
7
+ /** Plugin options */
8
+ opts: Opts;
9
+ /** Set of identifier names that need to be mutated after import was transformed */
10
+ conditionalImportIdentifiers?: Set<string>;
11
+ /** Set of identifiers that have been visited in the exit pass, to avoid adding the load property multiple times */
12
+ visitedIdentifiers?: Set<BabelTypes.Identifier>;
13
+ }
14
+ declare const _default: (api: object, options: Record<string, any> | null | undefined, dirname: string) => PluginObj<State>;
15
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/babel-plugin-transform-contextual-imports",
3
- "version": "2.15.1-typescript-b27501580.0",
3
+ "version": "2.15.1-typescript-5b4d3ad41.0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,5 +27,5 @@
27
27
  "scripts": {
28
28
  "check-ts": "tsc --emitDeclarationOnly --rootDir src"
29
29
  },
30
- "gitHead": "b275015805a058452afb6fb48c078ecd4de925f2"
30
+ "gitHead": "5b4d3ad41ffa002b989ba77271bb3010a1f05b2a"
31
31
  }