Co-authored-by: Thomas Trompette <thomas.trompette@sfr.fr> Co-authored-by: bosiraphael <raphael.bosi@gmail.com> Co-authored-by: Weiko <corentin@twenty.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@twenty.com> Co-authored-by: Charles Bochet <charles@twenty.com>
18 lines
415 B
JavaScript
18 lines
415 B
JavaScript
module.exports = [
|
|
// Add support for native node modules
|
|
{
|
|
// We're specifying native_modules in the test because the asset relocator loader generates a
|
|
// "fake" .node file which is really a cjs file.
|
|
test: /native_modules[/\\].+\.node$/,
|
|
use: 'node-loader',
|
|
},
|
|
{
|
|
test: /\.(png|jpe?g|gif)$/i,
|
|
type: 'asset/inline',
|
|
},
|
|
{
|
|
test: /\.svg$/i,
|
|
type: 'asset/resource',
|
|
},
|
|
];
|