Skip to content

Commit

Permalink
Merge pull request #30 from dhaig/patch-1
Browse files Browse the repository at this point in the history
fix: use .js extension when importing utils
  • Loading branch information
ElMassimo committed Nov 1, 2021
2 parents d2f2396 + 66840f8 commit eeb1ce4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/devtools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import path from "path";
import debug from "debug";
import * as kl from "kolorist";

import type { RollupFilter } from "./utils";
import { parseId } from "./utils";
import type { RollupFilter } from "./utils.js";
import { parseId } from "./utils.js";

export interface PreactDevtoolsPluginOptions {
injectInProd?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/hook-names.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { transformAsync } from "@babel/core";
import { Plugin, ResolvedConfig } from "vite";
import type { RollupFilter } from "./utils";
import { parseId } from "./utils";
import type { RollupFilter } from "./utils.js";
import { parseId } from "./utils.js";

export interface PreactHookNamesPluginOptions {
shouldTransform: RollupFilter;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import resolve from "resolve";
import prefresh from "@prefresh/vite";
import { preactDevtoolsPlugin } from "./devtools.js";
import { hookNamesPlugin } from "./hook-names.js";
import { createFilter, parseId } from "./utils";
import { createFilter, parseId } from "./utils.js";
import { transformAsync } from "@babel/core";

export interface PreactPluginOptions {
Expand Down

0 comments on commit eeb1ce4

Please sign in to comment.