Skip to content

Commit 6d2ed79

Browse files
authored
Merge pull request #9 from mi-examples/pp-2741
pp-2741: Update plugin, CLI, client injection, and test configurations
2 parents c477444 + 6187b5e commit 6d2ed79

16 files changed

Lines changed: 6214 additions & 5553 deletions

package-lock.json

Lines changed: 63 additions & 98 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"chokidar": "^4.0.3"
7070
},
7171
"peerDependencies": {
72-
"next": ">= 13 < 16"
72+
"next": ">= 13 < 17"
7373
},
7474
"peerDependenciesMeta": {
7575
"next": {
@@ -78,7 +78,7 @@
7878
}
7979
},
8080
"dependencies": {
81-
"axios": "^1.7.8",
81+
"axios": "^1.13.5",
8282
"cac": "^6.7.14",
8383
"chokidar": "^4.0.3",
8484
"deepmerge-ts": "^7.1.3",

rollup.config.ts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const defaultConfig: RollupOptions = {
3838
warn(warning);
3939
},
4040
// Preserve Node.js globals
41-
context: 'globalThis'
41+
context: 'globalThis',
4242
};
4343

4444
const configs: RollupOptions[] = [
@@ -74,11 +74,11 @@ const configs: RollupOptions[] = [
7474
assetFileNames: '[name][extname]',
7575
sourcemap: true,
7676
exports: 'named',
77-
generatedCode: {
78-
constBindings: true,
79-
objectShorthand: true,
80-
arrowFunctions: true,
81-
},
77+
generatedCode: {
78+
constBindings: true,
79+
objectShorthand: true,
80+
arrowFunctions: true,
81+
},
8282
// Better chunking for code splitting
8383
chunkFileNames: '[name]-[hash].js',
8484
entryFileNames: '[name].js',
@@ -119,12 +119,13 @@ const configs: RollupOptions[] = [
119119
format: 'cjs',
120120
assetFileNames: '[name][extname]',
121121
sourcemap: true,
122-
exports: 'named',
123-
generatedCode: {
124-
constBindings: true,
125-
objectShorthand: true,
126-
arrowFunctions: true,
127-
},
122+
exports: 'auto',
123+
interop: 'compat',
124+
generatedCode: {
125+
constBindings: true,
126+
objectShorthand: true,
127+
arrowFunctions: true,
128+
},
128129
chunkFileNames: '[name]-[hash].js',
129130
entryFileNames: '[name].js',
130131
},

0 commit comments

Comments
 (0)