We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This issue is for a:
webpack --mode=development
module: { rules: [{ test: /\.ts$/, include: path.join(__dirname, "src"), loader: "ts-loader" }, { type: "javascript/auto", test: /\.json$/, loader: 'json-loader' }, { test: require.resolve('./src/abc/index.ts'), loader: 'expose-loader?FP' } ] },
export default class abc { // do something }
abc is added to the global scope or under window
Module parse failed: Unexpected token (11:16) You may need an appropriate loader to handle this file type.
export default class abc {} @ ./src/abc/index.ts-exposed 1:32-55
When trying to use a class inside webpack generated bundle inside another js file (not under the scope of webpack)
The text was updated successfully, but these errors were encountered:
This might be fixed by #85 I think the problem is that the expose loader doesn't know how to deal with harmony (ES) modules.
Sorry, something went wrong.
A same problem #56. Will be fixed there.
Successfully merging a pull request may close this issue.
This issue is for a:
Code
CLI Command
webpack.config.js
Expected Behavior
abc is added to the global scope or under window
Actual Behavior
Module parse failed: Unexpected token (11:16)
You may need an appropriate loader to handle this file type.
export default class abc {} @ ./src/abc/index.ts-exposed 1:32-55
New Feature Use Case
When trying to use a class inside webpack generated bundle inside another js file (not under the scope of webpack)
The text was updated successfully, but these errors were encountered: