chore(examples): bump deps

This commit is contained in:
metonym 2023-12-16 13:39:25 -08:00
commit 64b39be524
9 changed files with 1631 additions and 1119 deletions

View file

@ -5,15 +5,15 @@
"build": "NODE_ENV=production webpack"
},
"devDependencies": {
"carbon-components-svelte": "^0.76.1",
"carbon-preprocess-svelte": "^0.9.1",
"@tsconfig/svelte": "^5.0.2",
"carbon-components-svelte": "^0.82.5",
"carbon-preprocess-svelte": "^0.10.0",
"css-loader": "^6.8.1",
"esbuild-loader": "^2.20.0",
"html-webpack-plugin": "5.5.3",
"html-webpack-plugin": "^5.5.3",
"mini-css-extract-plugin": "^2.7.6",
"svelte": "^3.54.0",
"svelte": "^4.2.8",
"svelte-loader": "^3.1.9",
"webpack": "^5.88.1",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
}

View file

@ -1,6 +1,5 @@
const { ESBuildMinifyPlugin } = require("esbuild-loader");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const path = require("path");
const { optimizeImports } = require("carbon-preprocess-svelte");
@ -10,9 +9,12 @@ const PROD = NODE_ENV === "production";
module.exports = {
entry: { "build/bundle": ["./src/index.js"] },
resolve: {
alias: { svelte: path.dirname(require.resolve("svelte/package.json")) },
alias: {
svelte: path.resolve("node_modules", "svelte/src/runtime"),
},
extensions: [".mjs", ".js", ".svelte"],
mainFields: ["svelte", "browser", "module", "main"],
conditionNames: ["svelte", "browser", "import"],
},
output: {
publicPath: "/",
@ -28,8 +30,8 @@ module.exports = {
use: {
loader: "svelte-loader",
options: {
preprocess: [optimizeImports()],
hotReload: !PROD,
preprocess: [optimizeImports()],
compilerOptions: { dev: !PROD },
},
},
@ -55,10 +57,7 @@ module.exports = {
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body></body>
</html>
@ -68,7 +67,4 @@ module.exports = {
stats: "errors-only",
devtool: PROD ? false : "source-map",
devServer: { hot: true, historyApiFallback: true },
optimization: {
minimizer: [new ESBuildMinifyPlugin({ target: "es2015" })],
},
};

File diff suppressed because it is too large Load diff