Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/@lwc/rollup-plugin/src/__tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import lwc from '@lwc/rollup-plugin';
import { test, expect } from 'vitest';

test('exposes plugin version', () => {
const plugin = lwc();
expect(plugin.version).toMatch(/^\d+\.\d+\.\d+/);
});
2 changes: 1 addition & 1 deletion packages/@lwc/rollup-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default function lwc(pluginOptions: RollupLwcOptions = {}): Plugin {

return {
name: PLUGIN_NAME,

version: process.env.LWC_VERSION,
buildStart({ input }) {
if (rootDir === undefined) {
if (Array.isArray(input)) {
Expand Down