Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 21.x]
webpack-version: [latest]

runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = (api) => {
"@babel/preset-env",
{
targets: {
node: "14.15.0",
node: "18.12.0",
},
},
],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"main": "dist/cjs.js",
"engines": {
"node": ">= 14.15.0"
"node": ">= 18.12.0"
},
"scripts": {
"start": "npm run build -- -w",
Expand All @@ -24,7 +24,7 @@
"security": "npm audit --production",
"lint:prettier": "prettier --list-different .",
"lint:js": "eslint --cache .",
"lint:spelling": "cspell \"**/*.*\"",
"lint:spelling": "cspell --no-must-find-files --cache --quiet \"**/*.*\"",
"lint": "npm-run-all -l -p \"lint:**\"",
"fix:js": "npm run lint:js -- --fix",
"fix:prettier": "npm run lint:prettier -- --write",
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default (code) => {
const module = new Module(resource, parentModule);
// eslint-disable-next-line no-underscore-dangle
module.paths = Module._nodeModulePaths(
path.resolve(__dirname, "../fixtures")
path.resolve(__dirname, "../fixtures"),
);
module.filename = resource;

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/normalizeErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ function removeCWD(str) {

export default (errors) =>
errors.map((error) =>
removeCWD(error.toString().split("\n").slice(0, 2).join("\n"))
removeCWD(error.toString().split("\n").slice(0, 2).join("\n")),
);
22 changes: 11 additions & 11 deletions test/loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js");
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -27,7 +27,7 @@ describe("loader", () => {
const compiler = getCompiler("bare.js");
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./bare.coffee", stats)
getModuleSource("./bare.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand Down Expand Up @@ -55,7 +55,7 @@ describe("loader", () => {
});
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -81,7 +81,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js", { sourceMap: true });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -94,7 +94,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js", { sourceMap: false });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -107,7 +107,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js", {}, { devtool: "source-map" });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -120,7 +120,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js", {}, { devtool: false });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -133,11 +133,11 @@ describe("loader", () => {
const compiler = getCompiler(
"simple.js",
{ sourceMap: true },
{ devtool: false }
{ devtool: false },
);
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -150,7 +150,7 @@ describe("loader", () => {
const compiler = getCompiler("simple.js", { unknown: true });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./foo.coffee", stats)
getModuleSource("./foo.coffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand All @@ -163,7 +163,7 @@ describe("loader", () => {
const compiler = getCompiler("baz.js", { literate: true });
const stats = await compile(compiler);
const { source, sourceMap } = execute(
getModuleSource("./baz.litcoffee", stats)
getModuleSource("./baz.litcoffee", stats),
);

expect(source).toMatchSnapshot("source");
Expand Down