setting "sideEffects": false for "@glimmer/runtime" reduces bundle size to 6kb
lifeart opened this issue · 3 comments
lifeart commented
lifeart commented
but, app starts failing :)
lifeart commented
poked around it, able to save 20kb using this patch:
diff --git a/node_modules/@glimmer/runtime/dist/modules/es2017/index.js b/node_modules/@glimmer/runtime/dist/modules/es2017/index.js
index 92adc46..7cb89f8 100644
--- a/node_modules/@glimmer/runtime/dist/modules/es2017/index.js
+++ b/node_modules/@glimmer/runtime/dist/modules/es2017/index.js
@@ -1,6 +1,6 @@
import './lib/bootstrap';
export { clear, ConcreteBounds, CursorImpl } from './lib/bounds';
-export { resetDebuggerCallback, setDebuggerCallback } from './lib/compiled/opcodes/debugger';
+// export { resetDebuggerCallback, setDebuggerCallback } from './lib/compiled/opcodes/debugger';
export { curry, CurriedValue } from './lib/curried-value';
export { TemplateOnlyComponentManager, TEMPLATE_ONLY_COMPONENT_MANAGER, TemplateOnlyComponentDefinition as TemplateOnlyComponent, templateOnlyComponent } from './lib/component/template-only';
export { default as DOMChanges, DOMChangesImpl as IDOMChanges, DOMTreeConstruction, isWhitespace } from './lib/dom/helper';
@@ -12,7 +12,13 @@ export { UpdatingVM, VM as LowLevelVM } from './lib/vm';
export { EMPTY_ARGS, EMPTY_NAMED, EMPTY_POSITIONAL, createCapturedArgs, reifyArgs, reifyNamed, reifyPositional } from './lib/vm/arguments';
export { DynamicAttribute, dynamicAttribute, SimpleDynamicAttribute } from './lib/vm/attributes/dynamic';
export { clientBuilder, NewElementBuilder, UpdatableBlockImpl, RemoteLiveBlock } from './lib/vm/element-builder';
-export { isSerializationFirstNode, RehydrateBuilder, rehydrationBuilder, SERIALIZATION_FIRST_NODE_STRING } from './lib/vm/rehydrate-builder';
+// export { isSerializationFirstNode, RehydrateBuilder, rehydrationBuilder, SERIALIZATION_FIRST_NODE_STRING } from './lib/vm/rehydrate-builder';
+export function isSerializationFirstNode() {
+ return false;
+}
+export const SERIALIZATION_FIRST_NODE_STRING = '';
+export function rehydrationBuilder() {};
+export class RehydrateBuilder {} {}
export { invokeHelper } from './lib/helpers/invoke';
export { default as fn } from './lib/helpers/fn';
export { default as hash } from './lib/helpers/hash';
diff --git a/node_modules/@glimmer/runtime/dist/modules/es2017/lib/bootstrap.js b/node_modules/@glimmer/runtime/dist/modules/es2017/lib/bootstrap.js
index d6d3f4c..655a336 100644
--- a/node_modules/@glimmer/runtime/dist/modules/es2017/lib/bootstrap.js
+++ b/node_modules/@glimmer/runtime/dist/modules/es2017/lib/bootstrap.js
@@ -2,9 +2,9 @@ import './opcodes';
import './compiled/opcodes/expressions';
import './compiled/opcodes/component';
import './compiled/opcodes/content';
-import './compiled/opcodes/debugger';
+//import './compiled/opcodes/debugger';
import './compiled/opcodes/dom';
-import './compiled/opcodes/partial';
+//import './compiled/opcodes/partial';
import './compiled/opcodes/vm';
import './compiled/opcodes/lists';
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3J1bnRpbWUvbGliL2Jvb3RzdHJhcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLFdBQVA7QUFDQSxPQUFPLGdDQUFQO0FBQ0EsT0FBTyw4QkFBUDtBQUNBLE9BQU8sNEJBQVA7QUFDQSxPQUFPLDZCQUFQO0FBQ0EsT0FBTyx3QkFBUDtBQUNBLE9BQU8sNEJBQVA7QUFDQSxPQUFPLHVCQUFQO0FBQ0EsT0FBTywwQkFBUCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAnLi9vcGNvZGVzJztcbmltcG9ydCAnLi9jb21waWxlZC9vcGNvZGVzL2V4cHJlc3Npb25zJztcbmltcG9ydCAnLi9jb21waWxlZC9vcGNvZGVzL2NvbXBvbmVudCc7XG5pbXBvcnQgJy4vY29tcGlsZWQvb3Bjb2Rlcy9jb250ZW50JztcbmltcG9ydCAnLi9jb21waWxlZC9vcGNvZGVzL2RlYnVnZ2VyJztcbmltcG9ydCAnLi9jb21waWxlZC9vcGNvZGVzL2RvbSc7XG5pbXBvcnQgJy4vY29tcGlsZWQvb3Bjb2Rlcy9wYXJ0aWFsJztcbmltcG9ydCAnLi9jb21waWxlZC9vcGNvZGVzL3ZtJztcbmltcG9ydCAnLi9jb21waWxlZC9vcGNvZGVzL2xpc3RzJztcbiJdLCJzb3VyY2VSb290IjoiIn0=
\ No newline at end of file
diff --git a/node_modules/@glimmer/runtime/dist/modules/es2017/lib/dom/helper.js b/node_modules/@glimmer/runtime/dist/modules/es2017/lib/dom/helper.js
index cf4513c..6a2e3a8 100644
--- a/node_modules/@glimmer/runtime/dist/modules/es2017/lib/dom/helper.js
+++ b/node_modules/@glimmer/runtime/dist/modules/es2017/lib/dom/helper.js
@@ -1,5 +1,5 @@
-import { applySVGInnerHTMLFix } from '../compat/svg-inner-html-fix';
-import { applyTextNodeMergingFix } from '../compat/text-node-merging-fix';
+// import { applySVGInnerHTMLFix } from '../compat/svg-inner-html-fix';
+// import { applyTextNodeMergingFix } from '../compat/text-node-merging-fix';
import { BLACKLIST_TABLE, DOMOperations } from './operations';
['b', 'big', 'blockquote', 'body', 'br', 'center', 'code', 'dd', 'div', 'dl', 'dt', 'em', 'embed', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'i', 'img', 'li', 'listing', 'main', 'meta', 'nobr', 'ol', 'p', 'pre', 'ruby', 's', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'table', 'tt', 'u', 'ul', 'var'].forEach(tag => BLACKLIST_TABLE[tag] = 1);
const WHITESPACE = /[\t-\r \xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/;
@@ -27,10 +27,10 @@ export var DOM;
DOM.TreeConstruction = TreeConstruction;
let appliedTreeConstruction = TreeConstruction;
- appliedTreeConstruction = applyTextNodeMergingFix(doc, appliedTreeConstruction);
- appliedTreeConstruction = applySVGInnerHTMLFix(doc, appliedTreeConstruction, "http://www.w3.org/2000/svg"
+ // appliedTreeConstruction = applyTextNodeMergingFix(doc, appliedTreeConstruction);
+ // appliedTreeConstruction = applySVGInnerHTMLFix(doc, appliedTreeConstruction, "http://www.w3.org/2000/svg"
/* SVG */
- );
+ // );
DOM.DOMTreeConstruction = appliedTreeConstruction;
})(DOM || (DOM = {}));
@@ -55,10 +55,10 @@ export class DOMChangesImpl extends DOMOperations {
}
let helper = DOMChangesImpl;
-helper = applyTextNodeMergingFix(doc, helper);
-helper = applySVGInnerHTMLFix(doc, helper, "http://www.w3.org/2000/svg"
+// helper = applyTextNodeMergingFix(doc, helper);
+// helper = applySVGInnerHTMLFix(doc, helper, "http://www.w3.org/2000/svg"
/* SVG */
-);
+// );
export default helper;
export const DOMTreeConstruction = DOM.DOMTreeConstruction;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL0BnbGltbWVyL3J1bnRpbWUvbGliL2RvbS9oZWxwZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVUEsU0FBUyxvQkFBVCxRQUFxQyw4QkFBckM7QUFDQSxTQUFTLHVCQUFULFFBQXdDLGlDQUF4QztBQUNBLFNBQVMsZUFBVCxFQUEwQixhQUExQixRQUErQyxjQUEvQztBQUVBLENBQ0UsR0FERixFQUVFLEtBRkYsRUFHRSxZQUhGLEVBSUUsTUFKRixFQUtFLElBTEYsRUFNRSxRQU5GLEVBT0UsTUFQRixFQVFFLElBUkYsRUFTRSxLQVRGLEVBVUUsSUFWRixFQVdFLElBWEYsRUFZRSxJQVpGLEVBYUUsT0FiRixFQWNFLElBZEYsRUFlRSxJQWZGLEVBZ0JFLElBaEJGLEVBaUJFLElBakJGLEVBa0JFLElBbEJGLEVBbUJFLElBbkJGLEVBb0JFLE1BcEJGLEVBcUJFLElBckJGLEVBc0JFLEdBdEJGLEVBdUJFLEtBdk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vZGUpIHtcbiAgICB0aGlzLmluc2VydEJlZm9yZShlbGVtZW50LCBub2RlLCByZWZlcmVuY2UubmV4dFNpYmxpbmcpO1xuICB9XG59XG5cbmxldCBoZWxwZXIgPSBET01DaGFuZ2VzSW1wbDtcblxuaGVscGVyID0gYXBwbHlUZXh0Tm9kZU1lcmdpbmdGaXgoZG9jLCBoZWxwZXIpIGFzIHR5cGVvZiBET01DaGFuZ2VzSW1wbDtcbmhlbHBlciA9IGFwcGx5U1ZHSW5uZXJIVE1MRml4KGRvYywgaGVscGVyLCBOYW1lc3BhY2UuU1ZHKSBhcyB0eXBlb2YgRE9NQ2hhbmdlc0ltcGw7XG5cbmV4cG9ydCBkZWZhdWx0IGhlbHBlcjtcbmV4cG9ydCBjb25zdCBET01UcmVlQ29uc3RydWN0aW9uID0gRE9NLkRPTVRyZWVDb25zdHJ1Y3Rpb247XG5leHBvcnQgdHlwZSBET01UcmVlQ29uc3RydWN0aW9uID0gRE9NLkRPTVRyZWVDb25zdHJ1Y3Rpb247XG5leHBvcnQgdHlwZSBET01OYW1lc3BhY2UgPSBOYW1lc3BhY2U7XG4iXSwic291cmNlUm9vdCI6IiJ9
\ No newline at end of file
diff --git a/node_modules/@glimmer/runtime/dist/modules/es2017/lib/environment.js b/node_modules/@glimmer/runtime/dist/modules/es2017/lib/environment.js
index 8cb3458..cbd6ce0 100644
--- a/node_modules/@glimmer/runtime/dist/modules/es2017/lib/environment.js
+++ b/node_modules/@glimmer/runtime/dist/modules/es2017/lib/environment.js
@@ -5,7 +5,6 @@ import { assert, symbol } from '@glimmer/util';
import { track, updateTag } from '@glimmer/validator';
import { DOMChangesImpl, DOMTreeConstruction } from './dom/helper';
import { RuntimeProgramImpl } from '@glimmer/program';
-import DebugRenderTree from './debug-render-tree';
export const TRANSACTION = symbol('TRANSACTION');
class TransactionImpl {
@@ -101,7 +100,7 @@ export class EnvironmentImpl {
this[_a] = null; // Delegate methods and values
this.isInteractive = this.delegate.isInteractive;
- this.debugRenderTree = this.delegate.enableDebugTooling ? new DebugRenderTree() : undefined;
+ this.debugRenderTree = undefined;
if (options.appendOperations) {
this.appendOperations = options.appendOperations;
lifeart commented
I think some of changes could be integrated as glimmer babel environment flag, for example:
debugRenderTree
logic, applyTextNodeMergingFix
, applySVGInnerHTMLFix
, debugger
and partial
opcodes