File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11export * from '@tanstack/query-core' ;
22export * from './use-client.cjs' ;
3- export * from './nested/nested.cjs' ;
3+ export { test } from './nested/nested.cjs' ;
Original file line number Diff line number Diff line change 11export * from '@tanstack/query-core' ;
22export * from './use-client.js' ;
3- export * from './nested/nested.js' ;
3+ export { test } from './nested/nested.js' ;
Original file line number Diff line number Diff line change 11export * from '@tanstack/query-core'
22export * from './use-client'
3- export * from './nested/nested'
3+ export { test } from './nested/nested'
Original file line number Diff line number Diff line change @@ -26,12 +26,7 @@ export const tanstackBuildConfig = (options) => {
2626 } ,
2727 beforeWriteFile : ( filePath , content ) => {
2828 content = content . replace (
29- / ^ i m p o r t \s [ \w { } * \s , ] + f r o m \s [ ' " ] \. \/ [ ^ . ' " ] + (? = [ ' " ] ; ? $ ) / gm,
30- '$&.js' ,
31- )
32-
33- content = content . replace (
34- / ^ e x p o r t \s [ \w { } * \s , ] + f r o m \s [ ' " ] \. \/ [ ^ . ' " ] + (? = [ ' " ] ; ? $ ) / gm,
29+ / ^ ( i m | e x ) p o r t \s [ \w { } * \s , ] + f r o m \s [ ' " ] \. \/ [ ^ . ' " ] + (? = [ ' " ] ; ? $ ) / gm,
3530 '$&.js' ,
3631 )
3732
@@ -50,12 +45,7 @@ export const tanstackBuildConfig = (options) => {
5045 } ,
5146 beforeWriteFile : ( filePath , content ) => {
5247 content = content . replace (
53- / ^ i m p o r t \s [ \w { } * \s , ] + f r o m \s [ ' " ] \. \/ [ ^ . ' " ] + (? = [ ' " ] ; ? $ ) / gm,
54- '$&.cjs' ,
55- )
56-
57- content = content . replace (
58- / ^ e x p o r t \s [ \w { } * \s , ] + f r o m \s [ ' " ] \. \/ [ ^ . ' " ] + (? = [ ' " ] ; ? $ ) / gm,
48+ / ^ ( i m | e x ) p o r t \s [ \w { } * \s , ] + f r o m \s [ ' " ] \. \/ [ ^ . ' " ] + (? = [ ' " ] ; ? $ ) / gm,
5949 '$&.cjs' ,
6050 )
6151
You can’t perform that action at this time.
0 commit comments