Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

inject require statements after require statements for the module we're autoloading plugins for #2

Open
kevinbarabash opened this issue Dec 14, 2017 · 0 comments

Comments

@kevinbarabash
Copy link
Contributor

What this loader should actually be doing, is looking for files which load a particular module, e.g. "handlebars/runtime" and should insert the "plugin" modules afterwards, e.g.

const Handlebars = require("handlebars/runtime");
// other require statements

should be transformed to

const Handlebars = require("handlebars/runtime");
require("../path/to/handlebars-extras.js");
// other require statements
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant