Skip to content

Commit 9a902c5

Browse files
Move babel configuration to webpack.mix.json
1 parent 37fe413 commit 9a902c5

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/InertiaJsPreset.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ protected static function updatePackageArray(array $packages)
3131

3232
protected static function updateBootstrapping()
3333
{
34-
copy(__DIR__.'/inertiajs-stubs/.babelrc', base_path('.babelrc'));
3534
copy(__DIR__.'/inertiajs-stubs/webpack.mix.js', base_path('webpack.mix.js'));
3635

3736
copy(__DIR__.'/inertiajs-stubs/resources/js/app.js', resource_path('js/app.js'));

src/inertiajs-stubs/.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/inertiajs-stubs/webpack.mix.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ mix.sass('resources/sass/app.scss', 'public/css')
1111
},
1212
},
1313
})
14+
.babelConfig({
15+
plugins: ['@babel/plugin-syntax-dynamic-import']
16+
})

0 commit comments

Comments
 (0)