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
When building with webpack, I receive the below error. Any help or guidance that can be provided to overcome this will be usefule
My Webpack config is as follows: `const { join } = require( "path" ), webpack = require( "webpack" );
module.exports = { entry: join( __dirname, "app/renderer.jsx" ), target: "electron-renderer", output: { path: join( __dirname, "app/build" ), filename: "renderer.js" }, module: { rules: [ { test: /.jsx?$/, exclude: /node_modules/(?![@salesforce])/, use: [{ loader: "babel-loader", options: { presets: [ "env", "react"], plugins: [ "transform-class-properties" ] } }] } ] } }; `
The text was updated successfully, but these errors were encountered:
The library source code requires more plugins than that: babel-plugin-transform-export-extensions
babel-plugin-transform-export-extensions
See https://github.com/salesforce/design-system-react#transpile-with-babelrc-settings You'll want 1.x of the preset. 2.x is not compatible with the library right now, but should be soon. See #1300 for more details about that. The source code for the 1.x preset is here: https://github.com/salesforce/design-system-react/blob/master/preset/index.js
Reopen if that's not the issue
Sorry, something went wrong.
No branches or pull requests
When building with webpack, I receive the below error. Any help or guidance that can be provided to overcome this will be usefule
My Webpack config is as follows:
`const { join } = require( "path" ),
webpack = require( "webpack" );
module.exports = {
entry: join( __dirname, "app/renderer.jsx" ),
target: "electron-renderer",
output: {
path: join( __dirname, "app/build" ),
filename: "renderer.js"
},
module: {
rules: [
{
test: /.jsx?$/,
exclude: /node_modules/(?![@salesforce])/,
use: [{
loader: "babel-loader",
options: {
presets: [ "env", "react"],
plugins: [ "transform-class-properties" ]
}
}]
}
]
}
}; `
The text was updated successfully, but these errors were encountered: