You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This provides debug macros and feature flagging.
4
4
5
5
## Setup
6
6
7
-
The plugin takes 5 types options: `envFlags`, `features`, `debugTools`, `externalizeHelpers` and `svelte`. The `importSpecifier` is used as a hint to this plugin as to where macros are being imported and completely configurable by the host. Like Babel you can supply you're own helpers using the `externalizeHelpers` options.
7
+
The plugin takes 5 types options: `envFlags`, `features`, `debugTools`, `externalizeHelpers` and `svelte`. The `importSpecifier` is used as a hint to this plugin as to where macros are being imported and completely configurable by the host. Like Babel you can supply your own helpers using the `externalizeHelpers` options.
Flags and features are inlined into consuming module so that something like UglifyJS with DCE them when they are unreachable.
42
+
Flags and features are inlined into the consuming module so that something like UglifyJS will DCE them when they are unreachable.
43
43
44
44
## Simple environment and fetaure flags
45
45
@@ -129,7 +129,7 @@ let foo = 2;
129
129
130
130
## Externalized Helpers
131
131
132
-
When you externalize helpers you must provide runtime implementations for the above macros. An expansion will still occur however we will use emit references to those runtime helpers.
132
+
When you externalize helpers you must provide runtime implementations for the above macros. An expansion will still occur, however we will emit references to those runtime helpers.
133
133
134
134
A global expansion looks like the following:
135
135
@@ -161,9 +161,9 @@ Expands into:
161
161
162
162
# Svelte
163
163
164
-
Svelte allows for consumers to opt into stripping deprecated code from your dependecies. By adding a package name and minimum version that contains no deprecations that code will be compiled away.
164
+
Svelte allows for consumers to opt into stripping deprecated code from your dependecies. By adding a package name and minimum version that contains no deprecations, that code will be compiled away.
165
165
166
-
For example, consider you are on `[email protected]` and you have no deprecations all deprecated code in `ember-source` that is `<=2.10.0` will be removed.
166
+
For example, consider you are on `[email protected]` and you have no deprecations. All deprecated code in `ember-source` that is `<=2.10.0` will be removed.
167
167
168
168
```
169
169
...
@@ -183,4 +183,4 @@ svelte: {
183
183
184
184
# Hygenic
185
185
186
-
As you may notice that we inject `DEBUG` into the code when we expand the macro. We gurantee that the binding is unique when injected and follow the local binding name if it is imported directly.
186
+
As you may notice that we inject `DEBUG` into the code when we expand the macro. We guarantee that the binding is unique when injected and follow the local binding name if it is imported directly.
0 commit comments