@ama-pt/agora-design-system 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/README.npm.md +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,6 +46,13 @@ const withTM = require('next-transpile-modules')(['@ama-pt/agora-design-system']
|
|
|
46
46
|
|
|
47
47
|
module.exports = withTM({
|
|
48
48
|
webpack(config) {
|
|
49
|
+
// Allow dynamic import of svg icons without warnings
|
|
50
|
+
config.module = {
|
|
51
|
+
...config.module,
|
|
52
|
+
exprContextCritical: false
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// Prevent parse errors when loading .map files
|
|
49
56
|
config.module.rules.push({
|
|
50
57
|
test: /\.map$/i,
|
|
51
58
|
use: 'raw-loader'
|
package/README.npm.md
CHANGED
|
@@ -46,6 +46,13 @@ const withTM = require('next-transpile-modules')(['@ama-pt/agora-design-system']
|
|
|
46
46
|
|
|
47
47
|
module.exports = withTM({
|
|
48
48
|
webpack(config) {
|
|
49
|
+
// Allow dynamic import of svg icons without warnings
|
|
50
|
+
config.module = {
|
|
51
|
+
...config.module,
|
|
52
|
+
exprContextCritical: false
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
// Prevent parse errors when loading .map files
|
|
49
56
|
config.module.rules.push({
|
|
50
57
|
test: /\.map$/i,
|
|
51
58
|
use: 'raw-loader'
|