src/Presets/FrontEndPresetTrait.php
protected function addJsVendorImport( $directory, $import ) {
		$filepath = $this->path( $directory, 'resources', 'scripts', 'theme', 'vendor.js' );
		$statement = "import '$import';";

		$this->appendUniqueStatement( $filepath, $statement );
	}
protected function addJsVendorImport( $directory, $import ) {
		$filepath = $this->path( $directory, 'resources', 'scripts', 'theme', 'vendor.js' );
		$statement = "import '$import';";

		$this->appendUniqueStatement( $filepath, $statement );
	}
protected function addJsVendorImport ( $ directory , $ import ) { $ filepath = $ this -> path ( $ directory , 'resources' , 'scripts' , 'theme' , 'vendor.js' ) ; $ statement = "import '$import';" ; $ this -> appendUniqueStatement ( $ filepath , $ statement ) ; }
Add an import statement to the vendor.js file.

@param  string $directory
@param  string $import
@return void
Add an import statement to the vendor . js file .