Skip to content

Commit

Permalink
chore: add alias
Browse files Browse the repository at this point in the history
  • Loading branch information
yimingjfe committed Jan 7, 2025
1 parent 70e9ca2 commit ee057ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
8 changes: 0 additions & 8 deletions packages/cli/uni-builder/src/shared/rsc/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,6 @@ export const isClientModule = async (ast: Module) => {
return checkDirective(ast, 'use client');
};

export const parseSourceWithOxc = async (source: string, filename: string) => {
return await parse(source, {
syntax: 'typescript',
tsx: true,
dynamicImport: true,
});
};

export function findRootIssuer(
modulegraph: ModuleGraph,
module: NormalModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ export class RscServerPlugin {
EntryPlugin,
WebpackError,
dependencies: { NullDependency },
util: {
runtime: { getEntryRuntime },
},
sources: { RawSource },
RuntimeGlobals,
} = compiler.webpack;
Expand Down
7 changes: 5 additions & 2 deletions tests/integration/rsc-ssr-app/modern.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ export default applyBaseConfig({
},
rsc: true,
},
// output: {
// minify: false,
// source: {
// alias: {
// react: path.dirname(require.resolve('react')),
// 'react-dom': path.dirname(require.resolve('react-dom')),
// },
// },
// source: {
// alias: {
Expand Down

0 comments on commit ee057ee

Please sign in to comment.