Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Compatibility with RequireJS text plugin? #43

Open
akatechis opened this issue Jan 2, 2017 · 1 comment
Open

Compatibility with RequireJS text plugin? #43

akatechis opened this issue Jan 2, 2017 · 1 comment

Comments

@akatechis
Copy link

I'm attempting to migrate a RequireJS project that uses the requireJS text plugin (https://github.com/requirejs/text) to JSPM/SystemJS.

I notice your plugin uses mytext.html!text (as a suffix) whereas requireJS would use text!mytext.html

Is there a way to get the plugin to use prefix notation, or will I have to go through and update all imports of my templates to use suffix notation?

@guybedford
Copy link
Member

SystemJS supports the configuration:

System.config({
  pluginFirst: true
});

To match the requirejs style configuration.

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

2 participants