fix: work around bug in RequireContextPlugin
This commit is contained in:
parent
4c72b71f4a
commit
0a79027be6
|
@ -13,10 +13,11 @@ export const hooks = {
|
|||
foo: 'bar',
|
||||
}),
|
||||
'@flecks/core/one/test-gather': (
|
||||
Flecks.provide(require.context('./things', false, /\.js$/))
|
||||
// @todo We have to explicitly start the pattern with a dot due to RequireContextPlugin.
|
||||
Flecks.provide(require.context('./things', false, /^\..*\.js$/))
|
||||
),
|
||||
'@flecks/core/one/test-gather.decorate': (
|
||||
Flecks.decorate(require.context('./things/decorators', false, /\.js$/))
|
||||
Flecks.decorate(require.context('./things/decorators', false, /\..*\.js$/))
|
||||
),
|
||||
'@flecks/core/test/invoke': () => 69,
|
||||
'@flecks/core/test/invoke-parallel': (O) => {
|
||||
|
|
|
@ -2,7 +2,7 @@ import {Flecks} from '@flecks/core';
|
|||
|
||||
export const hooks = {
|
||||
'@flecks/core/one/test-gather': (
|
||||
Flecks.provide(require.context('./things', false, /\.js$/))
|
||||
Flecks.provide(require.context('./things', false, /^\..*\.js$/))
|
||||
),
|
||||
'@flecks/core/test/invoke': () => 420,
|
||||
'@flecks/core/test/invoke-parallel': (O) => new Promise((resolve) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user