Skip to content

Commit

Permalink
fix: remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
eryue0220 committed Jul 8, 2024
1 parent 03326c9 commit 1037123
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,7 @@ export const unpluginFactory: UnpluginFactory<UnpluginStylexOptions | undefined>
return {
name: PLUGIN_NAME,

loadInclude(id) {
const excludes = [
'farmfe_plugin_react_is_react_refresh_boundary',
'farmfe_plugin_react_global_inject',
]
console.log('load::include::', id)
return !excludes.includes(id)
},

load(id) {
console.log('load::id::', id)
return null
},

transformInclude(id) {
console.log('transform::id::', id)
// webpack will contain these files, which will occur errors
const invalidExts = options.invalidExts
const extname = path.extname(id)
Expand All @@ -61,8 +46,6 @@ export const unpluginFactory: UnpluginFactory<UnpluginStylexOptions | undefined>
return
}

console.log('transform::id::', id, code)

const context = {
id: file,
inputCode: code,
Expand Down

0 comments on commit 1037123

Please sign in to comment.