mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
import type { Configuration } from 'webpack';
|
|
|
|
const loaderPath = require.resolve('../src/index.ts');
|
|
|
|
export function configureLoader(config: Configuration) {
|
|
config.resolveLoader.alias = {
|
|
'source-pointer-loader': loaderPath,
|
|
};
|
|
|
|
config.module.rules.push({
|
|
test: /\.tsx$/,
|
|
loader: 'source-pointer-loader',
|
|
});
|
|
}
|