onelaraveljs 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -0
- package/package.json +1 -1
- package/src/plugins/ViewRegistryPlugin.js +1 -1
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ import { fileURLToPath } from 'url';
|
|
|
13
13
|
const __filename = fileURLToPath(import.meta.url);
|
|
14
14
|
const __dirname = path.dirname(__filename);
|
|
15
15
|
|
|
16
|
-
class ViewRegistryPlugin {
|
|
16
|
+
export class ViewRegistryPlugin {
|
|
17
17
|
constructor(options = {}) {
|
|
18
18
|
// Use process.cwd() to default to the project root, making this plugin portable
|
|
19
19
|
this.viewsDir = options.viewsDir || path.resolve(process.cwd(), 'resources/js/views');
|