chore: fix build

This commit is contained in:
Simon Chan 2022-02-02 23:30:36 +08:00
parent f828191131
commit ada71fcd6a
5 changed files with 905 additions and 61 deletions

View file

@ -18,6 +18,9 @@ module.exports = withMDX({
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'md', 'mdx'],
reactStrictMode: true,
productionBrowserSourceMaps: true,
experimental: {
esmExternals: 'loose',
},
webpack(config, options) {
config.module.rules.push({
resourceQuery: /url/,

View file

@ -26,7 +26,7 @@
"@yume-chan/struct": "^0.0.10",
"mobx": "^6.3.3",
"mobx-react-lite": "^3.2.1",
"next": "^12.0.10",
"next": "12.0.7",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"streamsaver": "^2.0.5",
@ -40,7 +40,7 @@
"@next/mdx": "^11.1.2",
"@types/react": "17.0.27",
"eslint": "7.32.0",
"eslint-config-next": "^12.0.7",
"eslint-config-next": "12.0.7",
"typescript": "^4.5.4"
}
}

File diff suppressed because it is too large Load diff

View file

@ -23,7 +23,7 @@
"url": "https://github.com/yume-chan/ya-webadb/issues"
},
"bin": {
"fetch-scrcpy-server": "scripts/fetch-server.js"
"fetch-scrcpy-server": "scripts/fetch-server.cjs"
},
"type": "module",
"module": "esm/index.js",