AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() The conversion back to a relative import is done as if output.file or output.dir were in the same location as the entry point or the common base directory of all entry points if there is more than one. log (x) // output // the different imports are merged import x from './external.js' console. log (x) // src/nested/nested.js // the import would point to the same file if it existed import x from '././external.js' console. Js // input // src/main.js (entry point) import x from './external.js' import './nested/nested.js' console. ![]() a resolved ID (like an absolute path to a file).to mark import "dependency.js" as external, use "dependency.js" while to mark import "dependency" as external, use "dependency". How can I take a directory listing (something like a LS command) feed ONLY DIRECTORY names into then a bash array. the name of an external dependency, exactly the way it is written in the import statement. I wrote a pretty simple bash script that I had to manually put each user from /home/ into the array.Can also be just a single ID or regular expression. (string | RegExp)| RegExp| string| (id: string, parentId: string, isResolved: boolean) => booleanĮither a function that takes an id and returns true (external) or false (not external), or an Array of module IDs, or regular expressions to match module IDs, that should remain external to the bundle. ![]() log.gz via regex : paths : /var/log patterns : "^.*?\\.(?:old|log\\.gz)$" size : 10m use_regex : yes - name : Find /var/log all directories, exclude nginx and mysql : paths : /var/log recurse : no file_type : directory excludes : 'nginx,mysql' # When using patterns that contain a comma, make sure they are formatted as lists to avoid splitting the pattern - name : Use a single pattern that contains a comma formatted as a list : paths : /var/log file_type : file use_regex : yes patterns : _. name : Find /var/log files equal or greater than 10 megabytes ending with. log.gz : paths : /var/log patterns : '*.old,*.log.gz' size : 10m # Note that YAML double quotes require escaping backslashes but yaml single quotes do not. name : Recursively find /tmp files older than 2 days : paths : /tmp age : 2d recurse : yes - name : Recursively find /tmp files older than 4 weeks and equal or greater than 1 megabyte : paths : /tmp age : 4w size : 1m recurse : yes - name : Recursively find /var/tmp files with last access time greater than 3600 seconds : paths : /var/tmp age : 3600 age_stamp : atime recurse : yes - name : Find /var/log files equal or greater than 10 megabytes ending with.
0 Comments
Read More
Leave a Reply. |