/** @type {import("@rspack/core").Configuration} */
module.exports = {
	node: {
		__dirname: false,
		__filename: false
	},
	// TODO: Rspack currently doesnot support layers feature
	// experiments: {
	// 	layers: true
	// },
	devtool: "source-map",
	// entry: {
	// 	main: {
	// 		import: "./index",
	// 		layer: "something"
	// 	}
	// },
	output: {
		devtoolModuleFilenameTemplate(info) {
			return info.absoluteResourcePath;
		}
	}
};
