Skip to content

Permit Loader Specification Or Relax ESLint webpack loader rule #1686

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cdaringe opened this issue Mar 1, 2017 · 5 comments
Closed

Permit Loader Specification Or Relax ESLint webpack loader rule #1686

cdaringe opened this issue Mar 1, 2017 · 5 comments

Comments

@cdaringe
Copy link

cdaringe commented Mar 1, 2017

Hi all,

I'd like to revisit #1015.

I have the need to serve some raw files for download and to render in plaintext.

That is, I want to import plaintext JS in some cases, and I also want to be able to serve JS downloads. The issue as described in #1015 prevents me from achieving this.

I know it's niche, but a generic file is a 1st class citizen, IMHO. Unfortunately we need some access to the underlying tooling to specify the intended consumption. Requires & import statements will be piece of cake migrations 🍰 if we de-webpack.

@cdaringe cdaringe changed the title Permit Loader Specification Or Relax JSX Rule Permit Loader Specification Or Relax ESLint webpack loader rule Mar 1, 2017
@gaearon
Copy link
Contributor

gaearon commented Mar 1, 2017

In cases where you want to import plaintext, why not just use JS for this?

export default `
  any plaintext
  you like
`;

@cdaringe
Copy link
Author

cdaringe commented Mar 1, 2017

sure, but i also want to serve it for download (i can blob it, but would rather URL to it) and in some cases, actually use it as a component too! it's nutty! :)

im okay // eslint-disable-lineing for now.

@gaearon
Copy link
Contributor

gaearon commented Mar 1, 2017

Yea, the problem is it’s not really supported, and we don’t promise even patch version changes are safe. So we can break you in any version accidentally.

@cdaringe
Copy link
Author

cdaringe commented Mar 1, 2017

definitely. i have moderate confidence that webpack will be in here for a while & that file & url loaders will be sticking around too, so im gettin wild and taking a risk!

@cdaringe cdaringe closed this as completed Mar 1, 2017
@cdaringe
Copy link
Author

cdaringe commented Mar 1, 2017

#tests

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants