Skip to content

Commit

Permalink
fix: Fix webpack imports in npm package (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhousley authored Feb 29, 2024
1 parent e1ddb32 commit 35810a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ module.exports = function (api, ...args) {
[
'./tools/babel/plugins/transform-import',
{
'(constants/)env$': '$1env.npm',
'(configure/)public-path$': '$1public-path.npm',
'(configure/)nonce$': '$1nonce.npm'
'(/constants/|^\\./)env$': '$1env.npm',
'(/configure/|^\\./)public-path$': '$1public-path.npm',
'(/configure/|^\\./)nonce$': '$1nonce.npm'
}
]
]
Expand All @@ -117,9 +117,9 @@ module.exports = function (api, ...args) {
[
'./tools/babel/plugins/transform-import',
{
'(constants/)env$': '$1env.npm',
'(configure/)public-path$': '$1public-path.npm',
'(configure/)nonce$': '$1nonce.npm'
'(/constants/|^\\./)env$': '$1env.npm',
'(/configure/|^\\./)public-path$': '$1public-path.npm',
'(/configure/|^\\./)nonce$': '$1nonce.npm'
}
]
]
Expand Down

0 comments on commit 35810a8

Please sign in to comment.