src/index.js
function devHandler(curPath, importPath, jsFilename) {
    var absPath = resolve(importPath, jsFilename)

    var projectDir = path.resolve(require.resolve('./index.js'), '..', '..', '..', '..', '..')

    absPath = absPath.replace(projectDir, '@areslabs/babel-plugin-import-css/rncsscache')
    curPath.node.source.value = (absPath + '.js')
}
function devHandler(curPath, importPath, jsFilename) {
    var absPath = resolve(importPath, jsFilename)

    var projectDir = path.resolve(require.resolve('./index.js'), '..', '..', '..', '..', '..')

    absPath = absPath.replace(projectDir, '@areslabs/babel-plugin-import-css/rncsscache')
    curPath.node.source.value = (absPath + '.js')
}
function devHandler ( curPath , importPath , jsFilename ) { var absPath = resolve ( importPath , jsFilename ) var projectDir = path . resolve ( require . resolve ( './index.js' ) , '..' , '..' , '..' , '..' , '..' ) absPath = absPath . replace ( projectDir , '@areslabs/babel-plugin-import-css/rncsscache' ) curPath . node . source . value = ( absPath + '.js' ) }
In development, we just modify the import path, target file will be generated by 'cssWatch'
@param curPath
@param importPath
@param jsFilename
In development we just modify the import path target file will be generated by cssWatch