@instructure/babel-plugin-transform-imports
Advanced tools
Comparing version 10.6.1-snapshot-13 to 10.6.1-snapshot-15
@@ -6,3 +6,3 @@ # Change Log | ||
## [10.6.1-snapshot-13](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1-snapshot-13) (2024-11-26) | ||
## [10.6.1-snapshot-15](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1-snapshot-15) (2024-11-26) | ||
@@ -9,0 +9,0 @@ **Note:** Version bump only for package @instructure/babel-plugin-transform-imports |
{ | ||
"name": "@instructure/babel-plugin-transform-imports", | ||
"version": "10.6.1-snapshot-13", | ||
"version": "10.6.1-snapshot-15", | ||
"description": "A babel plugin made by Instructure Inc.", | ||
@@ -5,0 +5,0 @@ "author": "Instructure, Inc. Engineering and Product Design", |
@@ -10,12 +10,25 @@ --- | ||
```js | ||
--- | ||
type: code | ||
--- | ||
// a named member import: | ||
import { Text } from '@instructure/ui-elements' | ||
``` | ||
would be converted to | ||
```js | ||
--- | ||
type: code | ||
--- | ||
// a named import using the full module path: | ||
import { Text } from '@instructure/ui-elements/lib/Text' | ||
``` | ||
Note that any default imports you are currently using will not be transformed: | ||
```js | ||
--- | ||
type: code | ||
--- | ||
// a default import using the full path (will not be transformed): | ||
@@ -22,0 +35,0 @@ import Text from '@instructure/ui-elements/lib/Text' |
129422
57