Skip to content

Commit

Permalink
chore: rename webpack config files to cjs
Browse files Browse the repository at this point in the history
mts is no longer supported and the contents of the file is cjs so makes no sense to keep mts
  • Loading branch information
bwallberg committed Jun 15, 2023
1 parent 57c3767 commit 98672fb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"access": "public"
},
"scripts": {
"analyze": "webpack --config webpack.analyze.mts",
"dev": "webpack serve --config webpack.dev.mts --open",
"build": "webpack --config webpack.prod.mts && tsc -p tsconfig.json --emitDeclarationOnly",
"analyze": "webpack --config webpack.analyze.cjs",
"dev": "webpack serve --config webpack.dev.cjs --open",
"build": "webpack --config webpack.prod.cjs && tsc -p tsconfig.json --emitDeclarationOnly",
"pretty": "prettier --write .",
"release": "semantic-release",
"prepublishOnly": "yarn build"
Expand Down
2 changes: 1 addition & 1 deletion webpack.analyze.mts → webpack.analyze.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const BundleAnalyzerPlugin =
require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
const { merge } = require("webpack-merge");
const prod = require("./webpack.prod.mts");
const prod = require("./webpack.prod.cjs");

module.exports = merge(prod, {
plugins: [
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion webpack.dev.mts → webpack.dev.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { merge } = require("webpack-merge");
const common = require("./webpack.common.mts");
const common = require("./webpack.common.cjs");
const path = require("path");

module.exports = merge(common, {
Expand Down
2 changes: 1 addition & 1 deletion webpack.prod.mts → webpack.prod.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require("path");
const TerserPlugin = require("terser-webpack-plugin");
const { merge } = require("webpack-merge");
const common = require("./webpack.common.mts");
const common = require("./webpack.common.cjs");

module.exports = merge(common, {
mode: "production",
Expand Down

0 comments on commit 98672fb

Please sign in to comment.