@soleil-se/build-app 2.1.2 → 2.1.4

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/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ title: Changelog
4
4
 
5
5
  Baseras på [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) och använder [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.1.3] - 2024-11-29
8
+
9
+ - Lägg till `globalThis` i serverkontext.
10
+
7
11
  ## [2.1.2] - 2024-11-28
8
12
 
9
13
  - Lägg till import condition för `development` eller `production` för `@rollup/plugin-node-resolve`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleil-se/build-app",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "bin": {
5
5
  "build-app": "./bin/index.js",
6
6
  "sv-app-build": "./bin/index.js"
@@ -24,13 +24,12 @@
24
24
  "@rollup/plugin-replace": "6.0.1",
25
25
  "@rollup/plugin-terser": "0.4.4",
26
26
  "archiver": "7.0.1",
27
- "babel-plugin-transform-async-to-promises": "0.8.18",
28
27
  "chalk": "5.3.0",
29
28
  "find-up": "7.0.0",
30
29
  "form-data": "4.0.1",
31
30
  "fs-extra": "11.2.0",
32
31
  "glob": "^11.0.0",
33
- "got": "14.4.4",
32
+ "got": "14.4.5",
34
33
  "gzip-size": "7.0.0",
35
34
  "lodash-es": "4.17.21",
36
35
  "minimist": "^1.2.8",
@@ -39,7 +38,7 @@
39
38
  "postcss-pxtorem": "6.1.0",
40
39
  "pretty-bytes": "6.1.1",
41
40
  "prompts": "2.4.2",
42
- "rollup": "4.27.2",
41
+ "rollup": "4.28.0",
43
42
  "rollup-plugin-postcss": "4.0.2",
44
43
  "rollup-plugin-string": "3.0.0",
45
44
  "rollup-plugin-svelte": "7.2.2",
@@ -49,7 +48,7 @@
49
48
  "@soleil-se/build-utils": "1.8.0"
50
49
  },
51
50
  "devDependencies": {
52
- "svelte": "5.1.3"
51
+ "svelte": "^5.6.2"
53
52
  },
54
53
  "scripts": {},
55
54
  "description": "Script for building WebApps, RESTApps and Widgets with Svelte in Sitevision.",
@@ -28,7 +28,6 @@ export function getBabelClientPlugin() {
28
28
  export function getBabelServerPlugin() {
29
29
  return babel({
30
30
  ...commonOptions,
31
- plugins: ['babel-plugin-transform-async-to-promises'],
32
31
  presets: [
33
32
  ['@babel/preset-env', {
34
33
  exclude: ['@babel/plugin-transform-arrow-functions'],
package/rollup/server.js CHANGED
@@ -54,7 +54,7 @@ export default function rollupServer({
54
54
  bundleCache = cache && bundle.cache;
55
55
  return bundle.write({
56
56
  file: output,
57
- intro: 'var Promise = Promise || { resolve: () => {} }; var global = global || this; var self = self || global; var setTimeout = setTimeout || function(cb) { cb() };',
57
+ intro: 'var Promise = Promise || { resolve: () => {} }; var global = global || this; var self = self || global; var globalThis = globalThis || global; var setTimeout = setTimeout || function(cb) { cb() };',
58
58
  format: 'iife',
59
59
  });
60
60
  } catch (e) {