@newlogic-digital/core 4.0.0-next.3 → 4.0.0-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -6,7 +6,6 @@ import latte from '@vituum/vite-plugin-latte'
6
6
  import juice from '@vituum/vite-plugin-juice'
7
7
  import send from '@vituum/vite-plugin-send'
8
8
  import { getPackageInfo, merge } from 'vituum/utils/common.js'
9
- import twigOptions from './src/twig.js'
10
9
  import browserslistToEsbuild from 'browserslist-to-esbuild'
11
10
  import browserslist from 'browserslist'
12
11
  import { Features as LightningCssFeatures, browserslistToTargets } from 'lightningcss'
@@ -21,7 +20,7 @@ const defaultOptions = {
21
20
  mode: null,
22
21
  cert: 'localhost',
23
22
  format: ['latte'],
24
- advancedChunks: {},
23
+ codeSplitting: {},
25
24
  input: {
26
25
  assets: [
27
26
  './src/styles/*.{css,pcss,scss,sass,less,styl,stylus}',
@@ -201,7 +200,7 @@ const plugin = async (options = {}) => {
201
200
  userConfig.build.rolldownOptions = Object.assign({
202
201
  input: defaultInput,
203
202
  output: {
204
- advancedChunks: options.advancedChunks ?? {
203
+ codeSplitting: options.codeSplitting ?? {
205
204
  groups: [
206
205
  {
207
206
  name: 'swup',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@newlogic-digital/core",
3
3
  "type": "module",
4
- "version": "4.0.0-next.3",
4
+ "version": "4.0.0-next.5",
5
5
  "main": "index.js",
6
6
  "author": "New Logic Studio s.r.o.",
7
7
  "description": "Set of tools that can be used to create modern web applications",
@@ -22,12 +22,12 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@eslint/js": "^9.39",
25
- "@stylistic/eslint-plugin": "^5.6",
26
- "@types/node": "^25.0.3",
25
+ "@stylistic/eslint-plugin": "^5.7",
26
+ "@types/node": "^25.0",
27
27
  "eslint": "^9.39.2",
28
- "rolldown": "^1.0.0-beta.55",
28
+ "rolldown": "^1.0.0-beta.60",
29
29
  "typescript": "^5",
30
- "vite": "^8.0.0-beta.3",
30
+ "vite": "^8.0.0-beta.8",
31
31
  "@vituum/vite-plugin-tailwindcss": "^1.2.0",
32
32
  "@vituum/vite-plugin-twig": "^1.1.0"
33
33
  },
package/src/minify.js CHANGED
@@ -1,6 +1,6 @@
1
- import minifier from 'html-minifier-terser'
2
-
3
1
  const parseMinifyHtml = async (input, name) => {
2
+ const minifier = (await import('html-minifier-terser')).default
3
+
4
4
  const minify = await minifier.minify(input, {
5
5
  collapseWhitespace: true,
6
6
  collapseInlineTagWhitespace: false,
package/types/index.d.ts CHANGED
@@ -9,10 +9,9 @@ export interface PluginUserConfig {
9
9
  format?: string[]
10
10
  input?: Input
11
11
  cert?: string
12
- advancedChunks?: import('rolldown').OutputOptions['advancedChunks']
12
+ codeSplitting?: import('rolldown').OutputOptions['codeSplitting']
13
13
  vituum?: import('vituum').UserConfig,
14
14
  css?: import('vite').CSSOptions
15
- posthtml?: import('@vituum/vite-plugin-posthtml').PluginUserConfig
16
15
  juice?: import('@vituum/vite-plugin-juice').PluginUserConfig
17
16
  send?: import('@vituum/vite-plugin-send').PluginUserConfig
18
17
  tailwindcss?: import('@vituum/vite-plugin-tailwindcss').PluginUserConfig