import { sync as resolve } from 'resolve' ; import { LoaderFactory } from '../interface' ; const factory = ( ) => { return { loader : resolve ( 'worker-loader' ) , options : { filename : '[name].[contenthash].js' , inline : 'no-fallback' , } , } ; } ; export default factory ;