Skip to content

Commit

Permalink
fix(rollup-plugin): remove default modules (#5203)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoso authored Feb 12, 2025
1 parent 51215d9 commit 1e7642b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/@lwc/rollup-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ export interface RollupLwcOptions {

const PLUGIN_NAME = 'rollup-plugin-lwc-compiler';

const DEFAULT_MODULES = [
{ npm: '@lwc/engine-dom' },
{ npm: '@lwc/synthetic-shadow' },
{ npm: '@lwc/wire-service' },
];

const IMPLICIT_DEFAULT_HTML_PATH = '@lwc/resources/empty_html.js';
const EMPTY_IMPLICIT_HTML_CONTENT = 'export default void 0';
const IMPLICIT_DEFAULT_CSS_PATH = '@lwc/resources/empty_css.css';
Expand Down Expand Up @@ -205,7 +199,7 @@ export default function lwc(pluginOptions: RollupLwcOptions = {}): Plugin {
rootDir = path.resolve(rootDir);
}

modules = [...modules, ...DEFAULT_MODULES, { dir: rootDir }];
modules = [...modules, { dir: rootDir }];
},

resolveId(importee, importer) {
Expand Down

0 comments on commit 1e7642b

Please # to comment.