Skip to content

TODO: format, platform opts #51

@nathanjhood

Description

@nathanjhood
  • getCommonOptions:
const getCommonOptions = () => {
  // ...
    platform: 'browser', // 'node' | browser | neutral,
    format: 'esm',
}
  • build:
const buildSwr = () => {
  // ...
    platform: 'browser', // 'node' | browser | neutral,
    format: 'esm',
}
  • start:
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...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions