Ver código fonte

Remove unused imports (#4006)

Günther Debrauwer 1 ano atrás
pai
commit
77b1736077

+ 0 - 1
packages/alpinejs/src/directives/x-for.js

@@ -4,7 +4,6 @@ import { directive } from '../directives'
 import { reactive } from '../reactivity'
 import { initTree } from '../lifecycle'
 import { mutateDom } from '../mutation'
-import { flushJobs } from '../scheduler'
 import { warn } from '../utils/warn'
 import { dequeueJob } from '../scheduler'
 

+ 0 - 1
packages/alpinejs/src/directives/x-model.js

@@ -4,7 +4,6 @@ import { mutateDom } from '../mutation'
 import { nextTick } from '../nextTick'
 import bind, { safeParseBoolean } from '../utils/bind'
 import on from '../utils/on'
-import { warn } from '../utils/warn'
 import { isCloning } from '../clone'
 
 directive('model', (el, { modifiers, expression }, { effect, cleanup }) => {

+ 2 - 2
packages/alpinejs/src/directives/x-teleport.js

@@ -1,6 +1,6 @@
-import { onlyDuringClone, skipDuringClone } from "../clone"
+import { skipDuringClone } from "../clone"
 import { directive } from "../directives"
-import { addInitSelector, initTree } from "../lifecycle"
+import { initTree } from "../lifecycle"
 import { mutateDom } from "../mutation"
 import { addScopeToNode } from "../scope"
 import { warn } from "../utils/warn"

+ 0 - 1
packages/alpinejs/src/lifecycle.js

@@ -3,7 +3,6 @@ import { deferHandlingDirectives, directives } from "./directives"
 import { dispatch } from './utils/dispatch'
 import { walk } from "./utils/walk"
 import { warn } from './utils/warn'
-import Alpine from "./alpine"
 
 let started = false
 

+ 3 - 4
packages/alpinejs/src/magics.js

@@ -1,4 +1,3 @@
-import Alpine from './alpine'
 import { getElementBoundUtilities } from './directives'
 import { interceptor } from './interceptor'
 import { onElRemoved } from './mutation'
@@ -17,14 +16,14 @@ export function injectMagics(obj, el) {
                 return memoizedUtilities;
             } else {
                 let [utilities, cleanup] = getElementBoundUtilities(el)
-                
+
                 memoizedUtilities = {interceptor, ...utilities}
-                
+
                 onElRemoved(el, cleanup)
                 return memoizedUtilities;
             }
         }
-        
+
         Object.defineProperty(obj, `$${name}`, {
             get() {
                 return callback(el, getUtilities());

+ 1 - 2
packages/alpinejs/src/magics/$watch.js

@@ -1,5 +1,5 @@
 import { magic } from '../magics'
-import { effect, release, watch } from '../reactivity'
+import { watch } from '../reactivity'
 
 magic('watch', (el, { evaluateLater, cleanup }) => (key, callback) => {
     let evaluate = evaluateLater(key)
@@ -16,4 +16,3 @@ magic('watch', (el, { evaluateLater, cleanup }) => (key, callback) => {
 
     cleanup(unwatch)
 })
-