This is required for sourcemap
// .babelrc
// Make sure to put it first to make the sourcemap more readable
{
plugins: ['@styils']
}
export interface Options {
identifier?: {
styled?: string
createGlobal?: string
}
importPaths?: string | RegExp
sourceFileName?: string
sourceRoot?: string
}
default: { styled:'styled', createGlobal:'createGlobal' }
Used to mark the function name, compile time will lookup based on the function name to confirm if it is the target
default: /@styils\/(react|solid)/
Used for styled
or createGlobal
import paths, and will only be loaded if matched
default: undefined
Only needed when custom conversion, used to display the target file name
default: undefined
The file path of SourceFileName