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
{{ message }}
Repository navigation
rewrite broccoli-replace plugin to be incremental #2050
this plugin is accounting for 600-700ms during full build and 400-500ms during incremental rebuild.
if you look at the replacements we are doing they are fairly simple and can't cause us to waste that much time.
we should try to reimplement the plugin (with only the features we actually need) in plain javascript without any additional templating libraries. a few regular expression replacements should do the trick. the plugin should be implemented as a DiffingBroccoliPlugin
api compatibility would be nice, but is not required. example usage:
nodeTree = replace(nodeTree, {
files: ['**/test/**/*_spec.js'],
patterns: [
{
// Override the default DOM adapter with Parse5 for all tests
match: /"use strict";/,
replacement:
"'use strict'; var parse5Adapter = require('angular2/src/dom/parse5_adapter'); " +
"parse5Adapter.Parse5DomAdapter.makeCurrent();"
},
{
// Append main() to all tests since all of our tests are wrapped in exported main fn
match: /$/g,
replacement: "\r\n main();"
}
]
});
Activity
IgorMinar commentedon May 21, 2015
watch out for #2051 as that might bite you, see #2053 for a patch or use
stew.mvtrick as we currently do (removed in #2053)refactor: use a custom replacement build step instead of broccoli-rep…
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.