Skip to content

Commit a59a57b

Browse files
committed
Fix circular dependency. Add gzip and sourcemap to build
1 parent cb656c3 commit a59a57b

File tree

14 files changed

+37
-37
lines changed

14 files changed

+37
-37
lines changed

@types/shared/dom.d.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,6 @@ export function animatedomInsert(element: any, parent: any, after: any): void;
258258
* @returns {string} The base href.
259259
*/
260260
export function getBaseHref(): string;
261-
export type NodeType = number;
262-
export namespace NodeType {
263-
let _ELEMENT_NODE: 1;
264-
let _DOCUMENT_NODE: 9;
265-
let _TEXT_NODE: 3;
266-
let _COMMENT_NODE: 8;
267-
let _DOCUMENT_FRAGMENT_NODE: 11;
268-
}
269261
/**
270262
* A list of boolean attributes in HTML.
271263
* @type {string[]}

@types/shared/node.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export type NodeType = number;
2+
export namespace NodeType {
3+
let _ELEMENT_NODE: 1;
4+
let _DOCUMENT_NODE: 9;
5+
let _TEXT_NODE: 3;
6+
let _COMMENT_NODE: 8;
7+
let _DOCUMENT_FRAGMENT_NODE: 11;
8+
}

rollup.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ const basePlugins = [resolve(), commonjs(), versionInjector()];
3939
export default [
4040
// ---- Minified UMD ----
4141
{
42-
name: "min",
4342
input: baseInput,
4443
output: [
4544
{
4645
name: "angular",
4746
file: pkg.browser.replace(/\.js$/, ".min.js"),
4847
format: "umd",
48+
sourcemap: true,
4949
plugins: [
5050
terser({
5151
compress: {
@@ -55,8 +55,8 @@ export default [
5555
mangle: {
5656
toplevel: true,
5757
properties: {
58-
regex: /^_/, // match ALL private property names
59-
keep_quoted: false, // allow mangling quoted keys
58+
regex: /^_/,
59+
keep_quoted: false,
6060
},
6161
},
6262
}),
@@ -70,9 +70,9 @@ export default [
7070
],
7171
plugins: [...basePlugins],
7272
},
73+
74+
// ---- ES Module ----
7375
{
74-
// ---- ES Module ----
75-
name: "es",
7676
input: baseInput,
7777
external: ["ms"],
7878
output: [{ file: pkg.module, format: "es" }],

src/animations/queue/animate-queue.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getOrSetCacheData, NodeType, setCacheData } from "../../shared/dom.js";
1+
import { getOrSetCacheData, setCacheData } from "../../shared/dom.js";
22
import {
33
extend,
44
isArray,
@@ -20,6 +20,7 @@ import {
2020
} from "../shared.js";
2121
import { $injectTokens as $t } from "../../injection-tokens.js";
2222
import { AnimateRunner } from "../runner/animate-runner.js";
23+
import { NodeType } from "../../shared/node.js";
2324

2425
const NG_ANIMATE_ATTR_NAME = "data-ng-animate";
2526

src/animations/shared.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
minErr,
88
} from "../shared/utils.js";
99
import { ASTType } from "../core/parse/ast-type.js";
10-
import { NodeType } from "../shared/dom.js";
10+
import { NodeType } from "../shared/node.js";
1111

1212
export const ADD_CLASS_SUFFIX = "-add";
1313
export const REMOVE_CLASS_SUFFIX = "-remove";

src/core/compile/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import {
66
getCacheData,
77
getInheritedData,
88
isTextNode,
9-
NodeType,
109
setCacheData,
1110
setIsolateScope,
1211
setScope,
1312
startingTag,
1413
} from "../../shared/dom.js";
14+
import { NodeType } from "../../shared/node.js";
1515
import { NodeRef } from "../../shared/noderef.js";
1616
import { identifierForController } from "../controller/controller.js";
1717
import {

src/directive/http/http.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { $injectTokens as $t } from "../../injection-tokens.js";
22
import { Http } from "../../services/http/http.js";
3-
import { NodeType } from "../../shared/dom.js";
3+
import { NodeType } from "../../shared/node.js";
44
import {
55
callBackAfterFirst,
66
isDefined,

src/directive/options/options.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import {
2-
emptyElement,
3-
NodeType,
4-
removeElement,
5-
startingTag,
6-
} from "../../shared/dom.js";
1+
import { emptyElement, removeElement, startingTag } from "../../shared/dom.js";
2+
import { NodeType } from "../../shared/node.js";
73
import {
84
equals,
95
hasOwn,

src/directive/select/select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { getCacheData, NodeType } from "../../shared/dom.js";
1+
import { getCacheData } from "../../shared/dom.js";
2+
import { NodeType } from "../../shared/node.js";
23
import {
34
assertNotHasOwnProperty,
45
equals,

src/directive/transclude/transclude.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { minErr } from "../../shared/utils.js";
2-
import { emptyElement, NodeType, startingTag } from "../../shared/dom.js";
2+
import { emptyElement, startingTag } from "../../shared/dom.js";
3+
import { NodeType } from "../../shared/node.js";
34

45
/**
56
* Directive that marks the insertion point for the transcluded DOM of the nearest parent directive that uses transclusion.

0 commit comments

Comments
 (0)