Skip to content

Commit

Permalink
refactor: import with .ts extension
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashuber69 committed Jan 21, 2025
1 parent 7aa88e8 commit 9f73956
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/AsyncCssPlugin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import HtmlWebpackPlugin from "html-webpack-plugin";
import { describe, expect, it } from "vitest";
import type { Compilation, Compiler } from "webpack";

import AsyncCssPlugin from "./AsyncCssPlugin.js";
import type { MessageType } from "./Options.js";
import AsyncCssPlugin from "./AsyncCssPlugin.ts";
import type { MessageType } from "./Options.ts";

const createFakeCompiler = () => {
const result = {
Expand Down
2 changes: 1 addition & 1 deletion src/AsyncCssPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import HtmlWebpackPlugin from "html-webpack-plugin";
import type { Compilation, Compiler } from "webpack";

import type { MessageType, Options } from "./Options.js";
import type { MessageType, Options } from "./Options.ts";

class AsyncCssPlugin {
public constructor(options?: Options) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/vue/vue.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Service from "@vue/cli-service";

import { describe, expect, it } from "vitest";

import { getLinkProperties } from "../getLinkProperties.js";
import { getLinkProperties } from "../getLinkProperties.ts";

describe("AsyncCssPlugin", () => {
describe("vue", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/test/webpack/async.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import HtmlWebpackPlugin from "html-webpack-plugin";
import MiniCssExtractPlugin from "mini-css-extract-plugin";
import type { Configuration } from "webpack";
import AsyncCssPlugin from "../../AsyncCssPlugin.js";
import AsyncCssPlugin from "../../AsyncCssPlugin.ts";

// eslint-disable-next-line import/no-default-export
export default {
Expand Down
6 changes: 3 additions & 3 deletions src/test/webpack/webpack.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { describe, expect, it } from "vitest";
import type { Configuration } from "webpack";
import webpack from "webpack";

import { getLinkProperties } from "../getLinkProperties.js";
import { getLinkProperties } from "../getLinkProperties.ts";

import asyncOptions from "./async.config.js";
import standardOptions from "./standard.config.js";
import asyncOptions from "./async.config.ts";
import standardOptions from "./standard.config.ts";

const checkWebpack = async (
options: Configuration,
Expand Down

0 comments on commit 9f73956

Please sign in to comment.