UNPKG
@pandabox/unplugin
Version:
latest (0.2.2)
0.2.2
0.2.1
0.2.0
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1
0.0.0
Panda CSS as a Vite/Rollup/Webpack/Esbuild plugin
astahmer.dev
astahmer/pandabox
@pandabox/unplugin
/
src
/
plugin
/
get-module-specifier-value.ts
10 lines
(8 loc)
•
200 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
type
{
ImportDeclaration
}
from
'ts-morph'
export
const
getModuleSpecifierValue
= (
node
:
ImportDeclaration
) => {
try
{
return
node.
getModuleSpecifierValue
() }
catch
{
return
} }