@arms/rum-vite-plugin
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -365,3 +365,3 @@ (function (global, factory) { | ||
if (!outputOptions.dir) { | ||
_context.next = 9; | ||
_context.next = 11; | ||
break; | ||
@@ -371,7 +371,3 @@ } | ||
_context.next = 4; | ||
return glob.glob(['/**/*.js', '/**/*.mjs', '/**/*.cjs'].map(function (q) { | ||
return "".concat(q, "?(\\?*)?(#*)"); | ||
}), | ||
// We want to allow query and hashes strings at the end of files | ||
{ | ||
return glob.glob('/**/*', { | ||
root: outputDir, | ||
@@ -383,24 +379,26 @@ absolute: true, | ||
buildArtifacts = _context.sent; | ||
_context.next = 7; | ||
console.log('haha', buildArtifacts); | ||
console.log(outputDir); | ||
_context.next = 9; | ||
return bundleHandler(buildArtifacts); | ||
case 7: | ||
_context.next = 17; | ||
case 9: | ||
_context.next = 19; | ||
break; | ||
case 9: | ||
case 11: | ||
if (!outputOptions.file) { | ||
_context.next = 14; | ||
_context.next = 16; | ||
break; | ||
} | ||
_context.next = 12; | ||
_context.next = 14; | ||
return bundleHandler([outputOptions.file]); | ||
case 12: | ||
_context.next = 17; | ||
case 14: | ||
_context.next = 19; | ||
break; | ||
case 14: | ||
case 16: | ||
_buildArtifacts = Object.keys(bundle).map(function (asset) { | ||
return path__namespace.join(path__namespace.resolve(), asset); | ||
}); | ||
_context.next = 17; | ||
_context.next = 19; | ||
return bundleHandler(_buildArtifacts); | ||
case 17: | ||
case 19: | ||
case "end": | ||
@@ -423,2 +421,1 @@ return _context.stop(); | ||
})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@arms/rum-vite-plugin", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "rum vite plugin", | ||
@@ -5,0 +5,0 @@ "author": "ly403664 <ly403664@alibaba-inc.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16170
3
411