-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1281674
commit 2100f73
Showing
24 changed files
with
90 additions
and
5 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"devDependencies": { | ||
"@uni-helper/uni-network": "^0.18.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"devDependencies": { | ||
"@uni-helper/uni-promises": "^0.2.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default function getData({ oldData }) { | ||
const uniUsePlugin = { | ||
id: 'uniUse', | ||
importer: `import 'core-js/actual/array/iterator'; | ||
import 'core-js/actual/promise'; | ||
import 'core-js/actual/object/assign'; | ||
import 'core-js/actual/promise/finally';`, | ||
} | ||
return { | ||
...oldData, | ||
plugins: oldData.plugins.flatMap(plugin => | ||
plugin.id === 'vue' ? [uniUsePlugin, plugin] : plugin, | ||
), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export default function getData({ oldData }) { | ||
const promisesextraConfig = { | ||
id: 'uniPromises', | ||
extraConfig: `build: { | ||
target: 'es6', | ||
cssTarget: 'chrome61', // https://cn.vitejs.dev/config/build-options.html#build-csstarget | ||
}, | ||
optimizeDeps: { | ||
exclude: ['vue-demi'], | ||
}`, | ||
} | ||
return { | ||
...oldData, | ||
extraConfig: oldData.extraConfig.flatMap(config => | ||
config.id === 'uniUse' ? [...config, ...promisesextraConfig] : config, | ||
), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"devDependencies": { | ||
"@uni-helper/uni-use": "^0.19.6", | ||
"@vueuse/core": "^9.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default function getData({ oldData }) { | ||
const uniUsePlugin = { | ||
id: 'uniUse', | ||
importer: `import 'core-js/actual/array/iterator'; | ||
import 'core-js/actual/promise'; | ||
import 'core-js/actual/object/assign'; | ||
import 'core-js/actual/promise/finally';`, | ||
} | ||
return { | ||
...oldData, | ||
plugins: oldData.plugins.flatMap(plugin => | ||
plugin.id === 'vue' ? [uniUsePlugin, plugin] : plugin, | ||
), | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export default function getData({ oldData }) { | ||
const uniUseextraConfig = { | ||
id: 'uniUse', | ||
extraConfig: `build: { | ||
target: 'es6', | ||
cssTarget: 'chrome61', // https://cn.vitejs.dev/config/build-options.html#build-csstarget | ||
}, | ||
optimizeDeps: { | ||
exclude: ['vue-demi'], | ||
}`, | ||
} | ||
return { | ||
...oldData, | ||
extraConfig: oldData.extraConfig.flatMap(config => | ||
config.id === 'uniPromises' ? [...config, ...uniUseextraConfig] : config, | ||
), | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.