TrySound / rollup-plugin-string

Converts text files to modules
MIT License
85 stars 13 forks source link

Also import files using string: #28

Open TheComputerM opened 4 years ago

TheComputerM commented 4 years ago

This can allow us to import both the js file and its source:

import code from './file.js';
import source from 'string:./file.js'; //imports the source