mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(monorepo/server): configure to work with top-level await
This commit is contained in:
parent
462ed3c6be
commit
1c63fb7eec
@ -1,6 +1,9 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.base.json",
|
"extends": "../../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"module": "ESNext",
|
||||||
|
"target": "ESNext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"types": [
|
"types": [
|
||||||
"node",
|
"node",
|
||||||
|
@ -4,6 +4,7 @@ const { join } = require('path');
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
output: {
|
output: {
|
||||||
path: join(__dirname, 'dist'),
|
path: join(__dirname, 'dist'),
|
||||||
|
libraryTarget: "module"
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new NxAppWebpackPlugin({
|
new NxAppWebpackPlugin({
|
||||||
@ -17,4 +18,7 @@ module.exports = {
|
|||||||
generatePackageJson: true,
|
generatePackageJson: true,
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
|
experiments: {
|
||||||
|
outputModule: true
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user