mirror of https://github.com/msgbyte/tailchat
parent
8d6db59aee
commit
01b3c11bb9
@ -0,0 +1 @@
|
||||
lib
|
||||
@ -0,0 +1 @@
|
||||
lib
|
||||
@ -1,14 +1,18 @@
|
||||
import type { Configuration } from 'webpack';
|
||||
import type { DefaultWebpackConfig } from 'webpack-test-utils';
|
||||
|
||||
const loaderPath = require.resolve('../src/index.ts');
|
||||
|
||||
export function configureLoader(config: Configuration) {
|
||||
export function configureLoader(config: DefaultWebpackConfig & Configuration) {
|
||||
config.resolveLoader.alias = {
|
||||
'source-pointer-loader': loaderPath,
|
||||
'source-ref-loader': loaderPath,
|
||||
};
|
||||
|
||||
config.module.rules.push({
|
||||
test: /\.tsx$/,
|
||||
loader: 'source-pointer-loader',
|
||||
loader: 'source-ref-loader',
|
||||
options: {
|
||||
available: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue