const getCommonOptions = () => {
// ...
platform: 'browser', // 'node' | browser | neutral,
format: 'esm',
}
const buildSwr = () => {
// ...
platform: 'browser', // 'node' | browser | neutral,
format: 'esm',
}
const buildSwr = () => {
// ...
platform: 'browser', // 'node' | browser | neutral,
format: 'esm',
}
Consumers must set "type": "module" in their package.json.
This should ensure that global vars are not broken in weird, subtle ways...
getCommonOptions:build:start:Consumers must set
"type": "module"in theirpackage.json.This should ensure that global vars are not broken in weird, subtle ways...