R/utils.R
add_import_component.Rd
takes a vector of strings, adds a Babel style import statement
add_import_component( target, component.name, component.path, keyword = "export default", package = FALSE )
target | vector to add import statement in. |
---|---|
component.name | name of component to import. |
component.path | path to "import" from. |
keyword | to use as anchor to add import statement. |
package | is the import statement for a package?
TODO: multiple or |