vuejs / component-compiler-utils

Lower level utilities for compiling Vue single file components
319 stars 75 forks source link

About adding a firstChar('@') in the templateCompilerModules/utils #99

Closed yanghuilong closed 3 years ago

yanghuilong commented 3 years ago
 if (firstChar === '.' || firstChar === '~') {
            // when packaged in the browser, path will be using the posix-
            // only version provided by rollup-plugin-node-builtins.
            return `"${(path_1.default.posix || path_1.default).join(transformAssetUrlsOption.base, uriParts.path + (uriParts.hash || ''))}"`;
}

In the code above, can you add the ( firstChar === '@' ) ?