UNPKG

babel-plugin-import-remove-resource-query

Version:

Remove the resourceQuery param when importing modules via babel. Useful with Jest, that doesn't support resourceQueries

5 lines (4 loc) 157 B
import 'path/to/file?resourceQuery'; import foo from 'path/to/file?resourceQuery'; import bar, { Baz } from 'path/to/file?resourceQuery'; function noop() {}