mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-19 02:51:47 +08:00
2cb171f553
#### PR Dependency Tree * **PR #14530** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Breaking Changes** * Webpack bundler support removed from the build system * Bundler selection parameter removed from build and development commands * **Refactor** * Build configuration consolidated to a single bundler approach * Webpack-specific build paths and workflows removed; development server simplified * **Chores** * Removed webpack-related dev dependencies and tooling * Updated package build scripts for a unified bundle command * **Dependencies** * Upgraded Sentry packages across frontend packages (react/electron/esbuild plugin) <!-- end of auto-generated comment: release notes by coderabbit.ai -->
19 lines
430 B
JavaScript
19 lines
430 B
JavaScript
import { parse } from 'node:path';
|
|
|
|
export const raw = true;
|
|
/**
|
|
* @type {import('webpack').LoaderDefinitionFunction}
|
|
*/
|
|
export default function loader(content) {
|
|
const name = parse(this.resourcePath).base;
|
|
this.emitFile(name, content);
|
|
|
|
return `
|
|
import { createRequire } from 'node:module'
|
|
|
|
const require = createRequire(import.meta.url)
|
|
const binding = require('./${name}')
|
|
export default binding
|
|
`;
|
|
}
|