Skip to content

Imported modules in v10 are empty #13771

@gpoitch

Description

@gpoitch

Using prebid through npm, importing the individual modules does not seem to include any of the code since v10. It just imports an empty module. Building it doesn't complain. Just noticed during runtime that there were errors about the modules missing and the output being smaller.

For example:

import prebid from 'prebid.js'
import 'prebid.js/modules/concertBidAdapter'
import 'prebid.js/modules/gumgumBidAdapter'
import 'prebid.js/modules/rubiconBidAdapter'

prebid.processQueue()
export default prebid

Adjusting to the full path is a workaround:

import 'node_modules/prebid.js/dist/src/modules/concertBidAdapter'
// ...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions