Open citrus327 opened 2 years ago
I don't know
This is the source code from driver-universal npm package
driver-universal
// node_modules/driver-universal/es/index.js import { isWeex, isWeb, isMiniApp, isWeChatMiniProgram, isByteDanceMicroApp, isBaiduSmartProgram, isKuaiShouMiniProgram } from 'universal-env'; var currentDriver; if (isWeex) { currentDriver = require('./weex')["default"]; } else if (isWeb) { currentDriver = require('./web')["default"]; } else if (isMiniApp || isWeChatMiniProgram || isByteDanceMicroApp || isBaiduSmartProgram || isKuaiShouMiniProgram) { currentDriver = require('./miniapp')["default"]; } export default currentDriver;
package.json#module should target at ESM standard entry
This file contains require() which break my build
expect es/index.js does not contain any require syntax
es/index.js
require
No response
fix your build script
build and publish again
⌨️
Where is the bug from?
I don't know
Minimal code and steps to reproduce the bug
This is the source code from
driver-universal
npm packagepackage.json#module should target at ESM standard entry
This file contains require() which break my build
Current and expected behavior
expect
es/index.js
does not contain anyrequire
syntaxEnvironment
build.json
No response
Possible solution
fix your build script
build and publish again
Additional context
No response